Facebook give websites ability to add facebook buttons and plugins ‘‘ like button, recommendations bar and login button ’’.
Some blogger users can't add this to their blog, someone say ‘ facebook like button doesn't apper in my blog ’. So Follow this
At first in your Blogger template edit html Search about this tag <html> and replace it with this code
<html xmlns:fb='http://ogp.me/ns/fb#'>
Note: If you found <html> like this photo Put the code below the same as it apper in the photo ( can say you must put the code below inside <html> tag )
xmlns:fb='http://ogp.me/ns/fb#'
Search For <body> tag and put this code after
<div id='fb-root'/>
<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&appid=APP_ID";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Note: if you can't found <body> Search <body and do the same actoin
Note: Replace APP_ID with your facebook app id that link with your blog. if you don't have this read Create simple facebook app.
Now you can add any facebook Social Plugin Or button.
From the list below choose your plugin and Customize it as you like and press get code. the code you can put in everywhere in your blog in the XFBML room the 3rd code.
Note: the 1st and the 2nd code we Put them above.
The Like button lets users share pages from your site back to their Facebook profile with one click.
|
The Follow button allows people to subscribe to other Facebook users
directly from your site. (This used to be called the Subscribe Button.)
|
The Activity Feed plugin shows users what their friends are doing on your site through likes and comments.
|
The Recommendations plugin gives users personalized suggestions for pages on your site they might like.
|
The Recommendations Bar allows users to like content, get recommendations, and share what they’re reading with their friends.
|
The Like Box enables users to like your Facebook Page and view its stream directly from your website.
|
The Login Button shows profile pictures of the user's friends who have
already signed up for your site in addition to a login button.
|
The registration plugin allows users to easily sign up for your website with their Facebook account.
|
The Facepile plugin displays the Facebook profile pictures of users who have liked your page or have signed up for your site.
|
0 comments:
Post a Comment
Did You Enjoy this Article ?