facebook page like button!

kaufenpreis

New member
Joined
Apr 7, 2014
Messages
19
Points
0
I have facebook page of my website and want to add like button on my wordpress site. in case someone sees it and likes it.

please guys, help me how to do that, or suggest any plugin.
 

vinpay

New member
Joined
Jul 17, 2012
Messages
48
Points
0
Go to this url and login with your account to start getting the button code for your website
https://developers.facebook.com/docs/plugins/like-button/

Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.

Code:
<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";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Place the code for your plugin wherever you want the plugin to appear on your page.
Code:
<div class="fb-like" data-href="https://www.yourdomain.com" data-layout="standard" data-action="like" data-show-faces="true" data-share="false"></div>
In code above, change https://www.yourdomain.com to your domain.
If you want users to like different detail page, change data-href="https://www.yourdomain.com" to data-href="<?php the_permallink();?>" in single.php of your wordpress.

All done.
 

bob

New member
Joined
Apr 22, 2014
Messages
203
Points
0
Go to facebook developer site and find facebook like box there is you will find the code create according to you and paste the code in your website.
 
Older threads
Replies
6
Views
5,792
Replies
8
Views
3,758
Replies
2
Views
2,115
Replies
6
Views
2,667
Replies
3
Views
3,686
Newer threads
Replies
2
Views
1,839
Replies
12
Views
4,900
Replies
8
Views
3,336
Replies
6
Views
3,770
Replies
17
Views
5,694
Latest threads
Replies
7
Views
109
Replies
2
Views
42
Replies
2
Views
24
Replies
2
Views
29
Replies
1
Views
23
Recommended threads
Replies
94
Views
22,399
Replies
4
Views
2,684
Replies
3
Views
1,411
Similar threads
Replies
4
Views
467
Replies
7
Views
1,469
Replies
11
Views
2,643
Replies
6
Views
1,745
Replies
4
Views
1,647

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top