How to add FaceBook share button to website
Add Facebook Button |
In this tutorial we will explain the steps to follow to add to a web page a button for 'Share on Facebook'.
To add a button we easily access this Facebook page where we will get the code we need to include on our site to get the share button. The link above leads to a form like this that will guide us in creating the button.
On this page you have to fill two fields to indicate:
'URL to share': URL of the content you want to share on Facebook
'Width': width 'px' that will have the widget to be included in the page
Once these fields are filled we can view a preview of how it will be created that button.
The last field that can be modified is called 'Layout', and that will be with you indicate the style that will compatir button being created. The choices are:
'Box_count': the share button, icon facebook and text 'share', and on it a little box in which the number of times you have shared the link will display appears.
'Button_count': acts as before, but the box with the number of times you have shared on the right button
'Button': only the button appears without the counter of times shared.
'Icon_link': Displays a button with only the Facebook icon, and followed this button, but already out of it, a link with the text 'Share'
'Icon': only a button with the Facebook icon shown without any text or additional bond.
'Link': in this case it is not contain any icons, which show would be a link with the text 'Share on Facebook'.
Once the fields and style of the new facebook share button must click on the 'Get Code' button indicated. Doing this brings up a new window that should distinguish several parts:
On top of indicating how it will generate code button: html5, xhtml, iframe or url.
Select the ID of the application created in Facebook and it will be used by the new button. In our example we have previously created a Facebook application called
Tidak ada komentar