ups, ya you are right. We encoded the reply twice to base64.
This code was backported from MatriX to agsXMPP and untested. The Sasl API is quite different in MatriX.
Thanks for finding this problem. I'll upload new code and a new binary.
Strange that many people requested this feature and then never complained that its broken while it was there
I have been following along with this thread and it has been very helpful. I am just creating a simple web application that will send a chat message from one facebook user to another. I am not sure I understand on how to extract some information that I would need to send the message such as the person the message is from. Here is what I have so far:
xmpp.Send(new agsXMPP.protocol.client.Message(new Jid(recieverId), new Jid(senderId), agsXMPP.protocol.client.MessageType.chat, MessageContent));
}
};
}
What is the benefit of populating the args.ExtendedData and how does it get used? I have stored some information in session but once the conneciton is made and OnLogin is called, the session is empty.
Can anyone help clear up some of the questions I have?
This post was edited on 2014-02-12, 20:56 by Alex.
see the post above from pisey. He posted all code you need to connect with the X_FACEBOOK_PLATFORM SASL mechanism.
And make sure that you use the latest build or SVN code. I the latest code there was a bug fixed regarding the X_FACEBOOK_PLATFORM Sasl implementation in agsXMPP.
I think everything is working now except I need to understand how to pass data to the event handlers. Once the user has authenticated through facebook and is returned to the site, I am capturing their authentication token and storing it in session which I was planning on using in the OnSasl_Start and OnLogin events but the session is empty when it gets to those events.
your last questions is more related to web development than to XMPP.
As long as you don't have a token there is no need to setup the XMPP connection. You could setup it after you retrieved your token and then of course pass it to the event at the same time with a lambda expression.
But this all depends of the architecture of your web application. A common solution is to put the whole Xmpp connection in the session as well.
Thanks Alex, you're right I know it's more of a web development question I just figured that someone would have encountered a similar scenario and would have some suggestions.
I was able to accomplish what I needed by using lambda expression as you suggested, thank you very much for pointing me in the right direction.
This post was edited on 2014-02-19, 22:12 by tdean.