【问题标题】:Facebook comment.create not firing on mobile - ios Safari and android browserFacebook comment.create 未在移动设备上触发 - ios Safari 和 android 浏览器
【发布时间】:2013-07-24 20:32:11
【问题描述】:

这让我发疯 - 我无法让 facebook comment.create 事件在移动设备上触发(不是我测试过的工作)。登录事件工作正常(auth.authResponseChange)

<html>
<head></head>
<body>
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
  FB.init({
    appId      : 'MYAPPID', // App ID
    channelUrl : '//WWW.MYAPPURL.COM/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
  });

    FB.Event.subscribe('comment.create', function(response) { alert("1"); });
//  FB.Event.subscribe('auth.authResponseChange', function(response) {alert("1"); });

  };

  // 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 = "http://connect.facebook.net/en_US/all.js";
   ref.parentNode.insertBefore(js, ref);
  }(document));


</script>


<fb:login-button show-faces="true" width="200" max-rows="1"></fb:login-button>


comments
<div class="fb-comments" data-notify="true" data-href="http://test/test.htm" data-width="470" data-num-posts="10"></div>
</body>
</html>

【问题讨论】:

  • 这是在 7 月 13 日打开的,您提供的链接中的问题是在 10 月 13 日打开的(所以第二个是重复的)+ 检查 FB 中的错误...我打开了它:)
  • 你是对的。我将此标记为重复,因为另一个问题的答案与您报告的错误有关。

标签: javascript web-applications facebook-javascript-sdk


【解决方案1】:

请注意,这仍然是一个持续的 FB bug

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-12-17
    • 2013-07-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多