01-16-2018 02:18 - edited 01-16-2018 17:01
01-16-2018 02:18 - edited 01-16-2018 17:01
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);
}}
/>
Answered! Go to the Best Answer.
Best Answer01-16-2018 14:25
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-16-2018 14:25
Try removing `settingskey` and `onAccessToken`, then see if you get your token here instead:
onReturn={async (data) => {
console.log(JSON.stringify(data));
}}
Best Answer01-16-2018 02:25
01-16-2018 02:25
solved issue! Thank you!
Best Answer01-16-2018 14:25
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-16-2018 14:25
Try removing `settingskey` and `onAccessToken`, then see if you get your token here instead:
onReturn={async (data) => {
console.log(JSON.stringify(data));
}}
Best Answer01-16-2018 14:25
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-16-2018 14:25
Solved how?
Best Answer01-16-2018 17:00
01-16-2018 17:00
I was typo.
consle.log(data);
✗:consle
○:console