01-16-2018 02:18 - edited 01-16-2018 17:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-16-2018 02:18 - edited 01-16-2018 17:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
01-16-2018 14:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


01-16-2018 14:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Try removing `settingskey` and `onAccessToken`, then see if you get your token here instead:
onReturn={async (data) => { console.log(JSON.stringify(data)); }}

01-16-2018 02:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-16-2018 02:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
solved issue! Thank you!

01-16-2018 14:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


01-16-2018 14:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Try removing `settingskey` and `onAccessToken`, then see if you get your token here instead:
onReturn={async (data) => { console.log(JSON.stringify(data)); }}

01-16-2018 14:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


01-16-2018 14:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Solved how?

01-16-2018 17:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-16-2018 17:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I was typo.
consle.log(data);
✗:consle
○:console
