# Facebook graph access token

**URL:** <https://forum.bubble.io/t/facebook-graph-access-token/18700>\
**Category:** APIs\
**Created:** [October 4, 2017, 1:51pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700 "2017-10-04T13:51:57Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![AlexDaresTo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexdaresto/32/20938_2.png) [@AlexDaresTo](https://forum.bubble.io/u/AlexDaresTo)\
**Post date:** [February 28, 2018, 2:41pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/21 "2018-02-28T14:41:48Z")

</div>

Aaaah, I see! Thank you! Will do that now and then report back if it worked :))

---

<div class="post-metadata">

**Author:** ![AlexDaresTo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexdaresto/32/20938_2.png) [@AlexDaresTo](https://forum.bubble.io/u/AlexDaresTo)\
**Post date:** [February 28, 2018, 4:58pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/22 "2018-02-28T16:58:08Z")

</div>

When signing up, I get an error message:

{  
“error”: {  
“message”: “Unknown path components: /oauth”,  
“type”: “OAuthException”,  
“code”: 2500,  
“fbtrace\_id”: “EvATeCyHSo8”  
}  
}

☹

Seems to be the “[https://graph.facebook.com/v2.12/dialog/oauth](https://graph.facebook.com/v2.12/dialog/oauth)” part in Login Dialog Redirect. At least when I put this into the browser, I get the same error message, but what else should I put there, it’s what you have there in your example, too @NigelG 🤔

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [February 28, 2018, 5:49pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/23 "2018-02-28T17:49:51Z")

</div>

[https://www.facebook.com/v2.12/dialog/oauth](https://www.facebook.com/v2.12/dialog/oauth) is what you need I think.

---

<div class="post-metadata">

**Author:** ![AlexDaresTo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexdaresto/32/20938_2.png) [@AlexDaresTo](https://forum.bubble.io/u/AlexDaresTo)\
**Post date:** [February 28, 2018, 6:06pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/24 "2018-02-28T18:06:11Z")

</div>

It looks like we’re getting closer!! 🙂  
Now it just tells me

> “Please log in to access this data”

But then goes blank without redirecting much. But when I try initialising the call it still says:

> "There was an issue setting up your call.
> 
> Raw response for the API  
> “{"error":{"message":"Invalid OAuth access token.","type":"OAuthException","code":190,"fbtrace\_id":"D6d7twqxYXy"}}”"

And when I try logging in without the debugger it tells me:

> API connector error: the Oauth2 API Facebook is not tested yet. Please run in with the debugger to validate your settings.

🤔

---

<div class="post-metadata">

**Author:** ![AlexDaresTo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexdaresto/32/20938_2.png) [@AlexDaresTo](https://forum.bubble.io/u/AlexDaresTo)\
**Post date:** [February 28, 2018, 6:33pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/25 "2018-02-28T18:33:46Z")

</div>

And I’m getting this now:

 ![fb%20error%20message](https://us1.discourse-cdn.com/bubble/original/3X/0/2/02e4509df57d815b1d53afa0d4d992427a5f7d32.png)

I have added all the whowho.bubbleapps .io/index and co. to the facebook redirect URIs, so I’m not sure what this is referring to.

 ![redirect%20URIs](https://us1.discourse-cdn.com/bubble/original/3X/4/5/4583dd78275fdee1692b7ef94e3e19c13c7bce79.png)

\*\*\*\*\*\* We’re back to no error messages, but this and nothing else:

> “Please login”

After I added another URL

---

<div class="post-metadata">

**Author:** ![AlexDaresTo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexdaresto/32/20938_2.png) [@AlexDaresTo](https://forum.bubble.io/u/AlexDaresTo)\
**Post date:** [February 28, 2018, 6:59pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/26 "2018-02-28T18:59:46Z")

</div>

Solved this part:  
Select “Use generic redirect URL” and add it in your Facebook app’s login settings!  
Then it worked.

But now when I click on “_Initialize Call_” I still get this:

 ![last%20issue](https://us1.discourse-cdn.com/bubble/original/3X/f/8/f858d0591b2f7a49a08301b76f44f9054ab0fed4.png)

my settings for the call:

 ![data%20call%202](https://us1.discourse-cdn.com/bubble/original/3X/f/5/f51223e094dcec98d13bc0720abcfcf45f78f6d0.png)

Ant idea where this issue might be, @NigelG?  
😕

Also, when does more show up in the workflows, so I can actually use the data? Because when I saved one call that actually worked, it still only showed this:

 ![DATA](https://us1.discourse-cdn.com/bubble/original/3X/7/3/7313e7b7273bec47a038b10d87413663aeef2dfa.png)

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [February 28, 2018, 8:12pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/27 "2018-02-28T20:12:40Z")

</div>

Is your scope public\_profile ?

---

<div class="post-metadata">

**Author:** ![AlexDaresTo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexdaresto/32/20938_2.png) [@AlexDaresTo](https://forum.bubble.io/u/AlexDaresTo)\
**Post date:** [February 28, 2018, 8:18pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/28 "2018-02-28T20:18:47Z")

</div>

Yes, it is.  
scope=public=profile  
and:

 ![data%20call%202](https://us1.discourse-cdn.com/bubble/original/3X/f/5/f51223e094dcec98d13bc0720abcfcf45f78f6d0.png)

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [February 28, 2018, 8:28pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/29 "2018-02-28T20:28:31Z")

</div>

You may need to go back and login again then initialise straight after.

Do you get this message ?

![image](https://us1.discourse-cdn.com/bubble/original/3X/4/1/418aec293dcfc98ce437f3112a943ecf40506b3c.png)

---

<div class="post-metadata">

**Author:** ![AlexDaresTo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexdaresto/32/20938_2.png) [@AlexDaresTo](https://forum.bubble.io/u/AlexDaresTo)\
**Post date:** [February 28, 2018, 8:34pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/30 "2018-02-28T20:34:10Z")

</div>

I did.

So current status:  
scope=public\_profile

 ![data%20call%202](https://us1.discourse-cdn.com/bubble/original/3X/f/5/f51223e094dcec98d13bc0720abcfcf45f78f6d0.png)

login with Facebook API  
I correctly get: name and picture and gender, but I can’t access them in my workflows with “Current User’s Name” only through “Get data from API”

 ![DATA](https://us1.discourse-cdn.com/bubble/original/3X/7/3/7313e7b7273bec47a038b10d87413663aeef2dfa.png)

I wanted it like the Bubble plugin, so I can distinguish between “current user” and “current page user”

 ![bubble%20FB](https://us1.discourse-cdn.com/bubble/original/3X/2/4/24e7da10380979e8b2e896a20042cc044946a16c.png)

Plus: When logging in with the API connector, unlike with the Bubble Facebook plugin, the email doesn’t get automatically saved into the new user! I could create a new “email” field, but can’t access the “built in” email field.

AND: Since I “log in with facebook” through this API, while it does create a new user, it doesn’t lead me through the workflow to the new main page.

☹

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [March 1, 2018, 7:42am UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/31 "2018-03-01T07:42:44Z")

</div>

No, that is right. It is annoying.

If you ask for the email in the scope, then you can request it via [https://graph.facebook.com/v2.12/me?fields=gender](https://graph.facebook.com/v2.12/me?fields=gender), email

But it does not always get pulled back in the Login.

---

<div class="post-metadata">

**Author:** ![AlexDaresTo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexdaresto/32/20938_2.png) [@AlexDaresTo](https://forum.bubble.io/u/AlexDaresTo)\
**Post date:** [March 1, 2018, 1:36pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/32 "2018-03-01T13:36:59Z")

</div>

Yes.  
So generally it is working, but I still want to create the user with the Bubble FAcebook plugin, since that one actually gives me the user **with** an email address. But I **really** need the gender. So I created this:

 ![weird%20signup](https://us1.discourse-cdn.com/bubble/original/3X/6/5/65848e98bfced4577bf37745a2d283e59217586b.png)

But now, every time I “login with facebook”: it takes my name + email + gender (female)

When then a friend “logs in with facebook” (Main Facebook Button) afterwards (different location, different device, different everything): it sets MY gender to male (in this case) and creates correctly a new user with his name and his email but NO gender

Tried the other way round:  
He “signs up with facebook” (Main Facebook Button): name + email + gender (male) all correct  
I “signup with facebook” (Main Facebook Button): sets HIS gender to female, logs me into HIS profile and creates a new user (me) with correct name and email but NO gender

It feels like a bug, but it’s probably a mistake in my API settings?

 ![API%20connector%20settings_LI](https://us1.discourse-cdn.com/bubble/original/3X/f/1/f1d5769e12a2eeaba61e43d7b5cdf4d3f39bb7b2.jpg)

Any ideas why that might be happening? 🤔

I really just need the public profile **with** gender, which is part of it. But 1. every tiem I set up the login with it, it doesn’t go further in my workflow and 2. it doesn’t create the “builtin email” anyway.

---

<div class="post-metadata">

**Author:** ![scott3](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scott3/32/18530_2.png) [@scott3](https://forum.bubble.io/u/scott3)\
**Post date:** [March 1, 2018, 6:28pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/33 "2018-03-01T18:28:19Z")

</div>

Encountering very similar issues in my app as well. I think the issue here is that the Bubble API connector isn’t recognizing the fields we should have access to based on scope. For instance, public\_profile is enabled by default, but when using the API connector to authenticate, we don’t have access to those fields. (email, profile pic etc) as you pointed out.

I’m personally working around this limitation, but will be attempting to build out a plugin for FB specifically to address this issue unless the bubble team gets to it first (unlikely) or I abandon all hope and sponsor a plugin with Salar/Cobubble (more likely).

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [March 2, 2018, 7:52am UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/34 "2018-03-02T07:52:53Z")

</div>

I think this was raised as a bug a while ago, the issue with multiple signups overwriting each other. I know I had similar problems but that was when the user was already signed up.

The email not being returned is not right, and I am sure it used to be. Email is not part of public\_profile.

It should be part of this …

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/d/cdeed403d656d18326bc394daee203644e5c0d01.png)

I changed User ID key path to be ID, and now it is being stored.

![image](https://us1.discourse-cdn.com/bubble/original/3X/4/5/45dda9787cab95b93f3d16277c31dae1050fb1f0.png)

But email is not. Despite it being asked for…

![image](https://us1.discourse-cdn.com/bubble/original/3X/1/1/11eb0966849660c9a163797452c8b5416b9494bf.png)

---

<div class="post-metadata">

**Author:** ![AlexDaresTo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexdaresto/32/20938_2.png) [@AlexDaresTo](https://forum.bubble.io/u/AlexDaresTo)\
**Post date:** [March 2, 2018, 7:49pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/35 "2018-03-02T19:49:05Z")

</div>

Just tried changing it to “id” in order to get the email addres. Unfortunately it still doesn’t work.  
Also the picture I get from the profile is tiny and super pixely  
 ![profile%20pic](https://us1.discourse-cdn.com/bubble/original/3X/a/7/a744634f25780b6fb6f94880cb6a2e0d3fc8a131.png)

It’s not the nice porfile picture I get with the Bubble Plugin. The API connector only gives me for “picture” this:

 ![picture%20options](https://us1.discourse-cdn.com/bubble/original/3X/0/f/0fbf7e4af5796eb26e630cb7297ddf956d604fab.png)

But anytime I add “profile\_pic” to the GET request, I get an error message:

> Raw response for the API  
> “{"error":{"message":"(#210) This call requires a Page access token.","type":"OAuthException","code":210,"fbtrace\_id":"Hw9nl6sO9s0"}}”

As soon as I remove the “profile\_pic” (as shown in the Facebook graph API explorer), the other things work (despite the “picture” being super bad quality.

---

<div class="post-metadata">

**Author:** ![AlexDaresTo](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alexdaresto/32/20938_2.png) [@AlexDaresTo](https://forum.bubble.io/u/AlexDaresTo)\
**Post date:** [March 2, 2018, 7:50pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/36 "2018-03-02T19:50:44Z")

</div>

I’m also trying to work around it but failing miserably! ☹  
Please, let me know if you find a way to login the user getting all the public profile fields. That’s really all I’m trying to go. Unfortunately, Bubble’s plugin does only half the job. 😕

---

<div class="post-metadata">

**Author:** ![linhduynguyen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/linhduynguyen/32/110151_2.png) [@linhduynguyen](https://forum.bubble.io/u/linhduynguyen)\
**Post date:** [November 14, 2019, 7:10pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/37 "2019-11-14T19:10:41Z")

</div>

Any update to this?

---

<div class="post-metadata">

**Author:** ![linhduynguyen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/linhduynguyen/32/110151_2.png) [@linhduynguyen](https://forum.bubble.io/u/linhduynguyen)\
**Post date:** [November 14, 2019, 7:11pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/38 "2019-11-14T19:11:28Z")

</div>

Were you able to solve this issue @NigelG?

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [November 15, 2019, 12:14pm UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/39 "2019-11-15T12:14:32Z")

</div>

I will have another look over the weekend for you.

---

<div class="post-metadata">

**Author:** ![linhduynguyen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/linhduynguyen/32/110151_2.png) [@linhduynguyen](https://forum.bubble.io/u/linhduynguyen)\
**Post date:** [November 16, 2019, 7:12am UTC](https://forum.bubble.io/t/facebook-graph-access-token/18700/40 "2019-11-16T07:12:16Z")

</div>

Thank you so much!

[Previous page](https://forum.bubble.io/t/facebook-graph-access-token/18700.md?page=1)
