MySpace 与 iPhone 集成
我制作了一个 iPhone 应用程序,必须在其中实现 myspace 集成。我使用developer.myspace.com 创建了myspace 应用程序。
我收到 APPLICATION_SCHEME、CONSUMER_KEY 和使用该应用程序创建的 APPLICATION_ID。我在我的应用程序中使用它来更新状态。我没有得到以下详细信息: (i) 消费者秘密 (ii) ACCESS_TOKEN_KEY (iii) ACCESS_TOKEN_SECRET (iv) PERSON_ID
每当我更新 myspace 上的状态时,它都会给出错误 401,这意味着身份验证失败。那么,谁能告诉我如何解决这个问题?
我创建的参考应用程序位于此处。
提前致谢。
I made an iPhone application in which I have to implement myspace integration. I have created myspace application using developer.myspace.com.
And I am getting APPLICATION_SCHEME, CONSUMER_KEY & APPLICATION_ID using that application created. That I am using in my application to update status. I am not getting the following details:
(i) CONSUMER_SECRET
(ii) ACCESS_TOKEN_KEY
(iii) ACCESS_TOKEN_SECRET
(iv) PERSON_ID
And whenever I update status on myspace it is giving error 401 which means authentication failed. So, Can anyone tell me how to solve this issue?
The reference application which I have created is here.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
-->您需要在.plist 文件中注册一个唯一的URL 类型。
--> 确保将上下文的UrlScheme属性设置为您在中使用的相同值 .plist 当您实例化 MySpace 类时。这将允许 SDK 创建一个适当的回调 URL,该 URL 将在用户通过身份验证后触发您的应用程序。 请不要使用默认 URLSCHEME。
-->您可以通过调用 [mySpace isLoggedIn] 检查用户是否已登录
-->这将检查您的应用程序是否具有与场外应用程序的用户(现场应用程序不需要访问令牌,因此检查它们是否登录是静音的)。
-->You need to register a unique URL Type within your .plist file.
--> Make sure to set the UrlScheme property of the context to the same value you are using in the .plist when you instantiate the MySpace class. This will allow the SDK to create an appropriate callback URL that will fire off your application when the user has authenticated. PLEASE DO NOT USE THE DEFAULT URLSCHEME.
-->You can check if the user is logged in by calling [mySpace isLoggedIn]
-->This checks if your app has an Access Token associated with the user for Offsite applications (Onsite applications do not need an Access Token, hence checking if they are logged in is mute).