Facebook comment.create不在手机上开火-ios Safari和安卓浏览器
Facebook comment.create not firing on mobile - ios Safari and android browser
这让我疯了-我无法在移动设备上启动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>
请注意,这仍然是一个持续的FB错误
相关文章:
- 在Safari iOS中使用加速计
- 删除的DOM元素仍然显示在移动safari(iOS 5.1)中
- 在不支持的浏览器中替代IndexedDB?Safari/iOS Safari Chrome
- 基于宽度计算的表格列显示和隐藏在 Safari IOS 设备中不起作用
- IndexedDB.open 在 Safari iOS 8.1.1 上返回 null,并在 Cordova 上停止执行.
- 不能在一个页面上编写cookie,Safari iOS
- 使用后退按钮时如何防止Safari ios移动缓存
- Mobile Safari iOS无法在第一页访问时加载多个小文件(如图像或JavaScript)
- 侧菜单滚动滞后于safari(ios)
- Safari iOS上未触发Hammer.js滑动事件
- Safari iOS Form Bug (?)
- 使用 jQuery 将内容附加到 DOM 时出现问题(仅在 Safari iOS 上)
- Bootstrap Javascript不适用于Firefox和Safari IOS
- 悬停需要双击才能在Safari iOS上工作
- 拖动&在Safari iOS上下载:赢得't拖动,赢得'在台式机/iPad上没有响应
- 在safari ios上隐藏方向转换
- 拖动&在Safari iOS上下载:大部分是为我处理的吗?还是我必须对大部分进行编码
- 使用-webkit-overflow-scrolling时的当前滚动位置:touch - Safari iOS java
- 视差滚动跳跃在safari ios
- 如何在iphone上的safari ios 7的智能搜索字段中启用javascript