Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
gun-gun2 #1
Member since Jun 2014 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Facebook authentication issue
Hi!

I'm trying to authenticate to facebook using X-FACEBOOK-PLATFORM from my ASP.NET application. I copied the code from this article http://www.ag-software.net/matrix-xmpp-sdk/matrix-develope…
but I get the "not-authorized" issue

  1. <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  2.  <not-authorized />
  3. </failure>

I added the xmpp_login permission to the authentication options
  1. var x = new Microsoft.Owin.Security.Facebook.FacebookAuthenticationOptions();
  2. x.Scope.Add("email, user_friends, read_friendlists, manage_pages, publish_actions");
  3. x.Scope.Add("read_stream, xmpp_login");
  4. x.AppId = "150341...";
  5. x.AppSecret = "5670251a8656...";

But I didn't find any xmpp_login permission on my FB application configuration page.

Any ideas what should I do?

Thank you!
This post was edited on 2014-06-27, 12:03 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I don't know if the X-FACEBOOK-PLATFORM is still supported by Facebook.
This page said that the xmpp_login permission will be deprecated:
https://developers.facebook.com/docs/chat/

Normal login with username and password still works for me. I have not tried the token login myself, maybe somebody else can comment on this.

Alex
Avatar
Alex #3
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This page sais that the v1 API is still available:
https://developers.facebook.com/docs/apps/changelog

Can your code use API v1 to request a token with the xmpp_login permission?

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS