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

dotsam’s picture

I've got the same problem -- any ideas?

Using the link: http://api.facebook.com/restserver.php?method=links.getStats&urls=YOURURL I get:

<share_count>106</share_count>
<like_count>74</like_count>
<comment_count>30</comment_count>
<total_count>210</total_count>
<click_count>0</click_count>

Does this mean something has changed on Facebook's side?

johnTEN’s picture

I have exactly the same problem. Facebook share gets the count right but this module does not

tfranz’s picture

Version: 6.x-1.0-beta6 » 6.x-1.0-beta8
Category: support » bug

... 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" ...

tfranz’s picture

Category: bug » feature

My – not very nice – solution: add an "if" line in "fb_social_like.module" lines 137ff:

function theme_fb_social_like_widget($url){
  global $_fb_script_init;
  $_fb_script_init = TRUE;
  if ($url == "http://www.MYDOMAIN.de/node/123") $url = $front_page;

Take care of the "urls mode: aliased/ Unaliased"

Now it shows the number of the front-page again ...

greenplasticme’s picture

Is this a solution to the original bug, or just your issue with the front page count?

tfranz’s picture

I 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. ;-)

stillcut’s picture

My website is also impacted.

stillcut’s picture

Category: feature » bug
Priority: Normal » Major
hwasem’s picture

subscribe

ferdi’s picture

test

hwasem’s picture

This is now working for me. We were told by a vendor that Facebook installed a patch. That must have fixed it for us.