Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xmpp login fails after authentication

I've been seeing this behavior for some time now, but it wasn't really a problem. After I successfully authenticate in xmpp with my own app, an error close my connection:

<message from="chat.facebook.com" 
         to="[email protected]/RESOURCE" type="normal">   
   <subject>Lo sentimos, tu cuenta no está disponible</subject>
   <body>Your account is temporarily unavailable. Regain 
      access by logging into your account from your 
      computer&apos;s web browser: http://www.facebook.com/
   </body>
</message>

<stream:error>
   <conflict xmlns="urn:ietf:params:xml:ns:xmpp-streams"/>
   <text xml:lang="" xmlns="urn:ietf:params:xml:ns:xmpp-streams">
      Session terminated
   </text>
</stream:error>

Note the message stanza that I received before the disconnection.

Why is this happening?, have I hit some kind of undocumented limit?, and more than that, is there a way to differentiate between this error and a disconnection from the Facebook's web page?.

I used to check the texts that are received in that message stanza, but now they change almost weekly, and the stream:error's text is the same for both cases, so it's painful to change the app every time a text changes.

like image 594
Primer Súpër Usuario Avatar asked Aug 28 '12 17:08

Primer Súpër Usuario


1 Answers

Go to Facebook, Top right corner menu, settings. Navigate to Security. Disable Login Approval. If things won't work after that, go to FB in Privacy mode, you will end up with an approval dialog you have to accept.

like image 156
Tom Avatar answered Nov 17 '22 03:11

Tom