how to make a facebook share/like button?
|
04-08-2014, 04:09 AM
Post: #1
|
|||
|
|||
how to make a facebook share/like button?
Hello, I want to make a facebook share button for each post of my website. please help
Ads |
|||
04-08-2014, 04:15 AM
Post: #2
|
|||
|
|||
I'm pretty sure that facebook provides a tool for making each
https://developers.facebook.com/docs/plu...re-button/ https://developers.facebook.com/docs/plu...ke-button/ Ads |
|||
04-08-2014, 04:15 AM
Post: #3
|
|||
|
|||
You can do this in less a minute.
1. Add the following javascript after <body> tag in your page.: <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> 2. Add the following line to where you want to the like/share button to be: <div class="fb-like" data-send="false" data-layout="button_count" data-width="450" data-show-faces="true"></div> |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)