Search code examples
androidfacebookauthorizationregistrationfacebook-sdk-4.x

Login with Facebook flow


I have a server with REST api & a native android app.

What I want is to give users ability to register and login using their facebook account: if user is not registered yet - then it taps the Login with Facebook button, grant me basic permissions and I create an account on my server; if the user is already registered - then he just logs in and can use the app.

Can you give me any links to resources where this flow is being described? Because I really can't understand how it should work. Should I use facebook SDK for android, get user data from it and then send to my server? Then how do I manage user after this... I only need facebook for user registration and login, all app functionality will be based by custom data from my server.


Solution

  • Greatings, Graykos.

    I will give you few resources what I think we will be useful for you:

    1. Login with Facebook. Official docs Facebook Developers I.
    2. Login Flow with Facebook. Official docs Facebook Developers II.
    3. Testing a Login Flow. Official docs Facebook Developers III.
    4. The right way to implement Facebook login for your app. LaunchKit.
    5. Old question about this teme, which is here. In this case, you probably will need to update some methods.

    If you have some questions about this when you develop your Facebook login, let us know, in SO!

    Have a good day!