经过身份验证的推荐无效但oauth网址有效

时间:2012-01-31 17:22:08

标签: authentication facebook-graph-api facebook-opengraph facebook-oauth facebook-authentication

我有两种验证用户的方法。一个是我网站上正常的oauth方式:

https://www.facebook.com/dialog/oauth?client_id=161077997258367&redirect_uri=http%3A%2F%2Fwww.shopography.com%2F&scope=email%2Coffline_access%2Cuser_birthday%2Cpublish_actions%2Cpublish_stream%2Cread_stream%2Cstatus_update&state=%7B%22rID%22%3A570001%7D

这将返回一个代码,然后我可以使用它来请求auth_token。没有问题!

但是,当我点击Facebook内部为经过身份验证的推介而配置的链接时,我会收到Facebook拒绝的代码,因此我没有获得auth_token。

我通过身份验证的referall获得的错误是: {“error”:{“message”:“验证验证码时出错。”,“type”:“OAuthException”}}

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

从经过身份验证的推荐请求中获取当前网址,并将其用于“& code = ..”。在交换访问令牌时作为redirect_uri。

相关问题