我想升级我们的应用程序以使用最新的OAuth 2.0 Javascript代码。在我的应用程序设置下的“迁移”,我已经启用了一切。 (OAuth迁移,升级到请求2.0等)Facebook OAuth 2.0 Javascript SDK authResponse
用以下命令调用FB.init之后:oauth:true。
然后调用FB.getLoginStatus(和FB.login一样)并检查我的响应对象我有一个response.session,但没有response.authResponse?任何人都知道我可能错过的任何设置,或者什么会导致oauth FB调用不会像文档状态那样返回authResponse?
response.status is there,but not response.authResponse。
真正简单的代码: 我fb.init参数: APPID:对API密钥 channelUrl API_KEY,//变量:channel_path,//变量通道路径 状态:真, 饼干:真实, XFBML: true, aouth:true FB.getLoginStatus(function(response){alert(response.authResponse);}); – BruceBannor
如何编辑您的问题并在其中添加正确格式的代码? – ifaour
你的问题只是拼写错误的参数“oauth” –