Step 1: go to this link
Step 2:
Step 3:
Step 4:
Step 6:
https://developers.facebook.com/docs/reference/plugins/like/
Step 2:
Paste your fb page url
Step 3:
press get code button u ll get code preview like this
Step 4:
copy and Paste the code [html-5 given in above prev image] in your web page note: paste the given code before body tag like
<html> <head> <div id="fb-root"></div> <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=433000033432471"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like" data-href="http://www.facebook.com/akblog28" data-send="true" data-width="450" data-show-faces="true"></div> <head> <body> </html>Step 5:
Click save and see your web page note : this code will run only in Ftp server this code not supported to localhost like [wamp,lamp,mamp]
Step 6:
Finally u got output like this
No comments:
Post a Comment