How do I add a "Like" button from Facebook?
Add to your site or blog a button "I like" from Facebook conveniently if you want your visitors to easily and quickly share a link to your resource with your friends and acquaintances. How do I add a "Like" button from Facebook?
In the social network Facebook button "Like" (Like Button) Allows the user to share the content of his favorite sites and blogs with his friends on Facebook. When the user clicks the "Like" button on the site, the material he likes appears in the News Feed of friends of this user with a link back to this site. Also the link is displayed in the "I like" block on the Facebook personal page.
For users "I like" button is good, that it allows one-touch sharinginteresting and useful from their point of view information with other users of the network. For you, as for the owner of a site or blog, the button "I like" opens additional opportunities for advertising of the resource. Thus, the button "I like" from Facebook is beneficial and useful to both parties.
Add the "Like" button from Facebook to your website or blog using a special code, which you can get on the Facebook Developers site. To do this, you need to fill out a special form:
The process of obtaining the code consists of the following steps:
field URL to Like - the address of the page you like - should be left blank so that the address of the page you like is assigned the address of the page where the button is located
field Layout Style allows you to choose the style of the button (with or without voice counter)
field Show Faces in the value True allows you to display avatars of users who like this site or blog
in field Width specify the width of the plug-in in pixels
field Verb to display displays the name of the button "Like" or "Recommend" (in the Russian-language version of "Like" or "Recommend"),
in field Font you should select the text font
in field Color Scheme You should choose one of the two suggested buttons for the buttons: light or dark
After filling all the fields, click the button"Get code". Now, to add the "Like" button from Facebook to your website or blog, you should copy the code from the window that opens.
The top part of the window is iframecode, at the bottom - XFBML. The second option is more universal.
If the page address field (URL) is leftempty, then after installing the "I like" button code in the html-code of the page, users who click this button will "like" this particular page.
If an iframe code is selected for inserting it into a website or blog on the WordPress engine, then you need to change this code somewhat. To do this, you need to find a section of code:
http% 3A% 2F% 2Fexample.com% 2Fpage% 2Fto% 2Flike
and replace it with the following:
<? php the_permalink ()?>
If you want visitors to "like" your entire blog or website, then you should replace the specified piece of code with the URL of your resource. Then you should place the code in the template pages of the site.
If you want to change the language of the button (by defaultthe message on the button is displayed in English), then you need to replace the part of the URL in the button code - set the localization. So to turn on the Russian language, you need to replace en_US on en-GB in line <script src = "http://connect.facebook.net/en_US/ ...
You can add Facebook's "Like" button from Facebook without using this method. There are special plugins that help to install a button on a website or blog. Especially popular plugins for Wordpress - a common blog engine. So, you can use plugins WP FB Like, WP-FB-Like-Button, FBLike, WordPress Facebook Like Button Plugin, Facebook Like Button.