在 iPhone 上使用 Facebook XMPP 库进行聊天应用程序时出现错误
我正在使用 XMPP 框架将 Facebook 聊天功能添加到我的 iPhone 应用程序中。然而,我在测试时收到以下错误:
<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
完整的错误消息在这里:
2011-08-09 12:17:49.781 FacebookStaticTest[4217:207] RECV: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09ImNoYXQuZmFjZWJvb2suY29tIixub25jZT0iRDg4QkREMTNFMTcwRjEwOUVGMDI2OTkwRjExMzYyMTYiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
2011-08-09 12:17:49.781 FacebookStaticTest[4217:207] decoded challenge: realm="chat.facebook.com",nonce="D88BDD13E170F109EF026990F1136216",qop="auth",charset=utf-8,algorithm=md5-sess
2011-08-09 12:17:50.072 FacebookStaticTest[4217:207] RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
2011-08-09 12:17:50.073 FacebookStaticTest[4217:207] RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
我已经阅读了 Facebook 聊天文档并进行了以下更改:
- 将应用程序类型设置为本机应用程序并保存更改。
- 选择高级选项卡。
- 在“迁移”下,将“禁用已弃用的身份验证方法”从“已启用”更改为“已启用” 禁用并保存更改。
我也尝试创建一个新的应用程序...但遇到了同样的错误...
请帮助,提前致谢。
I am using the XMPP framework to add Facebook chat functionality to my iPhone application. I am however, getting the following error while testing:
<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
Full error message here:
2011-08-09 12:17:49.781 FacebookStaticTest[4217:207] RECV: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09ImNoYXQuZmFjZWJvb2suY29tIixub25jZT0iRDg4QkREMTNFMTcwRjEwOUVGMDI2OTkwRjExMzYyMTYiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
2011-08-09 12:17:49.781 FacebookStaticTest[4217:207] decoded challenge: realm="chat.facebook.com",nonce="D88BDD13E170F109EF026990F1136216",qop="auth",charset=utf-8,algorithm=md5-sess
2011-08-09 12:17:50.072 FacebookStaticTest[4217:207] RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
2011-08-09 12:17:50.073 FacebookStaticTest[4217:207] RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
I have already read Facebook chat document and made the following changes:
- Set the Application Type to Native app and Save Changes.
- Select the Advanced tab.
- Under Migrations, change Disable Deprecated Auth Methods from Enabled
to Disabled and Save Changes.
I also tried creating a new application ... but got the same error ...
Please help, thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论