Send dialog doesn't work in page tab

余生颓废 提交于 2019-12-11 04:57:10

问题


Send dialog doesn't work in iframe page tab.

did as in example on 'Send Dialog' page https://developers.facebook.com/docs/reference/dialogs/send/

<html xmlns:fb="https://www.facebook.com/2008/fbml">
  <body>
    <script src="http://connect.facebook.net/en_US/all.js"></script>
    <div id="fb-root"></div>
    <script>
      // assume we are already logged in
      FB.init({appId: '123050457758183', xfbml: true, cookie: true});

      FB.ui({
          method: 'send',
          name: 'People Argue Just to Win',
          link: 'http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html',
          });
     </script>
  </body>
</html>

But this returns error:

API Error Code: 3
API Error Description: Unknown method
Error Message: Unknown method

but when change to 'feed' dialog everything works perfectly.


回答1:


There's a filed bug about it here. One solution is suggested though is to use display: 'popup'



来源:https://stackoverflow.com/questions/7280713/send-dialog-doesnt-work-in-page-tab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!