开发者

Add Like Button To My Web site [duplicate]

开发者 https://www.devze.com 2023-04-03 16:53 出处:网络
This question already has answers here: Closed 11 years ago. 开发者_Go百科 Possible Duplicate: How to implement the Facebook "Like" button for my website
This question already has answers here: Closed 11 years ago. 开发者_Go百科

Possible Duplicate:

How to implement the Facebook "Like" button for my website

How to Add a "Like" Button to my FaceBook Landing Tab?

can you please give me detailed info on how to add a like button to my website page, just made my first web page so am a novice. Clicked on add like button but it doesn't tell you what to do.


Take a look at the Facebook developer pages. They have simple tools that generate code that you can copy/paste in your website code.

https://developers.facebook.com/docs/reference/plugins/like/


Just go to the link https://developers.facebook.com/docs/reference/plugins/like/ and make the Step 1, enter the URL of your site and click "Get Code".. Copy the code and paste for the place as you want in you source code page HTML.


Simple copy this HTML code to every page you need a Like button:

<script>(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#appId=157629837654379&xfbml=1";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));</script>
<div class="fb-like" data-send="true" data-width="450" data-show-faces="true"></div>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号