我一直在使用api调用来验证用户对Facebook
https://graph.facebook.com/oauth/authorize?client_id=715408518535970&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Foauth%2Fecho&scope=email%2Cread_stream
这将重定向,并将有一个access_token查询参数 . 现在在重定向期间,只有一个名为code的查询参数 .
这种身份验证方法是否已被弃用?
是的,它已被弃用 . https://developers.facebook.com/docs/apps/changelog
[Oauth访问令牌]格式 - 当您交换access_token的代码时返回的https://www.facebook.com/v2.3/oauth/access_token的响应格式现在返回有效的JSON而不是URL编码 . 此回复的新格式为{"access_token":,"token_type":,"expires_in":} . 我们使此更新符合RFC 6749的第5.1节 .
1 回答
是的,它已被弃用 . https://developers.facebook.com/docs/apps/changelog
[Oauth访问令牌]格式 - 当您交换access_token的代码时返回的https://www.facebook.com/v2.3/oauth/access_token的响应格式现在返回有效的JSON而不是URL编码 . 此回复的新格式为{"access_token":,"token_type":,"expires_in":} . 我们使此更新符合RFC 6749的第5.1节 .