Facebook: How to show a Facebook page like to count and like a button to like a Facebook page?

I created an Education for All page on facebook. On my website I want to provide a button I like that this page will like, not the url , and also want to show the number of Likes received for this page on the website along with the Like button. I used β€œAdd this,” but it shows the number of likes for the URL. Can you offer me some plugin?

Any help would be appreciated ...

+4
source share
2 answers

create your facebook button here

http://developers.facebook.com/docs/reference/plugins/like/

Please provide the correct information to obtain the correct code or use the code below, following the instructions, just replace http://www.yoururl.com with the desired page URL that you would like: -

1. Include the JavaScript SDK on your page once, ideally immediately after the opening tag.

<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> 

Put the code for your plugin where you want the plugin to appear on your page.

 <div class="fb-like" data-href="http://www.yoururl.com" data-send="true" data-width="450" data-show-faces="true"></div> 
+8
source

Have you tried to create a similar button through https://developers.facebook.com/docs/reference/plugins/like/ ?

It gives you this code, for example:

 <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fedforall&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35&amp;appId=225116190942635" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe> 
0
source

All Articles