Till now I've been using the old chat log on mechanism to login facebook chat (the one with the "sig" parameter).
Now after the support for it is gone, I changed my code corresponding to the new authentication system (i.e. without the sig parameter).
I am creating this kind of string which I send as a "response" tag after the challenge phase.
api_key=<apikey>&call_id=<callid>&method=<method from challenge>&nonce=<nonce from challenge>&access_token=<access token>&v=1.0
And I get the following: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
The following occurs just on iOS. Android works fine (which tell my code is correct). The difference between those versions is that on iOS I get encrypted access token, and on Android I get the old access token.
i.e. on Android 213458xx1425|1.BGgrgnfWrdpG_X18.3600.1213xxx135.2-1334679|dHcDbxGbeYxxxxx on iOS AAAByQT1Vjdkxxxxxxxxxxx
Also,
I tried to get into the app control panel and disabled the encrypted access token option but it didn't had any effect.
I am using Titanium's last SDK, 1.7.4 (v2011-10-21 18:18:15)
Anyone can put me some light on this issue? I saw other people with similar problem with no solution. Integrating Facebook chat
Thanks for advance, Netanel.