Facebook 的 IM 服务器地址和端口是什么?

发布于 2024-08-16 06:41:18 字数 135 浏览 2 评论 0原文

我想在 Android 中为 Facebook IM 创建自己的聊天客户端。我用 Java 创建了 XMPP Jabber 协议,但我不知道 Facebook IM 服务器的主机名和端口号。谁能告诉我 Facebook 的 IM 服务器主机名和通信端口号?

I would like to create my own chat client for Facebook IM in Android. I created XMPP Jabber protocol in Java but I dont know the host name and port number of Facebook IM server. Can any one let me know the Facebook's IM server host name and port number to communicate?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

握住你手 2024-08-23 06:41:18

Facebook Chat 现在支持(有限)XMPP。服务器名称为 chat.facebook.com,端口号照常为 5222。

Facebook Chat now supports (limited) XMPP. The server name is chat.facebook.com and the port number is 5222 as per usual.

乖不如嘢 2024-08-23 06:41:18

首先,下载 Smack(适用于 Java 的 XMPP 客户端库)。
Facebook XMPP 服务器是:chat.facebook.com,端口 = 5222

Facebook Chat 完全支持 XMPP,因此您可以看到如何使用 XMPP 完成对话,并添加 Facebook。

First, download Smack (XMPP client library for Java).
Facebook XMPP Server is: chat.facebook.com, port = 5222

Facebook Chat fully support XMPP so you can see how conversation is done using XMPP and smack and add Facebook to it.

拍不死你 2024-08-23 06:41:18

据我所知,Facebook 不使用 jabber 协议进行聊天。我的猜测是,这对他们来说没有任何意义,因为他们将其作为 Facebook 网站内的 AJAX 应用程序提供,因此流量将流向 HTTP/HTTPS 而不是 XMPP。

与 Facebook 的交互是通过 Facebook API 进行的。不幸的是,没有官方的聊天 API。

有些人已经对 Facebook 进行了一些逆向工程聊天,这样你可能会运气好。

As far as I am aware Facebook doesn't use the jabber protocol for its chat. My guess is that it wouldn't make any sense for them to since they offer it as an AJAX application within the Facebook website so the traffic is going to HTTP/HTTPS and not XMPP.

Interaction with Facebook is through the Facebook APIs. Unfortunately, there is no official API for Chat.

Some people have done some work reverse engineering Facebook Chat so you might have some luck there.

又怨 2024-08-23 06:41:18

我已经做了一些解析 Facebook 聊天的工作,它是以 Erlang 元组。获取一份wireshark的副本,您可以轻松地看到来回传递的流量。

I have done some work with parsing Facebook chat, and it is done in cleartext in the the form of Erlang Tuples. Get a copy of wireshark and you can easily see the traffic passed back a forth.

半衾梦 2024-08-23 06:41:18

Facebook 聊天服务器是:chat.facebook.com,端口 = 5222。
之前一段时间,像 ebuddy 这样的应用程序可以访问它,但我认为现在它仅限于 Facebook Messenger。

Facebook Chat Server is: chat.facebook.com, port = 5222.
Some time before some apps like ebuddy were able to access it but i think now it is only limited to facebook messenger.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文