facebook-chat

Xmpp chat invisible presence

╄→гoц情女王★ 提交于 2019-12-06 13:36:05
问题 I'm building a bot that monitor friends presences but doesn't need to be visible. I have tried to set presence using priority, show, type with all knowns values but without success. Is possibile to be invisibile and just receive presence notifications? Thanks! 回答1: See XEP-0126: Invisibility, section 3.1: <iq from='bilbo@tolkien.lit/shire' type='set' id='inv1'> <query xmlns='jabber:iq:privacy'> <list name='invisible'> <item action='deny' order='1'> <presence-out/> </item> </list> </query> <

Connect to facebook chat using Jabber.net (C#/Mono) with SASL

笑着哭i 提交于 2019-12-06 12:52:32
问题 I am trying to connect to facebook chat using Jabber.net(c#/Mono). The code I am using is this: static ManualResetEvent done = new ManualResetEvent(false); const bool VERBOSE = true; const string TARGET = "friends_username@chat.facebook.com"; void Start () { JabberClient j = new JabberClient(); j.User = "my_facebook_alias"; //Later to be removed j.Server = "chat.facebook.com"; j.Port = 5222; j.NetworkHost = "chat.facebook.com"; j.AutoStartCompression = true; j.KeepAlive = 30F; j.AutoStartTLS

Chrome Extension: Modify messagetext in facebook-chat when submitted

两盒软妹~` 提交于 2019-12-06 00:41:25
I'm trying to create a Chrome Extension which modifies the submitted message when the user presses enter in the chatbox. HTML-Code for textarea: <textarea class="uiTextareaAutogrow input" onkeydown="Bootloader.loadComponents(["control-textarea"], function() { TextAreaControl.getInstance(this) }.bind(this)); "></textarea> I tried to use something like this for onkeydown-event. I want to replace users message with the text 'test' when he presses Enter and submits the text if (event.keyCode == 13) {this.value='test';} But of course this doesn't work because facebooks javascript uses

Shared XMPP connection between Celery workers

旧巷老猫 提交于 2019-12-05 04:22:47
My web app needs to be able to send XMPP messages (Facebook Chat), and I thought Celery might be a good solution for this. A task would consist of querying the database and sending the XMPP message to a number of users. However, with that approach I would have to connect to the XMPP server every time I run a task, which is not a great idea. From the Facebook Chat API docs : Best Practices Your Facebook Chat integration should only be used for sessions that are expected to be long-lived. Clients should not rapidly churn on and off. Is there a way to share an XMPP connection between workers so I

Xmpp chat invisible presence

不想你离开。 提交于 2019-12-04 19:44:43
I'm building a bot that monitor friends presences but doesn't need to be visible. I have tried to set presence using priority, show, type with all knowns values but without success. Is possibile to be invisibile and just receive presence notifications? Thanks! See XEP-0126: Invisibility , section 3.1: <iq from='bilbo@tolkien.lit/shire' type='set' id='inv1'> <query xmlns='jabber:iq:privacy'> <list name='invisible'> <item action='deny' order='1'> <presence-out/> </item> </list> </query> </iq> Have a look at the rfc . Presence has a subscription status. If your bot is subscribed to receive

Connect to facebook chat using Jabber.net (C#/Mono) with SASL

和自甴很熟 提交于 2019-12-04 19:33:43
I am trying to connect to facebook chat using Jabber.net(c#/Mono). The code I am using is this: static ManualResetEvent done = new ManualResetEvent(false); const bool VERBOSE = true; const string TARGET = "friends_username@chat.facebook.com"; void Start () { JabberClient j = new JabberClient(); j.User = "my_facebook_alias"; //Later to be removed j.Server = "chat.facebook.com"; j.Port = 5222; j.NetworkHost = "chat.facebook.com"; j.AutoStartCompression = true; j.KeepAlive = 30F; j.AutoStartTLS = false; j.AutoStartCompression = true; j.PlaintextAuth = true; j.Password = "my_facebook_password"; /

X-FACEBOOK-PLATFORM authentication with SMACK Java library using OAuth 2.0

二次信任 提交于 2019-12-04 18:54:09
问题 First post here so please be gentle. I'm building a facebook chat client, using Smack library. I'm using X-FACEBOOK-PLATFORM method in order not to save any passwords. I had it working properly using oauth 1.0, and want to change it to 2.0, cause of the october 1st deadline ;p. From what I understand the only thing I'd have to do in order to migrate to 2.0 is removing "sig" and "session_key" parameters and adding an "access_token" parameter, but I'm getting an "SASL authentication X-FACEBOOK

how to make facebook chat?

我的未来我决定 提交于 2019-12-04 14:35:40
问题 I want to create an android Facebook chat application , i found this open source project .. http://coderrr.wordpress.com/2008/05/06/facebook-chat-api/ but i want to ask whether this "Facebook chat api" is still working ? If no, what is the way to creat a facebook chat ? 回答1: Dig a bit deeper into http://developers.facebook.com/docs/chat/. There are a number of XMPP and related APIs for Java, C#, iOS, and Android alike to be found on the web - or you can base such work on the libpurple API

Integrate Facebook chat in android with Asmack API

坚强是说给别人听的谎言 提交于 2019-12-04 08:12:35
问题 I try to implement chat support as suggested in this blog. Currently, I'm using following code to implement chatting interface. Java Code TestChatActivity.java import java.util.ArrayList; import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.ConnectionConfiguration.SecurityMode; import org.jivesoftware.smack.PacketListener; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.XMPPException; import org.jivesoftware.smack.filter