Facebook as a button shows the same number of likes on each page

I thought that a similar button should show several likes on the page, and not on the site. Am I right?

I posted a similar button on my website http://www.hikingsanfrancisco.com , and if you look at different pages of the site, they all show the same number as if it were a universal number for the whole site.

My button-like code is in the header of the div, and I suspect that repetition might happen because of this.

Any ideas / thoughts?

Thank!

+3
source share
4 answers

XFBML, like , href :

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like layout="button_count" show_faces="false" width="450"></fb:like>
+7

, , , URL . .

<iframe src="http://www.facebook.com/widgets/like.php?href=<?php echo('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:80px; background-color:#CCCCCC"></iframe>

,

+3

, , URL- . Facebook

+2

I think the problem should be different because I use the following

< fb:like href="http://tienditas.net/{{storename}}/{{productoid}}" send="true" width="320" show_faces="true" font=""></fb:like>"

Which creates a unique URL for each "how" button, and still has the same problem with displaying a universal number for the entire site.

0
source

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


All Articles