Yes, yet another facebook like button error. Read a dozen of threads about those errors, but it wasn’t helpful.
The page: http://tanios.com/vote/
The problem is that when I click like below the picture for the first time it’s OK. But when I dislike it (I press ‘remove & unlike’ in my news feed) and try to click like again it throws an error and suggests checking using lint. But lint doesn’t show any errors. If I log out of facebook and log in again then it’s the same (ok for the first, but error after unliking).
The next problem is that counter near like button says that 6 people like this. But counter above the image (data taken from http://graph.facebook.com/http%3A%2F%2Ftanios.com%2Fvote%2Findex.php%3Furl%3D1 and http://graph.facebook.com/http%3A%2F%2Ftanios.com%2Fvote%2Findex.php%3Furl%3D2 respectively) shows different number.
Is there anything I can do about this or it’s something temporally wrong with facebook?
I have a simple redirection:
$is_facebook = (substr_count($_SERVER['HTTP_USER_AGENT'], "facebook") > 0);
if($_GET["url"] == 1 && !$is_facebook) header("Location: $website#lebanon");
if($_GET["url"] == 2 && !$is_facebook) header("Location: $website#montreal");
But removing this doesn’t change anything.
Odd, I don’t get any error when unliking from either my profile page or from your website. Here’s the payload I get back for the unlike action
Is there something I need to try to make it break?