I want to create a login function using a Facebook account!

I'd like to implement the function as the title says, but I'm struggling halfway.

It is implemented using ionic.

Currently, when you press a button from the login screen

"Do I want to open it on Facebook?"

Pop-up is displayed, and when you move,

"Do I want to move to the app (self-made app)?"

Pops up and it looks like i am logged in, but the original

"Do I want to open it on Facebook?"

I will return to. No new users have been registered with Cognito.

Those who know what stage of processing is wrong, or those who know something suspicious

I would like to comment! Thank you.

  • Answer # 1

    I think it works with Cordova or Capacitor, but by default you can't get back to the app with a redirect link and take a value.

    I think that http://masayangdiary.blogspot.com/2017/08/ionicaws-cognitofacebook.html will be helpful.