点赞/发送按钮在登录后自行关闭

Like/send button closing by itself after login

本文关键字:登录 按钮 点赞      更新时间:2023-09-26

我正试图在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>

问题来自谷歌chrome不接受来自Facebook的cookie。