Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook like is not posting to timeline/new feed/wall

I am getting one weird issue on my site. I did what facebook developer site said exactly the same way but still getting the same issue. Issue is that when I click on "Like" button on my website, the popup and count works absolutely fine but story does not get published on facebook's timeline or news feed. However (as strange it sounds) when I debug my page using linter tool it does not show any warnings and after that only like button for that page starts posting to user's wall otherwise not. I am not getting the connection between linter tool and this publish policy of FB. Can anyone please help me with this....it is taking too much time to resolve :(

These are my meta-tags

<meta property="og:description" content="[DESCRIPTION]" />
<meta property="og:site_name" content="[SITE_ADDRESS]" />
<meta property="og:type" content="object" /> 
<meta property="og:url" content="[PAGE_WHERE_LIKE_BUTTON_IS LOCATED]" /> 
<meta property="og:title" content="[PAGE_TITLE]" /> 
<meta property="og:image" content="[IMAGE_URL]" /> 
<meta property="fb:app_id" content="[APP_ID]" />
<meta property="fb:admins" content="[ADMINS_ID]" />

I am using "Like" as action and "object" on my App Dashbord's opengraph.

The most strange thing is everything works fine onlt after using debug tool. Question is why??

BR, MailMaster

like image 421
mailmaster09 Avatar asked Nov 04 '22 12:11

mailmaster09


1 Answers

I had the same problem and I temporary resolved calling the facebook debug tool directly from inside the page using an ajax call. It's horrible, I know. But if you are in a hurry (like me) you may want to use this as a temporary work around, until you find the right way

My page is http://www.organirama.com/showserver/minisite.php. The workaround is (requires jquery).:

$(document).ready(function() {
    $.ajax({
        url : "http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.organirama.com%2Fshowserver%2Fminisite.php",
        success : function (a,b) {
        },
        error : function (a,b,c) {
        }
    });
});
like image 173
Kurt UXD Avatar answered Nov 15 '22 13:11

Kurt UXD