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'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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With