在页面中显示应用程序而不弹出
我的应用程序在弹出窗口中运行。
<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>
当我尝试通过添加显示:页面中提到的使应用程序在页面中运行时,我试图使其在同一页面中运行 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>
无法运行。
My app run in a pop-up window..I'm trying to make it runs in same page
<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>
when i tried to make app run in page by adding display: page as mentioned in
developers.facebook.com/docs/reference/dialogs/#display then code become
<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>
it didn't run .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论