如何使用 xmpp 框架在 iPhone 中集成 Facebook 聊天
我正在尝试在iPhone中集成Facebook聊天,当我搜索相关内容时我发现了xmpp框架。我下载并运行但它没有显示任何内容。有可用的教程吗?谁能帮助我如何在 iPhone 中集成 facebook 聊天?
伊南
I am trying to integrate Facebook chat in iPhone, when I searched related stuff I found xmpp framework. I download it and run but it is not showing anything. Is there any tutorial available for this? can anyone help me to how to integerate facebook chat in iPhone?
Inam
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看看这个:
http://code.google.com/p/xmppframework/ wiki/FacebookChatHowTo现在该项目已转移到 git hub,可以在 http://github.com/robbiehanson/XMPPFramework/wiki/FacebookChatHowTo
Check this out:
http://code.google.com/p/xmppframework/wiki/FacebookChatHowToNow the project has moved to git hub, the same page can ben found on http://github.com/robbiehanson/XMPPFramework/wiki/FacebookChatHowTo
https://github.com/robbiehanson/XMPPFramework
如何编译在此链接上。
https://github.com/robbiehanson/XMPPFramework/wiki/GettingStarted_iOS
这也在同一个 git 页面上。
下载 xmppframework 并解压缩。在解压缩文件夹中包含 xcode 文件夹,打开它,再次包含 iphoneXMPP 文件夹,然后打开它,单击 xcode proj 并运行它。
打开 appdelegate.m 文件之前将显示登录页面,其中有委托方法:
将服务器域从“talk.google.com”替换为“chat.facebook.com”,将虚拟域从“gmail.com”替换为“facebook.com”
您必须使用您的 Facebook 用户名和密码登录。记住用户名与常规用户名不同,
例如
我的常规用户名是:“ [email protected]" 但如果我提供此信息不会登录,我将提供用户名:“[电子邮件受保护] ”
密码是平常的。
要像这样获取您的用户名,请转到 Facebook 帐户并单击您的显示名称,然后观察浏览器的地址栏。
我试过这个方法,我得到了我的脸书好友。你试试这个。
https://github.com/robbiehanson/XMPPFramework
how to compile is on this link.
https://github.com/robbiehanson/XMPPFramework/wiki/GettingStarted_iOS
which is also on the same git page.
download xmppframework and unzip it.In the unzip folder contains xcode folder open it and again it contains iphoneXMPP folder ans open it click on xcode proj and run it.
login page will be displayed before that open appdelegate.m file there is delegate method:
Replace server domain from "talk.google.com" to "chat.facebook.com" and virtualDomain from "gmail.com" to "facebook.com"
You must login with your facebook username and password.Remember username is differ from regular username,
for example
my regular username is:" [email protected]" but if i provide this wouldnot login intead of this i will provide username as: "[email protected]"
password is asusual.
Toget your username like this go to facebook account and click your display name then observe address bar of the browser.
I tried this way and i get my facebook friends.You try this.
Facebook 似乎已弃用
XMPP Chat API
。 2015 年 4 月 30 日之后应该不再有效。更多信息请参见:https://developers.facebook.com/文档/聊天#platauth
Facebook seems to have deprecated
XMPP Chat API
. Should no longer work After April 30th, 2015.More here : https://developers.facebook.com/docs/chat#platauth