Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6546287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:41:22+00:00 2026-05-25T11:41:22+00:00

I’ve been trying to get X-FACEBOOK-PLATFORM to work for a while. I keep getting

  • 0

I’ve been trying to get X-FACEBOOK-PLATFORM to work for a while.

I keep getting an Unauthorized error every time I try anything.

One of the devs working with me wrote a blog post about it here:
http://www.ianquigley.com/A91_Facebook_Chat_Authentication_in_C.html

That is the basic process that we are using.

The code that we are using is here:

http://code.google.com/p/xda-winmo-facebook/source/browse/#svn%2Ftrunk%2FXDAFacebook%2FFbChat

Basically, I would like some further clarification about the authentication processes and maybe some reasons why I would be getting an unauthenticated message even though I follow the steps on the facebook dev site to a T (at least that is the assumption)

Any help would be great!

Here is the send/receive pattern: (The keys have all been changed FYI)

Key: 123567890560796 Secret: 8f1234abcde123a4567bcd1234beb5e Session: a0b12fb345c67890d98e7ea8.3-12345678

Out: <?xml version='1.0'?>
Out: <stream:stream id='1' to='chat.facebook.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' >
In: <?xml version="1.0"?><stream:stream id="1C70507D" from="chat.facebook.com" version="1.0" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en"><stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-FACEBOOK-PLATFORM</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms></stream:features>
Out: <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='X-FACEBOOK-PLATFORM'/>
In: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dmVyc2lvbj0xJm1ldGhvZD1hdXRoLnhtcHBfbG9naW4mbm9uY2U9QjBEMDIyREVBNkRERjdBRkVCNzgxQUY1QUM0NDNCQTY=</challenge>
Out: <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>YXBpX2tleT0xMjM1Njc4OTA1NjA3OTYmY2FsbF9pZD0xMzE0OTkwNjcwJm1ldGhvZD1hdXRoLnhtcHBfbG9naW4mbm9uY2U9QjBEMDIyREVBNkRERjdBRkVCNzgxQUY1QUM0NDNCQTYmc2Vzc2lvbl9rZXk9YTBiMTJmYjM0NWM2Nzg5MGQ5OGU3ZWE4LjMtMTIzNDU2Nzgmdj0xJnNpZz1lMTM2YTRjNmEzMDEwN2Y3MzhjZjA2NzMwYzhhZjZiOA==</response>
In: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>





The facebook challenge text
version=1&method=auth.xmpp_login&nonce=B0D022DEA6DDF7AFEB781AF5AC443BA6

and my return challenge text
api_key=123567890560796&call_id=1314990670&method=auth.xmpp_login&nonce=B0D022DEA6DDF7AFEB781AF5AC443BA6&session_key=a0b12fb345c67890d98e7ea8.3-12345678&v=1&sig=e136a4c6a30107f738cf06730c8af6b8

The sig looks like this
api_key=123567890560796call_id=1314990670method=auth.xmpp_loginnonce=B0D022DEA6DDF7AFEB781AF5AC443BA6session_key=a0b12fb345c67890d98e7ea8.3-12345678v=18f1234abcde123a4567bcd1234beb5e

If there are any facebook people that want the real streams with the correct keys, give me a contact address and I’ll send it to you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:41:22+00:00Added an answer on May 25, 2026 at 11:41 am

    I’ve just answered the same question and I gave this solution:

    Integrating Facebook chat

    I think it can helps you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to loop through a bunch of documents I have to put

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.