Like Box Shows Error for liking blog page, but articles work fine - facebook

I've been struggling with this for a couple of days now. I have a simple wordpress blog. I've plugged in all the OG meta tags and run the page though the debugger many times and it shows no errors.
However when people click the Like button (generated from the Like Box plugin), they get the red error message suggesting that the page be run through the debugger.
I have generated other like buttons that live on individual blog posts, and so far these seem to be working fine, its only when trying to like page there is an issue.
Also note, that the facebook page was generated from the OG meta data after I had liked it. So this isn't from creating a page in Facebook and then trying to have people like it. I mention that just in case it matters.
The other thing of note, is that if I am already logged in (just me the admin), I can like and unlike it with no errors. If however I log out of facebook, and click the like button, after entering my facebook login, I see the error just as other users have.
I've been reading forum posts for days and have yet to find a solution. My blog URL is http://www.garrinball.com
Thanks

Your http://www.garrinball.com/ parses just fine on the linter. However, this is only a small issue, you don't specify any og:image tag on http://www.garrinball.com/2011/10/christmas-card-shoot/.
What is strange is I don't see any errors. I like the christmas-card-shoot and the like button maintained my like even after page refresh.
I also logged out of facebook, went back to like it, and it prompted me for credentials as normal. I logged in, and was able to like the button. No errors.
I'm wondering if it is specific to your account you're using.

I'd suggest trying with an other fb account.
I have a fanpage tab application with a like button on it, and after a while testing I got the exact same error as you :
<!-- with the JS SDK included and inited -->
<div class="fb-like" data-href="//fanpage-url" data-send="false" data-width="100" data-show-faces="false"></div>
When refreshing, the like button is however detecting correctly the like status.
No error message shows up when using another account than my admin-dev one... maybe its an antispam function ?

Related

Facebook Like button doesn't increment count if user includes a comment

I've been working on this for two days straight now. I'm using Rails 3.1.
My setup is like the one Lopez42 spelled out at the bottom of the page at Facebook I like button not working all the time
Unlike the other posts here, my like buttons appear fine, my comment box pops up and my AJAX calls return success.
The problem:
If I click the Like button and leave the comment blank, everything seems to work fine. The like count is updated (I verified at https://api.facebook.com/method/fql.query?query=select+url,total_count,like_count,comment_count,share_count,click_count+from+link_stat+where+url=my_url&format=json)
The post to the wall says "so-and-so Liked a link".
If, however, I enter a comment, the post to Wall says "so-and-so Shared a link" and no counts get updated (as per same test URL from above).
One other thing. I have quite a few Like buttons on the same page, each with their own URL. I've tried using both HTML5 div fb-like and the fbml tag fb:like.
Also, the facebook debug lint page gives good reports on all og tags, etc.
Anyone have any ideas?
TIA, Dan

Likes on home page are no longer showing

My homepage at http://www.kccurling.com no longer shows the likes. Though the other pages I set the ability to like is uneffected and does show their respective likes.
When I click the like button. rather than showing my facebook avatar I get a red "error". Clicking on the "red error", I get the following message
"There was an error liking the page. If you are the page owner, please try running your page through the linter on the Facebook devsite (https://developers.facebook.com/tools/lint/) and fixing any errors."
I then go the link provided. Type in the url and can see the number of likes for that page. by clicking the link at the bottom of the page. I click on debug. but that appears to do nothing. I am not savey enough to understand or see why the likes are still no longer showing on this page only.
This happen about the time I set up a facebook fan page but I am not sure if the two are linked.
Any directions would be appreciated.
Its most likely a temporary error.
Its worth making sure your Open Graph tags are present and working as per the linter.
You may need to wait an hour before linting again.
If its still borked in a couple of hours then there is a problem.
I've seen today a strange behaviour on my site too. The like button doesn't seem to work any longer. Then I've tried to create again a new like button on https://developers.facebook.com/docs/reference/plugins/like/. And this points in two directions. First I get a new app_id (but I don't know why). And second thing was, that I've had to verify my account by SMS or credit card. After that, all was fine...

problems with - Facebook Like Button Admin access

I've been having trouble accessing admin privledges for the like buttons on my website (along with other things).
This is the situation:
I have made a facebook page for my website www.digitaldemocracy.org.uk
I have made a facebook app for my website that allows people with facebook accounts to register and login to the site. This works fine.
Like buttons are associated with different php dynamically created pages on my website i.e. www.digitaldemocracy.org.uk/debate/debate.php?id=3850. These Like buttons work when users click on them. I also have a like button for the main page www.digitaldemocracy.org.uk which works a bit funny as it seems to sum up all the likes from the other pages (even though they all have different URLs associated with them)
Now what I'm having issues with:
I have put 3 facebook UIDs into the metatags for admin purposes for the Like buttons. I have tested some links with the fb Linter (https://developers.facebook.com/tools/lint/) and it doesn't seem to have any issues, but when I click the like buttons myself, I get no admin features. I have also tried accessing admin priv directly from facebook, but no luck with that either.
I read that you can tie admin rights to a fb page, so then I tried it with the facebook page (page_id) for the site, but no luck with that either.
I then tried to give admin rights from my website to the facebook app, but when i test it with the linter it says that i have associate it with the specific page www.digitaldemocracy.org.uk/debate/debate.php?id=unique_id, which seems to defeat the purpose of what i'm trying to do (tie all the website pages together so i can easily administrate them).
The furthest I've got is to see the insights for the domain www.digitaldemocracy.org.uk/ (where i wasn't able to before), but I can't seem to see likes for individual pages and I don't seem to have any admin rights about publishing to user's feed or seeing who the 'likers' are! Am I missing something now?
It 'seems' to be that i'm doing all the correct things specified by the documentation, but I have getting nowhere and don't know what else to do. I have searched forums for answers, but they're just all over the place. I hope that stating my exact problem and what I've done will hopefully find someone able to help me!
Thanks in advance.
Denise
2 things I have found:
It seems the Admin link will only appear when you are using the default like button settings (ie faces on etc)
For the times that I could not get the Admin link to appear, I ran the linter and it suddenly did.
Perhaps try emptying the cache for your browser too but I have a feeling the first point might solve your problem?
I could be wrong, would love to hear someone else's opinion!
This issue has been driving me crazy ever since I accidentally discovered that these magical pages existed. I've had them show up with and without appIds in the fb js snippet. There doesn't seem to be any logic.
Item 1 from Sam Hammond doesn't seem to matter. Most of my Like buttons have data-show-faces set to false.
<div class="fb-like" data-href="http://www.mysite.com" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div>
From the above example I have seen the following:
Actual Web Page Like Button shows "9k"
My admin page shows "1.7k"
It's great. I can reach 1.7k people who Liked the page. But what about the rest and what about any new pages I create?
For now, when in doubt, drop the Facebook Page Like Box on your web page because at least it works consistently:
https://developers.facebook.com/docs/reference/plugins/like-box/
I also have to wonder how facebook users react when they start seeing posts in their feed from sites they Liked. It seems a bit intrusive.
I frequently use the Linter/Debugger tool on my web pages, doesn't seem to make anything appear. But this tool is highly recommended for other purposes:
updated link from above is: https://developers.facebook.com/tools/debug

Facebook Like Button Keeps Resetting

I'm trying to add a facebook "like" button to my page, and it is appearing just fine. My problem is that once it is clicked by a user, it says "Like NUMBER" then resets as if the request was canceled or something.
The weird thing is that if I try to like a page using my facebook account it works, but I tried letting a friend like some content and this behavior appeared.
I created a facebook app, specified the site url with a trailing slash, and site domain. I used the app ID with FB.init, and with the open graph tags. I can't figure what I'm doing wrong here. Any help would be appreciated.
Sample page can be found at: http://wiseolive.com/en/doctors/3881-khalid-jamal-salaymeh
First, for the count to work correctly, Facebook needs to have access to the page (in other words a public page). Check your URL in the linter tool (https://developers.facebook.com/tools/debug) to ensure it can been seen by Facebook.
Secondly, ensure your og: tags are correctly setup. Once again, you can use the linter tool to do that.
Facebook like buttons will show this behavior until they have been scraped by Facebook. That scraping (facebook like docs) will occur every 24 hours, when an admin clicks the like button or the url is put in the url debugger/linter. From what I can tell doing that will solve the problem for that specific link, but not any others you may have on your site.
I don't know of a generic solution for dynamically generated pages unfortunately.

facebook like button flashing on then off

I cannot get the Like button to work on one site. http://www.room13canada.ca/test.html
When the button is clicked it fires off to facebook but the callback then undoes the call? I have stripped all code to make sure there is no js or css or whatever breaking the button.
please look at the pagesource - it makes no sense why it doesn't work.
if I change
<fb:like href="www.room13canada.ca"
to
<fb:like href="www.cnn.com"
it works like a charm??
any help would be great
Have you considered trying with the iframe method?
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.room13canada.ca%2Ftest.html&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
Well, I was also having problems with the facebook like plugins and also heard from people that it is a facebook bug. After searching a lot on gOOgle .... I found a good result and don't think that this is a fb bug.
You will have to add this file into the header of your website:
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
Property of Meta Tags (facebook likes Meta Tags) ==> og:image - An image URL which should represent your object within the graph.
Replace "http://ia.media-imdb.com/images/rock.jpg" with real path to image.
For Wordpress Users:
Add the following code in the head 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... Hope this will work for you all !! Share your experience ...
First, I'll give my hypothesis: If the Facebook URL Scraper has tried to scrape your page, and was unable to access it (e.g., if it was pending moderation and the Facebook Scraper bot got redirected to a "login" page), Social Plugins like the Like button and Comments won't work because Facebook thinks the URL is "inaccessible." It takes 24 hours for Facebook to try scraping the page again--until then, Facebook will assume it's still inaccessible.
Here's what Facebook says about how often pages are scraped and how to force a scrape:
Facebook scrapes your page every 24 hours to ensure the properties are up to date. The page is also scraped when an admin for the Open Graph page clicks the Like button and when the URL is entered into the Facebook URL Linter. Facebook observes cache headers on your URLs - it will look at "Expires" and "Cache-Control" in order of preference. However, even if you specify a longer time, Facebook will scrape your page every 24 hours.
Note that the Facebook URL Linter has been renamed the Facebook Object Debugger.
I could be wrong about the underlying issue. I'll give you my experiences, and you can decide.
Our site is a collection of blogs, and all blog posts have a "like" button, generated with identical code (except for the URL being liked). By default, all blog posts are saved to a "draft" state, and not available unless you are logged in. If an anonymous user attempts to visit a "draft" blog post, he will be redirected to the login page.
Months ago, we experienced a "Like" button problem, although the error manifested slightly differently: we got "URL inaccessible" when clicking the Like button. This only happened on posts that had "Like" buttons and also were not immediately published (e.g., they were saved to a "Draft" state). I thought this was fixed when I changed the "Draft" view to not display Facebook social plugins.
However, I've noticed that, from time to time, if you click the "Like" button on a particular post, the "Like" flyout flashes on the screen for a moment and then disappears, with no "like" action taking place. Different behavior, same problem: "Like" button doesn't work.
At the same time, the "Like" buttons on every other post worked just fine! I tested this, and then came back to the one post I couldn't "Like". Same behavior: flyout appears and disappears, no "Like" happens.
I used Chrome's developer tools to see what HTTP requests were being made, comparing the request/response for a working "like" to the "like" that wasn't working. The "Like" button JavaScript makes an HTTP POST request to http://www.facebook.com/plugins/like/connect and gets some JavaScript back. As best I could tell, the HTTP POST request was identical between the working and non-working like buttons, but the response was different. Below is the JavaScript response for a working like, followed by the JavaScript response for a like that wasn’t working:
for (;;);{"__ar":1,"payload":null,"jsmods":{"require":[["Plugin","connect",[],["http:\/\/www.hslda.org\/cms\/?q=blog\u00252Fpeeking-through-fence","10151028997762924"]]]}}
for (;;);{"__ar":1,"payload":null,"jsmods":{"require":[["Plugin","disconnect",[],["http:\/\/www.hslda.org\/cms\/?q=blog\u00252Fpoem-just-you"]]]}}
I note two distinctions: the working version “connect” whereas the non-working version has “disconnect”, and the working version has an additional parameter that looks like an ID. I’m guessing it’s the ID of this particular “like” event.
I did some Googling and couldn’t find a definitive answer. Trying to debug this, I used the Facebook Object Debugger. It found some “Like Button Warnings” and “Open Graph Warnings” that are worth fixing, but I don’t think they are the problem—because they were the same for URLs with working like buttons and for the URL with the like button that wasn’t working.
So then I decided to go to the Facebook Social Plugin page for the Like Button. I dropped in the URL of the non-likeable blog post, and tried liking it. It worked. I wondered, “is the like button on the page still broken?” I couldn’t like it because I’d already liked it. So I asked a coworker try and like the post, and it worked for him. I then had my coworker unlike the post, I unliked it (so we were back to no likes), and then I tried liking it again, using the like button on the blog post. It worked.
So, it seems like once I "forced" the page to be scraped again, it started working. But it's also possible that "forcing" a like through the Like button page broke something loose as well... not sure.