Well, I started by following all the instructions here:
http://code.google.com/p/xmppframework/wiki/FacebookChatHowTo
I used the recommended facebook api plug and tried the latest version:
https://github.com/facebook/facebook-ios-sdk/
My problem starts with the following error:
< failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">< not-authorized/></failure>
The error is the response from facebook's answer on xmppframework to an authentication call. The answer that iphone is making is base64 encoded, when I decode it, I find that 2 values are null: api_key = (zero) and session_key = (zero)
This is obviously the reason facebook returns this error. But the problem is that I cannot find where to set these values in the framework. Also, I think that session_key should be pulled from facebook anyway.
I think I want to know, these are a couple of things.
Has anyone got xmppframework working with facebook on iDevice?
If you have work, should you deviate from the instructions path at http://code.google.com/p/xmppframework/wiki/FacebookChatHowTo ?
Do you know of any other method to make facebook chat work on iphone?
Any suggestions or help on my current dilemma would be appreciated. It's nice to share your code if you want.
amuses
source
share