我正在使用 FB.ui 触发请求对话框。该对话框在非移动设备上正确加载。但是,它无法在 iPad 等移动设备上加载。出现的内容类似于带有 loading-gif
的弹出窗口/iframe。
FB.ui({
method: 'apprequests',
message: 'Hello People',
title: 'A friendly hello',
data: 'some-data',
display: 'touch',
access_token: my_access_token,
}, callback);
我已经尝试过 display: 'iframe'
、display:'popup'
、display: 'wap'
和 display : '页面'
。但没有任何效果。我怎样才能让它在移动设备上工作?谢谢。
最佳答案
我为我的移动设备使用了 URL 重定向,如下所示: http://developers.facebook.com/docs/guides/mobile/#web
To display a mobile-friendly Feed Dialog, redirect the user to the following URL:
http://www.facebook.com/dialog/feed? client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&display=touch
我假设它与您正在使用的 apprequests 方法类似。
关于facebook - FB.ui 对话框不显示在移动设备上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6533488/