我的FB.ui方法有问题-我试图显示对话框(提要),然后将用户重定向到某个网址,如下所示:

FB.ui({
  title: 'some title',
  display: 'iframe',
  method: 'feed',
  caption: 'some caption',
  message: 'some message',
  redirect_uri: 'http://apps.facebook.com/my_app/'
});


但是,当我使用此属性(redirect_uri)对话框加载卡纸时,在萤火虫中我可以看到发生了错误:对不起,出了点问题。我们正在尽快努力修复这个。

最佳答案

您可以尝试使用回调函数:

FB.ui({
      title: 'some title',
      display: 'iframe',
      method: 'feed',
      caption: 'some caption',
      message: 'some message'
    },
    function(){
        top.location.href = "http://apps.facebook.com/my_app";
    }
);

10-04 22:17
查看更多