V
V
Vladimir Shishmintsev2012-10-07 16:29:38
JavaScript
Vladimir Shishmintsev, 2012-10-07 16:29:38

FB Like........?

Good evening.
The FB Like plugin behaves very strangely: it does not want to take data from Open Graph Tags, it uses any image on the page as a picture (usually from the sidebar).
The plugin often does not work yet, I click on the Like and the counter then increases and immediately drops off.
Connected like this

<body>
<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/ru_RU/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

calling
<fb:like href="http://example" send="false" layout="button_count" width="450" show_faces="true" font="arial"></fb:like>

PS Thank you all!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
demimurych, 2012-10-07
@Pingvi

Go here
developers.facebook.com/tools/debug
and enter the address of your page
this will both give you all the information about how FB sees you
and automatically update the FB cache

Y
yurtaev, 2012-10-07
@yurtaev

They have a long caching, so if the first request from FB was to an incorrect page (where meta information is not specified), then this result will be cached (I myself very often get into this during development).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question