Tuesday 12 August 2014

How to Create a Like and Share Button on Facebook

Hi guys,
Now a days we can able to see like and share button in all Websites. We can create a Facebook Like and Share button for our Facebook page or your own Websites.
Lets see how to create like and share button and how to integrate with JavaScript.

Step 1:
Log in to Facebook as a developer using https://developers.facebook.com.

Step 2:
Once you logged in go to https://developers.facebook.com/docs/plugins/like-button/



Provide the URL of your Facebook Page or your Website which you want to create Like and Share Button.
If you don't want the Share button just unchecked the Include Share Button option.
Once you done this Click on "Get Code" Button.

Step 3:

  • Once you click on get code button you will get a window like above.
  • Select the app from your facebook developer for initializing JS SDK.
  • Copy the code and put it in your Webpage. You are now done with creating like and share button.
  • If you already initialize the JS SDK in your code then you need only the html plugin code for like and share button. No need of JavaScript SDK shown in the screen shot.


That's All FOLKS....

No comments:

Post a Comment