在页面中显示应用程序而不是弹出窗口

时间:2011-10-26 21:26:38

标签: oauth facebook-oauth

我的应用程序在弹出窗口中运行..我正在尝试让它在同一页面中运行

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

      FB.ui({
        client_id: '164563273618405',
        method: 'oauth',
        scope: 'email,user_birthday,user_about_me,user_status,user_photos,friends_photos,read_stream',
        redirect_uri: 'xxxxxxxx',
        response_type: 'token'
      });
     </script>
  </body>
</html>

当我尝试通过添加display:page在页面中运行app时,如中所述 developers.facebook.com/docs/reference/dialogs/#display然后代码成为

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

      FB.ui({
        client_id: '164563273618405',
        method: 'oauth',
        display: 'page',
        scope: 'email,user_birthday,user_about_me,user_status,user_photos,friends_photos,read_stream',
        redirect_uri: 'xxxxxxx',
        response_type: 'token'
      });
     </script>
  </body>
</html>

它没有运行。

0 个答案:

没有答案