iOS SDK - 雅虎 OAuth
我想通过雅虎登录我的应用程序。我一直在关注本教程: http://developer.yahoo.com/social/sdk/objectivec / 但它似乎已经过时了。
在下面的行中,方法 sendUserToAuthorizationWithCallback:
甚至不存在:
[session sendUserToAuthorizationWithCallback:nil];
我将其更改为:
[session sendUserToAuthorizationWithCallbackUrl:nil];
但我在 Yahoo 文件内收到错误的访问异常。它在 iOS 4 和 iOS 5 上都不起作用。
I want to login my application through Yahoo. I have been following this tutorial: http://developer.yahoo.com/social/sdk/objectivec/ but it seems outdated.
In the following line the method sendUserToAuthorizationWithCallback:
doesn't even exist:
[session sendUserToAuthorizationWithCallback:nil];
I changed this to:
[session sendUserToAuthorizationWithCallbackUrl:nil];
But I get a bad access exception inside Yahoo files. It didn't worked neither on iOS 4 nor on iOS 5.
The Yahoo sources are here: https://github.com/yahoo/yos-social-objc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当我为我的应用程序分配权限时,它对我有用
http://developer.apps.yahoo.com/projects/
it worked with me when i have assigned permissions to my app
http://developer.apps.yahoo.com/projects/
上面的 SDK 现在应该可以工作了。尝试一下:https://github.com/yahoo/yos-social-objc
The above SDK should work now. Try it: https://github.com/yahoo/yos-social-objc