喜欢/发送按钮在登录后自行关闭

时间:2012-08-30 11:47:27

标签: javascript facebook-like

我正在尝试在此网站www.urlc.be上实施类似按钮 我有SDK和app_id。

当我点击“喜欢”或“发送”按钮时,弹出窗口会立即打开并立即关闭。

你能帮我把它搞定吗

感谢。

更新:代码

<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>

页面喜欢

<fb:like send="true" href="http://www.urlc.be/myurl/" layout="button_count" width="450" show_faces="false"></fb:like>

1 个答案:

答案 0 :(得分:0)

问题来自Google Chrome不接受来自Facebook的Cookie。

相关问题