# Twitter sign in / log in plugin not capturing emails

**URL:** <https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930>\
**Category:** APIs\
**Created:** [March 14, 2020, 9:24pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930 "2020-03-14T21:24:38Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![aslen](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@aslen](https://forum.bubble.io/u/aslen)\
**Post date:** [March 14, 2020, 9:24pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/1 "2020-03-14T21:24:38Z")

</div>

Hi guys,

My app needs a variety of social logins that collect user’s email addresses, and so far I’ve gotten the Facebook, LinkedIn and Google log ins all working great… and now the last one I really want is Twitter… but I just can’t get the damn thing working. It logs the user in, but I isn’t capturing their email, rendering it useless.

The LinkedIn plugin had the same problem, and after some research in these forums saw that it was because LinkedIn made an update to their API that meant you needed to request email separately, and fortunately @Neerja ([http://forum.bubble.io/u/neerja](http://forum.bubble.io/u/neerja)) made an awesome reply to this post: [LinkedIn Oauth profile data](http://forum.bubble.io/t/linkedin-oauth-profile-data/54422) - and walked you through building a custom API connection that took the place of the LinkedIn plugin.

I’ve tried adding an action in the workflow immediately after the Twitter signup to retrieve the email, but when I get to “current user’s Twitter’s…” email isn’t in the list.

 ![Screen Shot 2020-03-14 at 21.09.51](https://us1.discourse-cdn.com/bubble/original/3X/7/c/7c8af3131c8302b444624bce129e7d0c4c23a352.png)

So it looks like its not pulling the email in.

In the Twitter developer settings I’ve already added the “Request email address from users” option:

 ![Screen Shot 2020-03-14 at 21.36.39](https://us1.discourse-cdn.com/bubble/original/3X/4/a/4ac0ba15699218a220e7dc75c1b4f74c3c79d7b0.png)

What makes it more weird is that even if I do try to add some other data to the user, like the profile photo, that photo still doesn’t get added to the user.

 ![Screen Shot 2020-03-14 at 21.38.08](https://us1.discourse-cdn.com/bubble/original/3X/e/8/e89277a72c185c0b0e01a241b2ce59e900a76c8d.png)

I’ve scoured these forums, google, and YouTube and can’t find anything similar for Twitter. I tried looking through the Twitter API documentation but I very quickly felt like a child looking through a rock science manual… so there’s no chance I’m going to be able to just work it out on my own.

So it just looks like Bubble’s Twitter plugin doesn’t pull the email in, so the only other option is to do what I did with LinkedIn and create a new API call… but that is just waaaaay beyond my skill level. Looking at API documentation is like looking at Egyptian hieroglyphics.

Could anyone help? Are there any API geniuses here that could walk me through creating a Twitter API?

Very much appreciate any responses!

Aslen

---

<div class="post-metadata">

**Author:** ![Nocodify](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodify/32/104659_2.png) [@Nocodify](https://forum.bubble.io/u/Nocodify)\
**Post date:** [April 12, 2020, 7:36am UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/2 "2020-04-12T07:36:34Z")

</div>

Bump. Also interested in this.

Is anyone collecting emails through Twitter? Or is the only option building an API call?

EDIT: I see that we can retrieve emails from Twitters end, so it seems this can just be an addition on Bubble’s side for the plugin. @emmanuel @eve is this something that can be added?

---

<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:** [April 12, 2020, 9:42am UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/3 "2020-04-12T09:42:59Z")

</div>

You can use Auth0 to do this.

But you still need to do the API part.

---

<div class="post-metadata">

**Author:** ![aslen](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@aslen](https://forum.bubble.io/u/aslen)\
**Post date:** [April 12, 2020, 1:03pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/4 "2020-04-12T13:03:52Z")

</div>

Yeah I got it working in the end using Noqode’s Twitter User oAuth plugin. At first they didn’t support email capture, but they pushed an update out that did, and after some fiddling I eventually got it to work.

> **[Twitter User Oauth](https://zeroqode.com/plugin/twitter-user-oauth-1580388207316x240833466550325570)**
>
> No-code app templates & plugins for Bubble, courses, backends, webview packages for native apps. Now you can build apps without code even faster

  
[https://docs.zeroqode.com/plugins/twitter-oauth-1.0a-plugin](https://docs.zeroqode.com/plugins/twitter-oauth-1.0a-plugin)

---

<div class="post-metadata">

**Author:** ![austin3](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@austin3](https://forum.bubble.io/u/austin3)\
**Post date:** [May 1, 2020, 9:06pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/5 "2020-05-01T21:06:14Z")

</div>

Can we get this added to the twitter auth plugin? From everything I’ve seen in the twitter dev docs, all you need to do to obtain the email address programmatically is to add “include\_email=true” with the authorization request. Obviously the user has to go into their twitter developer account and indicate that they want to request the email address, but once that’s been done it should work. There could just be a plugin setting for “request user email address” with some text explaining it won’t work if the user hasn’t enabled it in their twitter app.

If not, is there at least another way to do it without using a third-party paid plugin?

---

<div class="post-metadata">

**Author:** ![mikepost80](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikepost80/32/62296_2.png) [@mikepost80](https://forum.bubble.io/u/mikepost80)\
**Post date:** [May 28, 2020, 11:38pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/6 "2020-05-28T23:38:50Z")

</div>

> [@NigelG](#):
>
> You can use Auth0 to do this.
> 
> But you still need to do the API part.

Yep, I’d do what Nigel suggested and just make another request. Social media companies are pretty protective of user’s emails now, and although you’ve enabled the “Request email address from users” option, this is probably just Twitter’s way of making sure that you _really need_ the email.

It’s interesting under their [GET account/verify\_credentials](https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials) page (this is probably the request to make) that they make a point of saying the following:

> **Please note** - Your app will need to regenerate the user access tokens for previously authenticated users to access their email address.

---

<div class="post-metadata">

**Author:** ![samtsam34](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/samtsam34/32/76281_2.png) [@samtsam34](https://forum.bubble.io/u/samtsam34)\
**Post date:** [November 30, 2020, 1:47pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/7 "2020-11-30T13:47:46Z")

</div>

Hey @aslen,

I’ve tried Twitter User OAuth plugin and I keep getting this error even after I refresh the access tokens in the Twitter Developer portal, and recheck that I followed all the steps in ZeroCode’s docuumentation.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/e/ae2fe11602415c58c48a8ed58d6958bb5d45fb77.png)  
Did you ever get this 403 error? Do you know how I might solve it?

I’ve seen people post this error on this and other threads, but perhaps there’s something specific to the ZeroCode PlugIn that I’m missing?

---

<div class="post-metadata">

**Author:** ![leeedahs](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@leeedahs](https://forum.bubble.io/u/leeedahs)\
**Post date:** [March 11, 2021, 2:36pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/8 "2021-03-11T14:36:55Z")

</div>

Hey Austin,  
I am having the same problem with fetching the users email from twitter

Interested in your solution

Are you suggesting this can be done programmatically in bubble?

If so how would this be done?

Thanks  
Lee

---

<div class="post-metadata">

**Author:** ![austin3](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@austin3](https://forum.bubble.io/u/austin3)\
**Post date:** [March 11, 2021, 2:58pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/9 "2021-03-11T14:58:34Z")

</div>

It’s been a while since I took a look at this, but from what I can remember the Twitter docs allow requesting email addresses when going through the Oauth flow. As of when I made that comment, bubble’s Twitter plugin didn’t take advantage of that option, which lead to the error. If this hasn’t been fixed, the solution would be to either use another plugin that allows for this or write your own OAuth requests.

---

<div class="post-metadata">

**Author:** ![leeedahs](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@leeedahs](https://forum.bubble.io/u/leeedahs)\
**Post date:** [March 11, 2021, 8:57pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/10 "2021-03-11T20:57:58Z")

</div>

Thanks for your quick reply

Can you point me in the direction of where in bubble to write our own OAuth request?  
and what that might involve?

You previously mentioned include\_email=true

Lee

---

<div class="post-metadata">

**Author:** ![austin3](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@austin3](https://forum.bubble.io/u/austin3)\
**Post date:** [March 11, 2021, 9:12pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/11 "2021-03-11T21:12:51Z")

</div>

You would follow the steps here:

[https://developer.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens](https://developer.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens)

This might require writing a plugin or using the “Api connector plugin”, I’m not sure because I haven’t done it. At one of the steps along the way, you would include include\_email=true as a url parameter.

This is definitely something you would need experience with API programming to make work. It’s not under the typical usecase for non-technical people, hence why bubble has a plugin for it.

---

<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 11, 2021, 9:14pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/12 "2021-03-11T21:14:24Z")

</div>

Use Pathfix? That should allow you to specify the scope.

---

<div class="post-metadata">

**Author:** ![leeedahs](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@leeedahs](https://forum.bubble.io/u/leeedahs)\
**Post date:** [March 11, 2021, 9:29pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/13 "2021-03-11T21:29:34Z")

</div>

HI Nigel

I am also trying the pathfix plugin on second version of our app

The bubble twitter plugin is nice and simple set up! Shame it does not pull in the email from twitter!

L

---

<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 11, 2021, 9:31pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/14 "2021-03-11T21:31:41Z")

</div>

> [@leeedahs](#):
>
> The bubble twitter plugin is nice and simple set up! Shame it does not pull in the email from twitter!

Yes, it is. A few of the native social signup ones have not been updated with the scope changes.

---

<div class="post-metadata">

**Author:** ![leeedahs](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@leeedahs](https://forum.bubble.io/u/leeedahs)\
**Post date:** [March 11, 2021, 9:35pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/15 "2021-03-11T21:35:05Z")

</div>

So is there a plan to add email to the bubble twitter plugin?

---

<div class="post-metadata">

**Author:** ![Pathfix](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pathfix/32/81906_2.png) [@Pathfix](https://forum.bubble.io/u/Pathfix)\
**Post date:** [May 8, 2021, 6:08am UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/16 "2021-05-08T06:08:06Z")

</div>

Hey @leeedahs thanks for the kind words!

If you are looking to pull in Twitter profile for the user, you could use the SSO plugin for this?

---

<div class="post-metadata">

**Author:** ![toby2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/toby2/32/99439_2.png) [@toby2](https://forum.bubble.io/u/toby2)\
**Post date:** [July 1, 2021, 3:13pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/17 "2021-07-01T15:13:49Z")

</div>

I’m amazed this plugin hasn’t been updated.

Current Status is unusable due to the lack of email capture.

---

<div class="post-metadata">

**Author:** ![romain1304](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@romain1304](https://forum.bubble.io/u/romain1304)\
**Post date:** [April 29, 2022, 2:47am UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/18 "2022-04-29T02:47:34Z")

</div>

Still no answer on this, come on that’s an easy fix, just need to add a query parameter at the end of the URL of the bubble plug in,

---

<div class="post-metadata">

**Author:** ![bubble48](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bubble48/32/101639_2.png) [@bubble48](https://forum.bubble.io/u/bubble48)\
**Post date:** [May 10, 2022, 7:09pm UTC](https://forum.bubble.io/t/twitter-sign-in-log-in-plugin-not-capturing-emails/81930/19 "2022-05-10T19:09:24Z")

</div>

Yeah really bad that Bubbles Twitter Plugin is not capturing the email.
