I’m trying to implement the like button on this site http://www.urlc.be
I have the SDK and an app_id.
When I click the ‘like’ or ‘send’ button a popup opens and closes instantly without error.
Can you help me make it work
Thanks.
UPDATE : CODE
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '437569932948538', // App ID
//channelUrl : 'http://www.urlc.be/static/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
// Additional initialization code here
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
page to like
<fb:like send="true" href="http://www.urlc.be/myurl/" layout="button_count" width="450" show_faces="false"></fb:like>
The issue was from google chrome not accepting cookies from Facebook.