Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Recently, fb social stopped counting the number of likes and shares on my stuff. It worked fine until a week ago. Now, the box displays 0 likes no matter how many actual likes the content has. Help?
Comments
Comment #1
dotsam CreditAttribution: dotsam commentedI've got the same problem -- any ideas?
Using the link: http://api.facebook.com/restserver.php?method=links.getStats&urls=YOURURL I get:
Does this mean something has changed on Facebook's side?
Comment #2
johnTEN CreditAttribution: johnTEN commentedI have exactly the same problem. Facebook share gets the count right but this module does not
Comment #3
tfranz CreditAttribution: tfranz commented... same for me ...
If i put in the original code from here http://developers.facebook.com/docs/reference/plugins/like/ in the page.tpl the code shows the correct result.
If i activate the module, it shows "0".
Edit:
Okay, i think i know the cause:
I have a node (e.g. node/123 ) set as my front-page.
The like-button is part of the node, not part of the page, so if i "like" my start-page, i like the node 123 instead ...
Facebook counted the front-page ("xyz.de") until i activated the module. But now it counts the node ("xyz.de/node/123") and started at "0" ...
Any solution for this?
Something like "if node is front-page, don't show node-URL, just domain" ...
Comment #4
tfranz CreditAttribution: tfranz commentedMy – not very nice – solution: add an "if" line in "fb_social_like.module" lines 137ff:
Take care of the "urls mode: aliased/ Unaliased"
Now it shows the number of the front-page again ...
Comment #5
greenplasticme CreditAttribution: greenplasticme commentedIs this a solution to the original bug, or just your issue with the front page count?
Comment #6
tfranz CreditAttribution: tfranz commentedI don't know if it is the same, because i don't know the circumstances of the original bug – sorry.
But my problem seems to be a bit different to the first issue.
In my case it was only a "misunderstanding behaviour" on my front-page, when the location of the fb-script changed from the page.tpl.php to the node.tpl.php .
Without this (manual) change of the location there would not have been a change in the front page count.
So in the end it was me, not FB, which caused the problem.
(Still – in my opinion – the front page count shouldn't count the node. ;-)
Comment #7
stillcut CreditAttribution: stillcut commentedMy website is also impacted.
Comment #8
stillcut CreditAttribution: stillcut commentedComment #9
hwasem CreditAttribution: hwasem commentedsubscribe
Comment #10
ferdi CreditAttribution: ferdi commentedComment #11
hwasem CreditAttribution: hwasem commentedThis is now working for me. We were told by a vendor that Facebook installed a patch. That must have fixed it for us.