Facebook problem like button

I use this code to implement a similar button

<fb:like layout="button_count" show_faces="false" width="450"></fb:like>

But when I try to click it, the counter increments by about 1 second, and then returns to zero again. I do not see on my facebook profile that I also liked it. Does anyone have a solution for this?

+1
source share
5 answers

As already noted, some of your open metadata meta tags may be missing or incorrect. You can verify your page using the Facebook Linter URL: https://developers.facebook.com/tools/lint/

Quite a convenient tool and should help you find out the cause of the problem.

+1
source

I ran into this problem once. If you use Firebug to check the request / response, you will probably see that Facebook returns an error to you.

In my case, I did not set the correct permissions for the "connect" to Facebook settings to allow "like" requests on my domain name.

alt text

0
source

In order to complete this work, you need to specify many things in the part of the website.

For example, I missed the fb: admins parameter, part of the OG protocol.

0
source

This particular problem that you are describing was reported in this error: http://bugs.developers.facebook.net/show_bug.cgi?id=18591

but was marked as authorized from yesterday.

0
source

Well, I also had problems with facebook, like plugins, and also heard from people that this is a facebook bug. After a lot of searching on gOOgle .... I found a good result and I don't think this is a fb error.

You will need to add this file to your website header:

 <meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" /> 

Property of meta tags (facebook likes meta tags) ==> og: image - URL of the image that your object should represent inside the chart.

Replace "http://ia.media-imdb.com/images/rock.jpg" with the real path to the image.

For Wordpress Users

Add the following header to the header of your header file ==>

 <?php $img= get_post_meta($post->ID, 'image', true); if ($img): ?> <meta property="og:image" content="<?=$img ?>"/> <? endif; ?> 

That's all ... I hope this works for you all !! Share your experience ...

0
source

Source: https://habr.com/ru/post/1342300/


All Articles