可以将FB.login()显示为Facebook的iframe应用程序页面吗? [英] can FB.login() display as page for facebook iframe application?
本文介绍了可以将FB.login()显示为Facebook的iframe应用程序页面吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的代码?
FB.login(function(response){
console.log(response)
if(response.session){
connectFacebook();
}
},{perms:'email,read_stream,publish_stream,offline_access'});
我需要权限用户才能使用我的应用程序。
I need to permission user to use my application.
问题是FB.login在弹出式样中显示,但我需要以页面样式显示,如:
The problem is FB.login show in popup style but i need it to show in page style like :
我该怎么办?如何更改代码?
how can i do it? how do i change my code?
谢谢!
推荐答案
如果您不想弹出窗口,则必须使用Facebook OAuth 2.0进行网络应用程序。在这里阅读: http://developers.facebook.com/docs/authentication/
If you don't want popup you will have to go with Facebook OAuth 2.0 for web apps. Read about it here: http://developers.facebook.com/docs/authentication/
这篇关于可以将FB.login()显示为Facebook的iframe应用程序页面吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文