0

Is it possible to login into facebook using my own login form in Android & get the facebook user id? I just want to validate the users without need them access their facebook.

In the Android facebook tutorial, the app have to open facebook first so that user can login but there is no automatic close after user login successfully.

Thanks in advance

user1134475
  • 415
  • 1
  • 8
  • 18

1 Answers1

0

No, you don't have a way to log the user in through facebook without using their official endpoints.

You can open some sort of browser with the authentication dialog (or the open graph one) but that still mean using their forms/ui (what ever you want to call it).

You should just use the android sdk without using the SSO, that way the sdk won't call the facebook application that is installed on the device (if at all) and will just call the auth dialog for you. This is a better solution for you since it "abstracts" some things from you, takes care of the access token and more.

Here's a thread about disabling the SSO: How to disable Facebook single sign on for android - Facebook-android-sdk

Community
  • 1
  • 1
Nitzan Tomer
  • 155,636
  • 47
  • 315
  • 299