If you are developing a website and you must integrate with social networks sites like Facebook, Twitter and Google plus to reach more people. I strongly believe Facebook is the new virtual world to increase your product sales and generating web traffic. In this post I want to explain a simple tip, that how to integrate Facebook like button in optimizing way for just adding few FBML META tags.
Facebook Timeline Like Button Preview
FBML META tags optimization helps your web page to reach people more meaningful. You can control the Facebook like button system to produce better content.
FBML META Tags
Just include following META tags, you can specify Title, Image, Description and etc.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<title>Product Name</title>
<meta property="og:title" content="Product Name"/>
<meta property="og:type" content="Shopping"/>
<meta property="og:url" content="http://www.website.com/product/75"/>
<meta property="og:image" content="http://www.website.com/product.jpg"/>
<meta property="og:site_name" content="WEBSITE"/>
<meta property="og:description" content="Product Description "/>
....
</head>
<body>
<h1>Product Name</h1>
<iframe scrolling="no" frameborder="0" allowtransparency="allowTransparency" width="280" height="65" src="http://www.facebook.com/widgets/like.php?width=280&show_faces=1&layout=standard&href=http://www.website.com/product/75"></iframe>
</body>
</html>
<head>
<title>Product Name</title>
<meta property="og:title" content="Product Name"/>
<meta property="og:type" content="Shopping"/>
<meta property="og:url" content="http://www.website.com/product/75"/>
<meta property="og:image" content="http://www.website.com/product.jpg"/>
<meta property="og:site_name" content="WEBSITE"/>
<meta property="og:description" content="Product Description "/>
....
</head>
<body>
<h1>Product Name</h1>
<iframe scrolling="no" frameborder="0" allowtransparency="allowTransparency" width="280" height="65" src="http://www.facebook.com/widgets/like.php?width=280&show_faces=1&layout=standard&href=http://www.website.com/product/75"></iframe>
</body>
</html>
Facebook Like Button Preview with Faces
Button Count
If want to see the button count preview just take a quick look at 9lessons website logo header part.
<iframe allowTransparency='true' frameborder='0' scrolling='no' src='http://www.facebook.com/plugins/like.php?href=http://www.website.com/product/75&send=false&layout=button_count&width=85&show_faces=false&action=like&colorscheme=light&height=21'></iframe>
Nice tutorial, thanks!
ReplyDeleteEasy to implement. Thanks a lot!
ReplyDeleteWhat could be the cause for showing descriptions for some post and not for others
ReplyDeleteWell said brother, meta tags are very important while installing facebook like button, but facebook team changing the structure randomly, which is not user friendly.
ReplyDeleteNice! Ever...
ReplyDeleteKeep up your good work bro :)
ReplyDeleteI like iframe
ReplyDeletewow nice concept, it will be interesting to have more features to facebook....
ReplyDeletehallo Srinivas...
ReplyDeleteI think for the og:type content for better is Product rather than Shopping.
for more look at http://developers.facebook.com/docs/opengraphprotocol/#types
just in this case..
for better validation of page try using https://developers.facebook.com/tools/debug/og/echo?q=YOUR_WEBSITE_URL_HERE it will produce result of content your page, valid or not?
ReplyDeleteVery informative Article. How do you create multiple like buttons like you have done for each of your posts? Looked everywhere.
ReplyDeleteEste post certamente está me ajudando, apesar de ter encontrado em outro site, o 9lessons está de parabéns.
ReplyDeleteyes i am agree with your words
ReplyDeleteAs usual nice tutorial.
ReplyDeleteStrong one :)
ReplyDeleteNice.
ReplyDeletegood
ReplyDeletethanks, Greats tutorial
ReplyDeleteRE: og:site_name?
ReplyDeleteShould this be the domain name or a title?
Great tut.
Very nice and easy tot implement. I will add this to my blog.
ReplyDeleteMeta tags are useful if using facebook's iframe, but I feel, that it's better to use selfmade, custom coded button. That allows to avoid facebook loading all it's stuff and slowing down your site.
ReplyDeleteGreat Work....Thanks a Lot
ReplyDeleteGood one!
ReplyDeleteIts useful for Facebook developers.There are lot of scripts available online with demo.
Thanks,
good tuts
ReplyDeleteThank you so much for sharing. Your blog has a lot of useful technical information.
ReplyDeleteVery nice and easy to implement!
ReplyDeleteThank you again Srinivas!
Very helpful and nice article followed by beautiful discussion. Keep it up and keep sharing.
ReplyDeleteThis is very old implementations. Currently all websites are trying to integrate all social networking site links on one shot, which can be done using third party service providers.
ReplyDeleteThanks Buddy !!!
ReplyDeleteNice article....helpful
ReplyDeleteHow to add this on blogger?
ReplyDeletegreat
ReplyDeleteI like it very much.
ReplyDeletethanks for the code...its great... but i can't remove the height in iframe code.. i tried to minimize it also removed height option but its taking lot of space :( please help
ReplyDeleteThank you again Srinivas!
Thanks for sharing this valuable and informative post.
ReplyDeleteThanks for code
ReplyDeleteIt works
@srinivas ...
ReplyDeletei not request it not plugin facebook but
like facebook for php and jquery ..
I want to add features like button on my website as like the existing buttons on facebook
thanks a lot.... but
ReplyDeletehow to edit the above Xml file in wordpress?
thanks sir for giving this nice post now i can also implement easily
ReplyDeletelove this post and one i read after a long time, fanatic job....
ReplyDeletehi, how about to make facebook share button with custom url custom description and custom image?
ReplyDeletegreat value. thank you ;)
ReplyDeleteCool
ReplyDeleteEverytime i read your article, i get impressed again and again, just because of the simplicity in which it is written.
ReplyDeleteThanks Srinivas
Nice, i going to do this :)
ReplyDeletethanks for sharing this information..
ReplyDeletenice...I want to know what is the /product/75
ReplyDeletenyc bro i must implement this
ReplyDeleteNice work dude
ReplyDeletethanx for nic post. is this applicable to video if we like that.
ReplyDeleteGreat work. i'll change my button
ReplyDeletecool dude
ReplyDeleteWhy a "comment" box appears when I press the like button?
ReplyDeletevery useful info. and a great use of making like Buttons
ReplyDeleteGreat way of Digital Marketing promotions are using facebook. Very fast way of reaching the Products
ReplyDeleteNot Display Proper Image
ReplyDeletewow !
ReplyDeleteits very nice...thank u..can u send me same for share button.so user can post comment on his own home page of fb? thanks in advance.
ReplyDelete