有人在SAE上做人人的应用吗?OAuth 2.0怎么出错呢?

TimLeaf 2012-03-13 09:10:38
我初学者,在SAE Python上想开发一个人人网的小应用。
使用服务端流程的OAuth 2.0验证。
因为之前没有做过,所以直接在服务器端redirect到:
https://graph.renren.com/oauth/authorize?client_id=YOUR_API_KEY&redirect_uri=YOUR_CALLBACK_URL&response_type=code

但是得到的返回信息:
{
"error": "invalid_request",
"error_description": "Server is temporarily unavailable. Please connect RenRen Open Platform."
}
...全文
160 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Gloveing 2012-03-14
  • 打赏
  • 举报
回复
你是客户端把?
那应该是:
https://graph.renren.com/oauth/authorize?
client_id=YOUR_API_KEY&redirect_uri=YOUR_CALLBACK_URL&response_type=token
TimLeaf 2012-03-14
  • 打赏
  • 举报
回复
redirect_uri 地方落下 http://
我真是初学者啊。。。
Gloveing 2012-03-13
  • 打赏
  • 举报
回复
redirect你填的是什么?
http://graph.renren.com/oauth/login_success.html 就可以了
TimLeaf 2012-03-13
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 agoago_2009 的回复:]

redirect你填的是什么?
http://graph.renren.com/oauth/login_success.html 就可以了
[/Quote]

redirect里面填写的就是这串URL
https://graph.renren.com/oauth/authorize?client_id=APIKEY&redirect_uri=CALLBACK_URL&response_type=code

一直返回以上错误结果。

37,743

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • WuKongSecurity@BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧