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 Answer
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.
Try removing `settingskey` and `onAccessToken`, then see if you get your token here instead:
onReturn={async (data) => {
console.log(JSON.stringify(data));
}}
Best Answer
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.
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.
Solved how?
Best Answer