Fb like button

Posted in: Newspaper
Post count: 66

The fb like button as seen here with 33 likes:
https://ibb.co/jDTxtw

is not on sync with actual likes on this fb post?

Would I have to replace this with
https://developers.facebook.com/docs/plugins/like-button

so that when someone like on the blog post it also shows on fb page and vice-versa?

Should td_module_single.php be modified to include the code provided by fb to replace the async fb like button with the one that will sync?

Let me know if this is possible.

Thank you

  • This topic was modified 8 years by junaiddar.
Post count: 20688

Hi,

The likes may not be synchronized, the numbers will not be necessarily similar. If you want to implement that like button instead you will have to enter that code in the theme files. The javascript should go to in the header
https://www.screencast.com/t/orSaZfEUB
The actual button code will have to replace the current button here
https://www.screencast.com/t/FkPaZUyM
Or you could use a plugin maybe that does this, that can be easier as well.

Thanks

Post count: 66

Will implementing the like button that is provided by FB, sync FB page and website likes?

Does this code go in td_module_single.php file?

<div class=”fb-like” data-href=”https://developers.facebook.com/docs/plugins/&#8221; data-layout=”button_count” data-action=”like” data-size=”large” data-show-faces=”true” data-share=”false”></div>

Post count: 20688

Hi,

You will have to test the button functionality and check the results. That code has to be entered in the file you mention. Replace the old code as shown, with the new one. The button should be displayed.

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.