Facebook Like button not working for all URLs - facebook-like

I'm trying to fix a problem with the Facebook like button not showing on some urls on our site. It was working fine on all URLs until about a week ago.
It seems to be pretty inconsistent.
Currently i can see the like button on this URL
http://www.chargrilled.co.uk/t-shirts/I-See-Dumb-People-t-shirt.m
But not this URL
http://www.chargrilled.co.uk/t-shirts/Tea-Is-For-Mugs-t-shirt.m
From testing I have found that removing the www from the URL tends to fix the issue but obviously the like counts are different (usually 0).
Strangely when you go to the facebook like button page (https://developers.facebook.com/docs/reference/plugins/like/) and enter the second URL (above) the like button disappears even there.
Have tried so many different things, including stripping all other HTML, CSS and JS off of the page apart from the FB code and still no joy!

Your url is showing up in the debugger with no errors.
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.chargrilled.co.uk%2Ft-shirts%2FTea-Is-For-Mugs-t-shirt.m
suggestion: urls which appear not to be upto date, run them in the url debugger logged in as the admin account and Facebook will scrape the page for metatags.
http://developers.facebook.com/tools/debug
NOTE: If a user adds first like to a button, Facebook could take upto 24 hours to scrape the page or og tags, if an admin creates first like, it is done instantly. After first like either way, Facebook re-scrapes the page about every 24-72 hours.

Related

Facebook like button disappeared in some pages

I have a problem to install facebook like button to my PmWiki site.
Some of pages work with the button fine but some not. I have tried to study the script got from facebook and found the span and iframe are all with 0 width and 0 height.
So I tried input the URL with problem to the like button plugin page: http://developers.facebook.com/docs/reference/plugins/like/
While I filled URL with problem like: http://www.newland-id.com/techwiki/index.php?n=Products.Products in the URL box of plugin page. I saw nothing on the right.
But same site some other pages work fine like above URL replace ?n=Products.Products to ?n=NQuire.NQuire.
I have also tried to report it to facebook bug, but that is funny I can not see create bugs button in the bugs page.
Please suggest or any body help me to report this bug to facebook?

Facebook like button (IFRAME) not working

I have successfully installed the facebook like button in iframe, but it seems like the "Likes" count is incorrect. I have tried liking a post from several accounts, and it always appear as only 1 like.
Any idea how to solve this?
I had a some "bug" with facebook like button.
First check yourt metas, and your og: properties. Put your url into a like button generator (http://developers.facebook.com/docs/reference/plugins/like/) and try to like your page. If the count is
Please try to change the like url to the facebook page, what is generator for your page to administer it. It was my solution to fix it.

Facebook like button are not diplaying when anyone are liking the page and never are not showing for others

I want to add facebook like button to every pages.
But the problem is that the like button are showing first time when page are loading then if anyone are like the button then the like button are invisble.
I was test url into https://developers.facebook.com/docs/reference/plugins/like/
here and getting the same problem. I am not getting any problem when i am testing with http://fridaymedia.in/
But when I am testing with
http://fridaymedia.in/TP_ECom/
http://fridaymedia.in/TP_ECom/retail/
http://fridaymedia.in/TP_ECom/retail/details/
http://fridaymedia.in/TP_ECom/retail/details/men-clothing-t-shirts/
They are getting the problem.
Please anyone solve this problem?
Are your site's pages protected with an .htaccess password? If so, that could be the issue. I ran into this problem myself, and after going down the wrong path for a bit, I went back to my initial suspicion - htaccess password.
I didn't really look into the code, but I assume the button is set to have FB scrape the page after a user clicks like. With the password blocking things, FB can't scrape the page. Rather than displaying the button as if it hadn't been clicked, it just displays nothing - which is where my, and I assume your, confusion came in.
After changing htaccess, you'll have to wait 24 hours for the page(s) to be scraped by FB when they're loaded. However, you can use the FB debugger (http://developers.facebook.com/tools/debug) to manually scrape individual pages.

Why is the Facebook "like" code submission telling me that our FB page url is incorrect?

Trying to obtain a "like box" code to apply to our website. When I enter the facebook url of our page (copy/paste from browser), I am getting an error telling me that it is incorrect. I have tried several variations of urls thinking that it was because I was logged into our account but nothing has worked. What am I doing wrong?
On the page to obtain the code for the like box, it asks for facebook page url. I pasted in the url that was in the address bar of our homepage and when that didn't work, I tried variations of our name but none of it has worked. Our facebook page is Harrison Mechanical & Electrical, Inc. I've tried facebook.com/pages/Harrison-Mechanical-Electrical-Inc/…, tried taking off the numbers at the end, tried removing "pages", tried facebook.com/harrison, facebook.com/harrisonmechanical, facebook.com/harrisonmechanical&electrical.....
I worked fine for me.
<div class="fb-like-box" data-href="http://www.facebook.com/pages/Harrison-Mechanical-Electrical-Inc/290514827625424" data-width="500" data-show-faces="true" data-stream="true" data-header="true"></div>
Maybe your app id of the app you have is still in sandbox mode?

Facebook Like button og:image needs to be scraped to be displayed

I've got a Drupal website with articles on them which have Facebook like buttons.
Now I've got all the OpenGraph metatags added on the pages and it's all working perfectly except for one thing.
Site visitors can share a page URL or like a page URL.
When a new article is added and the first person who presses the like button will not see the image added in the og:image tag.
If another person afterwards presses the like button, the og:image however is visible so it seems to me Facebook needs to scrape the page first before the og:image is added in the 'Facebook Like window'.
The Facebook share doesn't seem to suffer from this problem and does it right from the first time.
Now whenever somebody adds a new article, I'd need the URL of the article to be scraped automatically by Facebook using some PHP code or some other fix...
Anyone who knows if autoscraping a URL is possible or does anyone have an idea for a workaround?
You can use the graph API with scrape=true to force Facebook to scrape you right when you create your contents
https://developers.facebook.com/docs/beta/opengraph/objects/