This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Find all posts by this user
Quote this message in a reply
04-08-2014, 04:15 AM
Post: #2
 
I'm pretty sure that facebook provides a tool for making each Smile
https://developers.facebook.com/docs/plu...re-button/
https://developers.facebook.com/docs/plu...ke-button/

Ads

Find all posts by this user
Quote this message in a reply
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>
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)