17

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="-USERID@chat.facebook.com/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.

4

1 回答 1

2

转到 Facebook,右上角菜单,设置。导航到安全。禁用登录批准。如果在那之后事情不起作用,请在隐私模式下进入 FB,您最终会看到一个您必须接受的批准对话框。

于 2014-08-21T19:49:00.670 回答