关于迁移到OAuth2的Facebook API错误 [英] Facebook API error about migrate to OAuth2

查看:126
本文介绍了关于迁移到OAuth2的Facebook API错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到这个Facebook API错误:

I am getting this Facebook API error:


API错误代码:100
$
API错误描述:无效参数
错误消息:请迁移到OAuth2并使用新的/ dialog / oauth端点。 return_session不再可用。

API Error Code: 100
API Error Description: Invalid parameter
Error Message: Please migrate to OAuth2 and use new /dialog/oauth endpoint. return_session is no longer available.

但是,我设置了Facebook API密钥和API密码的变量。我在这里缺少什么?

However, I set the variable for Facebook API keys and API secret. What am I missing here?

推荐答案

您是否使用最新的PHP SDK?

Are you using the newest PHP SDK?

https://github.com/facebook/facebook-php-sdk

我猜是你使用的是旧版本(2.x),所以你应该升级。如果没有帮助,请查看登录文档:

My guess is that you are using an older version (2.x), so you should upgrade. If that does not help, take a look at the login docs:

https://developers.facebook.com/docs/reference/plugins/login/

https://developers.facebook.com/docs/reference/javascript/FB.login/

https ://developers.facebook.com/docs/reference/php/facebook-getLoginUrl/

这篇关于关于迁移到OAuth2的Facebook API错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆