user1946152
user1946152

Reputation: 375

facebook like social plugin not working

I am trying to use the facebook like plugin which has a like and send button.The source code of my page is as follows-

<html>
<body>
hello
 <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=138876406236026";
 fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-send"></div>
</body>

Why is it not working?

Upvotes: 1

Views: 3863

Answers (2)

Prashobh
Prashobh

Reputation: 9550

it wont work on your local system ,you should put it in your website , ex: www.sample.com ,

Upvotes: 2

Rahul Shah
Rahul Shah

Reputation: 1407

The facebook social buttons work locally on a computer.When you put them online on your website,they will work :)

Upvotes: 0

Related Questions