خرید بک لینک

Vote count: 0

My single-page app has a facebook "like" button on profile pages.

On initial load, the button appears as it should.

On subsequent loads, the button does not appear.

I think this is because the SDK is loaded initially, and then not again, so the DOM buttons are not processed.

As a hail-mary, I've attempted the following:

    $("#facebook-jssdk").remove();
    $("#twitter-wjs").remove();
    $(".fb-like").empty();
    $(".fb-like").unbind();
    $("#fb-root").empty();
    $("#fb-root").unbind();

This has worked for Twitter - the SDK is reloaded every time I navigate and now my Twitter buttons are appearing throughout.

But for some reason, the facebook buttons still only appear once, and then never again.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 9 خرداد 1395 ساعت: 5:57

صفحه بندی