用于发布到 Wall 的 Facebook Javascript UI 只是闪烁
我试图让 Facebook 对话在用户完成一个事件时出现,所以我构建了这个功能。
function post_to_wall_popup(){ FB.init({ apiKey: 'Super Secret API Key' }); var publish = { method: 'stream.publish', attachment: { name: 'XYZ', caption: 'caption here', description: ('description'), href: 'url', media: [{ type: 'image', href: 'url', src: 'xyz.gif' }] }, action_links: [{ text: 'XYZ', href: 'url' }] }; FB.ui(publish,null); }
我尝试了几个不同的示例,这些示例应该具有类似的结果,但在每个示例中,我得到的只是带有“正在加载..”的对话框,一瞬间,然后它就消失了。 还有其他人遇到过类似的问题吗?
I am trying to make a Facebook dialogue appear when the user completes an event and so I built this function.
function post_to_wall_popup(){ FB.init({ apiKey: 'Super Secret API Key' }); var publish = { method: 'stream.publish', attachment: { name: 'XYZ', caption: 'caption here', description: ('description'), href: 'url', media: [{ type: 'image', href: 'url', src: 'xyz.gif' }] }, action_links: [{ text: 'XYZ', href: 'url' }] }; FB.ui(publish,null); }
I have tried a few different examples that are supposed to have similar results but on each one all I get is the dialog box with "Loading.." for a split second, then it disappears.
Has anyone else ever come across a similar problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保 fb-root 已定义 &可见的。
Make sure that fb-root is defined & visible.