Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QQ 网页授权 #16

Closed
inatu opened this issue Nov 19, 2015 · 10 comments
Closed

QQ 网页授权 #16

inatu opened this issue Nov 19, 2015 · 10 comments

Comments

@inatu
Copy link

inatu commented Nov 19, 2015

如果没有安装 QQ, 无法打开网页授权页面

2015-11-19 14:53:39.589 China[1989:80597] -canOpenURL: failed for URL: "mqqapi://" - error: "(null)"
@Limon-O-O
Copy link
Collaborator

MonkeyKing暂时不支持QQ的网页授权,我智商不足,QQ的文档太深奥,上次研究了2个小时都没弄好,果断放弃。

@inatu
Copy link
Author

inatu commented Nov 19, 2015

@Limon-O-O
Copy link
Collaborator

赞,我缺的就是redirect_uri,我看QQ文档的时候就是绕进了这个redirect_uri。你是用QQ SDK上截取的?我晚上试试这个redirect_uri

@inatu
Copy link
Author

inatu commented Nov 19, 2015

OK, 做好后跟我说一下, 对, 我用 QQ 的 SDK截取的, 如果可以做到麻烦通知我一下.

@Limon-O-O
Copy link
Collaborator

OK

@Limon-O-O
Copy link
Collaborator

弄了一晚....
需要注意的是Info.plistApp Transport Security Settings,里面的qq.com是需要设置4个items。

@inatu
Copy link
Author

inatu commented Nov 20, 2015

应该不是吧, ShareSDK 是支持网页和 App 授权的, 你应该是没有申请权限吧, 搜索你的错误代码.

http://wiki.open.qq.com/wiki/【QQ登录】公共返回码说明

On Nov 20, 2015, at 1:15 AM, Limon notifications@github.com wrote:

已泪奔.....现在成功获取了token,但......居然说msg = "app has no privilege to use this api";
ret = 100031;我也是醉了,难道QQ是不能同时支持网页和App授权的?


Reply to this email directly or view it on GitHub #16 (comment).

@Limon-O-O
Copy link
Collaborator

后来发现是API的原因,现在可以App和Web授权。你试试

@inatu
Copy link
Author

inatu commented Nov 20, 2015

好的, 提个小建议,感觉你如果用swift的异常处理机制可以将api设计的更好,包括微博分享视频等各种异常的fatal error,本来想自己完善下的,不过因为最近开发任务比较重,在设计我们4.0版本的重写,所以没有时间。

总之感觉这个框架想法不错。

Sent from my iPad

On Nov 20, 2015, at 10:31 AM, Limon notifications@github.com wrote:

后来发现是API的原因,现在可以App和Web授权。你试试


Reply to this email directly or view it on GitHub.

@Limon-O-O
Copy link
Collaborator

本来也想用,最近任务也比较重,我在重新开发3.0,过段时间有空再改 :)

@inatu inatu closed this as completed Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants