• Resolved TheBatman

    (@thebatman)


    I’m trying to add a Facebook like button to the custom content popup but the button never appears. The same code works everywhere else on my site. The twitter button works fine. Can you tell me how to fix this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hey @thebatman,

    Can you tell me which method are you using to add like button?

    I tried with adding it from FB developers page here https://developers.facebook.com/docs/plugins/like-button and that worked fine for me.

    Cheers,
    Predrag

    Thread Starter TheBatman

    (@thebatman)

    Thanks for the response. I added it using the method from the same link – using the javascript sdk (embedded in my header file) and placing <div class="fb-like"></div>in the text section of the custom content.

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @thebatman,

    Could you share a link to your site where we can see the issue?

    kind regards,
    Kasia

    Thread Starter TheBatman

    (@thebatman)

    Yes, the link is https://batmanfactor.com. You’ll need to scroll down 20% of the page to see the popup.
    I look forward to getting this resolved as soon as possible.

    Hello @thebatman

    Hope you’re doing well!

    Please note that the code you’ve added is incomplete, you will need to place the full code as it is shown in Step 3, see an example:
    <div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button" data-action="like" data-size="small" data-show-faces="true" data-share="true"></div>

    I’ve tested this code from my end and it is working with Hustle. In case it will not work again, please try adding iFrame code inside the custom coding.

    Let us know how it went!

    Kind regards,
    Nastia

    Thread Starter TheBatman

    (@thebatman)

    I was able to get it working by using the iFrame code, although I wasn’t able to get it directly from Facebook, nor was the full code ever shown for step 3. Very strange.
    Thanks for all your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Facebook like button doesn’t work in custom content’ is closed to new replies.