robbiehanson / XMPPFramework

An XMPP Framework in Objective-C for Mac and iOS
Other
5.91k stars 2.09k forks source link

Facebook, stream did disconnect no NSError #485

Open hutchy opened 9 years ago

hutchy commented 9 years ago

Greetings, sorry to create a new issue but I'm very stumped...

I implemented the XMPPFramework podfile several months ago in my iPhone App, setting up a controller to connect to Facebook basing my code off of the demo project. This all worked fine and I was able to test sending and receiving Facebook messages.

However in the last six weeks the connection goes through the motions, as expected, the authenticateWithFacebookAccessToken:error: method is called and returns YES but then the xmppStreamDidDisconnect: delegate method is immediately called with no NSError.

I would appreciate if you could offer any assistance in debugging this, or if this is an issue that anyone has seen recently with Facebook. Thanks in advance, Ben

Below is my latest console:

2015-01-19 13:46:48.653 PodOmatic[7865:607] -[FacebookChatController setupWithFacebookAccessToken:] [Line 42] Stream... facebook token: CAADFI4q1hbwBAMFVkm3E2O36cXTtitJZBt1oxNkMfrZA19l6pQHkqVHBMDKT2VCnQ4NY7z3HGJUBz3bF2vZApvYLFWTKcxDi3ZBpSGWzZBQh7HYZAEMINsCff7JiPLB5E2GBSb7MJpudyS4nNWWHF0ABo3vwx9r36FTF1KwtEAXHAmtrweUTChaYbZA1E1gdukGcudxlxCoVZBihvQA6gZB7oo4CAN09o2SnWDB9FACwcygZDZD 2015-01-19 13:46:48.780 PodOmatic[7865:607] __46-[PagableDataViewController setupReachability]_block_invoke [Line 64] Reachability changed: Reachable via WiFi 2015-01-19 13:46:49.075 PodOmatic[7865:607] -[FacebookChatController xmppStream:willSecureWithSettings:] [Line 210] <XMPPStream: 0x7af620a0> 2015-01-19 13:46:49.452 PodOmatic[7865:607] -[FacebookChatController xmppStreamDidSecure:] [Line 232] XMPP DID SECURE... 2015-01-19 13:46:49.557 PodOmatic[7865:607] -[FacebookChatController xmppStreamDidConnect:] [Line 196] XMPP X-FACEBOOK-PLATFORM SASL... 2015-01-19 13:47:01.902 PodOmatic[7865:607] -[FacebookChatController xmppStreamDidDisconnect:withError:] [Line 259] XMPP disconnected, error: (null)

rsv91 commented 9 years ago

Facebook chat API is deprecated and will no longer available.

https://developers.facebook.com/docs/chat

ObjColumnist commented 9 years ago

I haven't used the Facebook API but like @rsv91 said it won't be around for much longer.

I would suggest setting breakpoints and stepping through the code to see at what point the XMPPFramework calls disconnect.

hutchy commented 9 years ago

I did look at breakpoints however due to how the delegates called I decided to give my eyes a rest...

I'll let the client know; I did tell them it wasn't a good feature to implement but what do I know. Thanks.