Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OAuth for Facebook on settings

ANSWERED

I'd like to make an ionic application. I am in trouble now. Because we can not get an access token on Facebook login. The code I wrote is as follows. It don't called "onAccessToken". Please help me!

 

 

<Oauth
settingsKey="oauth"
title="Login"
label="Facebook Login"
status="Login"
authorizeUrl="https://www.facebook.com/dialog/oauth"
requestTokenUrl="https://graph.facebook.com/v2.3/oauth/access_token"
clientId="xxxxxxxxxxxxxxxxxxxxxxxxx"
clientSecret="xxxxxxxxxxxxxxxxxxxxxx"
scope="public_profile"
onAccessToken={async (data) => {
consle.log(data);
}}
/>

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Try removing `settingskey` and `onAccessToken`, then see if you get your token here instead:

onReturn={async (data) => {
   console.log(JSON.stringify(data));
}}

View best answer in original post

Best Answer
0 Votes
4 REPLIES 4

solved issue! Thank you!

Best Answer
0 Votes

Try removing `settingskey` and `onAccessToken`, then see if you get your token here instead:

onReturn={async (data) => {
   console.log(JSON.stringify(data));
}}
Best Answer
0 Votes

Solved how?

Best Answer
0 Votes

I was typo.

 

consle.log(data);

✗:consle

○:console

Best Answer