About 90% of the time, when I click on the Like button on my website, the confirm link shows up. When I click confirm, the popup appears and I click "Like". However, the confirm link is still there and my Like was not counted. I clicked confirm multiple times, but it still does not work. I refreshed the page many times, and about 10% of the time, the confirm link never shows up and I can Like it normally.
I heard about the Facebook Linter (aka debugger). I "linted" my page and I still cannot Like it.
Here's an example page: / (the bottom portion is loaded in an iframe).
About 90% of the time, when I click on the Like button on my website, the confirm link shows up. When I click confirm, the popup appears and I click "Like". However, the confirm link is still there and my Like was not counted. I clicked confirm multiple times, but it still does not work. I refreshed the page many times, and about 10% of the time, the confirm link never shows up and I can Like it normally.
I heard about the Facebook Linter (aka debugger). I "linted" my page and I still cannot Like it.
Here's an example page: http://linksku./news/funny/i-like-steve-jobs-less-and-less-the-more-i-read-about-him/ (the bottom portion is loaded in an iframe).
Share Improve this question asked Nov 11, 2011 at 22:19 Leo JiangLeo Jiang 26.4k59 gold badges177 silver badges328 bronze badges 6- Works for me every time. Which browser are you using? – leo.vingi Commented Nov 15, 2011 at 14:23
- Strange, it works in Firefox. I was using Chrome. I disabled all my extensions in Chrome, and it still doesn't work. – Leo Jiang Commented Nov 16, 2011 at 3:04
- I am using Chrome as well, that's the browser I tested and I have absolutely no addons. – leo.vingi Commented Nov 16, 2011 at 9:02
- 1 This is what I got on Safari: "Facebook's new Like button has been very glitchy recently. If you cannot Like this article, please click here." – leo.vingi Commented Nov 16, 2011 at 9:10
- I'm using Chrome, and got the same message as leo.vingi – Hoàng Long Commented Nov 18, 2011 at 4:47
3 Answers
Reset to default 1You haven't got the open graph namespace included in your html tag. That might cause weird behaviour. Try updating that to see if anything improves. An example of what it should look like:
<html xmlns="http://www.w3/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="https://www.facebook./2008/fbml">
see documentation.
Load Facebook SDK This Way
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({ appId: '111111111111111', status: true, cookie: true, xfbml: true });
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol + '//connect.facebook/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
} ());
</script>
It is because of link redirection. Suppose you are making the button to like the following link:
http://example./abc.php?product=100
but when someone opens the above link by typing into the web browser, they get redirected to the following link (just giving an example)
http://example./abc/def
So make sure you put the correct link which is to be liked in the like button. In other words, if you will put http://example./abc/def
in the link button, it won't ask for Confirmation.