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
43
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
6,253
Replies
8
Views
4,552
Replies
2
Views
2,473
Replies
6
Views
3,088
Replies
3
Views
4,212
Newer threads
Replies
2
Views
2,234
Replies
12
Views
5,686
Replies
8
Views
3,944
Replies
6
Views
4,802
Replies
17
Views
6,387
Latest threads
Hi
Replies
1
Views
48
Replies
1
Views
46
Replies
1
Views
48
Replies
1
Views
49
Similar threads
Replies
11
Views
2,452
Replies
4
Views
3,164
Replies
7
Views
4,203
Replies
14
Views
6,169
Replies
6
Views
4,794

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