# Configuring X login and rich embeds for Discourse

**URL:** https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395
**Category:** Integrations
**Tags:** sso, how-to, social-auth
**Created:** [4 maart 2014 om 18:03 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395 "2014-03-04T18:03:12Z")
**Posts on this page:** 20
**Page:** 4

<div class="post-metadata">

### Author: ![carson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carson/32/280685_2.png) [@carson](https://meta.discourse.org/u/carson)
#### Post date: [5 februari 2023 om 05:52 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/143 "2023-02-05T05:52:09Z")

</div>

I think there’s already been an update, “Enable 3rd party authentication” is missing and the UI seems different?

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/9/2/c9207fe6f8f70503467241d11f1724e6e49ea00c.png)

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [9 februari 2023 om 14:34 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/145 "2023-02-09T14:34:16Z")

</div>

They listened.

> <https://twitter.com/twitterdev/status/1623467618400374784?s=46&t=igNVLpBo7aDWmTv2-8Kh7Q>

I’m not sure why the button is gone though @carson, hopefully it’ll come back?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [13 februari 2023 om 17:25 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/146 "2023-02-13T17:25:37Z")

</div>

For now, the best is to wait to see how things evolve.

I have a complete rework of this #how-to but the process is confusing.  
It seems that when we register as a developer account and we want to create an app, it forces us to apply for elevated access for a “project app”, which we don’t need. We just need a “standalone app” to be able to create a Twitter login for Discourse. Elevated access will make the login feature half-broken for some reason.

They might change the process and/or the interface in the short future, so I prefer to wait before working again on it.

Also, whatever app you create (project or standalone), rich embeds won’t work currently. It will only work for existing apps with no “type of app” selected (the input choice is not required, but it wasn’t before).

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [14 februari 2023 om 01:44 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/147 "2023-02-14T01:44:54Z")

</div>

[https://twitter.com/TwitterDev/status/1625234161010343941](https://twitter.com/TwitterDev/status/1625234161010343941)

Another _update_, guy who posted this must be blind. The general sentiment regarding these changes is not enthusiastic, looks much more like people being unhappy & lots of criticism.

---

<div class="post-metadata">

### Author: ![Crius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/crius/32/317214_2.png) [@Crius](https://meta.discourse.org/u/Crius)
#### Post date: [22 februari 2023 om 10:15 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/148 "2023-02-22T10:15:49Z")

</div>

Thank you so much for looking into it, I’ll watch this thread, please post again if/when you find out how to make it work again. Such a mess they are doing over there at twitter.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [22 februari 2023 om 11:38 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/149 "2023-02-22T11:38:52Z")

</div>

Currently, we need to create a dev account and follow the steps to create a **project app** (if I’m not mistaken).  
When they have approved your app (or if you already have an approved developer account and are able to create apps), then you need to go to your dashboard and create a **standalone** app:

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/9/0/59017ddd4c2637b0656cfcab2688e403fcaffc03.png)

Then follow the steps, it’s straightforward.

The API key at the end is called “twitter consumer key” in Discourse, and the Api Key Secret is called “twitter consumer secret”.

In your app in the Twitter Dashboard, go to the app settings and configure it like this:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/3/8/7384ca79b39d49e37e28603f14ad335644067c3b.png)

You should be able to properly log-in with Twitter, but Rich Embeds won’t work.

---

<div class="post-metadata">

### Author: ![Crius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/crius/32/317214_2.png) [@Crius](https://meta.discourse.org/u/Crius)
#### Post date: [22 februari 2023 om 13:10 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/150 "2023-02-22T13:10:09Z")

</div>

Thank you @Canapin, I managed to do that and set everything up. I see that some tweets are not rendered properly but I believe that’s due to the twitter side of things being not quite in tip top shape.

Cheers and thanks again 😉

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [22 februari 2023 om 13:19 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/151 "2023-02-22T13:19:03Z")

</div>

> [@Crius](#):
>
> that’s due to the twitter side of things being not quite in tip top shape

It’s because of the “type of app” required setting. Whatever option you choose, Rich Embeds won’t work.

If your app was created at a time when this setting didn’t exist/wasn’t required, then Rich Embeds work.

---

<div class="post-metadata">

### Author: ![Crius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/crius/32/317214_2.png) [@Crius](https://meta.discourse.org/u/Crius)
#### Post date: [22 februari 2023 om 13:19 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/152 "2023-02-22T13:19:57Z")

</div>

well then, i guess the “test account” and “test app” I created prior to this mess are now PRODUCTION

![Software Consulting GIF](https://global.discourse-cdn.com/meta/original/4X/4/6/9/469abca73d49b522c00851de870314b02a0605b0.webp)

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [22 februari 2023 om 13:22 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/153 "2023-02-22T13:22:43Z")

</div>

To illustrate this, I have logins and rich embeds (working) enabled on three forums, and the now required option isn’t set 🙃

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/7/1/0718a0adbfd11ad6fcb6bfa11a595449578b79c6.png)

---

<div class="post-metadata">

### Author: ![DMTryptamines](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmtryptamines/32/295548_2.png) [@DMTryptamines](https://meta.discourse.org/u/DMTryptamines)
#### Post date: [24 maart 2023 om 17:15 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/154 "2023-03-24T17:15:17Z")

</div>

I applied for a dev license about 2 weeks ago and my application has yet to be reviewed but that was before I heard the news of a dev license costing $100. Never mentioned it during sign up and as of now they would need to review the application before I could pay them money since I can’t do anything on the dev portal until then.

As anyone had an application be successfully reviewed since Elon took over?

I don’t plan on ever paying for it but I think it would be good to have a note at the top of the guide stating that the Twitter API is now a paid model just to save people the time. Let alone if the application process even works right now lol

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [24 maart 2023 om 17:46 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/155 "2023-03-24T17:46:49Z")

</div>

> [@DMTryptamines](#):
>
> before I heard the news of a dev license costing $100

I can’t find this information on Twitter’s dev website.

Multiple links in their documentation seem not to work.  
For example, the "See pricing → " link [here](https://developer.twitter.com/en/support/twitter-api/premium) leads to [https://developer.twitter.com/en/more/pricing.html](https://developer.twitter.com/en/more/pricing.html) which redirects to [https://developer.twitter.com/en/products/twitter-api](https://developer.twitter.com/en/products/twitter-api)

At the end of this page is:

> We have been hard at work developing our new free and basic API tiers, which are set to launch very soon! Stay tuned to @TwitterDev for launch day and to learn more.

There are no related news on their account: [https://twitter.com/TwitterDev](https://twitter.com/TwitterDev)

I also created a new dev account one or two months ago and sent my first app for review. It’s still not validated, but not rejected either. Still waiting for a confirmation.

> [@DMTryptamines](#):
>
> I think it would be good to have a note at the top of the guide stating that the Twitter API is now a paid model

We don’t know that. I’d be happy to update the guide regarding any info, but Twitter’s review process’s blocking me from doing it.

---

<div class="post-metadata">

### Author: ![DMTryptamines](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmtryptamines/32/295548_2.png) [@DMTryptamines](https://meta.discourse.org/u/DMTryptamines)
#### Post date: [24 maart 2023 om 18:01 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/156 "2023-03-24T18:01:56Z")

</div>

They announced it here but I wouldn’t be surprised if they are 2nd guessing it now since there’s been no real updates about it since

> <https://twitter.com/TwitterDev/status/1623467615539859456>

Edit: actually the stated this a while later but once again I wouldn’t be surprised if this is now changing

> <https://twitter.com/TwitterDev/status/1626732269174943745>

I’m assuming the application process might be stalled because of all these changes they plan to make.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [3 april 2023 om 08:39 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/157 "2023-04-03T08:39:22Z")

</div>

After a (very long) time, I got an email reply from Twitter:

> Hello,
> 
> Thank you for applying for access to the Twitter API. We’re working on exciting updates including new access types and will have more to share soon. **Please stay tuned to [@TwitterDev](https://twitter.com/twitterdev) and resubmit your application as soon as we launch our new API.**
> 
> In the meantime, you can learn more about the Twitter API v2 and find resources on [developer.twitter.com](http://developer.twitter.com/). We appreciate your continued interest in developing on the Twitter API.
> 
> Thanks,
> 
> Twitter

(bold emphasis by me)

We definitely have to wait. 🤞

---

<div class="post-metadata">

### Author: ![Panickos\_Neophytou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/panickos_neophytou/32/301513_2.png) [@Panickos\_Neophytou](https://meta.discourse.org/u/Panickos_Neophytou)
#### Post date: [5 april 2023 om 20:26 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/158 "2023-04-05T20:26:54Z")

</div>

I just set this up in exactly the same way and I’m getting this error when trying to Sign Up with Twitter:

![image](https://global.discourse-cdn.com/meta/original/4X/d/d/2/dd2d2127140a4ff1fca10e93c2293b9f34b7bf84.png)

Does it take a while for the keys to propagate on twitter’s side?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [5 april 2023 om 20:29 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/159 "2023-04-05T20:29:07Z")

</div>

> [@Panickos\_Neophytou](#):
>
> Does it take a while for the keys to propagate on twitter’s side?

Hi and welcome, Panickos!

Twitter is actually working on their new API, so we have to wait until they release something and give official info. In the meantime, I think not much can be done, see my message above yours. 🙂

---

<div class="post-metadata">

### Author: ![Panickos\_Neophytou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/panickos_neophytou/32/301513_2.png) [@Panickos\_Neophytou](https://meta.discourse.org/u/Panickos_Neophytou)
#### Post date: [5 april 2023 om 20:34 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/160 "2023-04-05T20:34:34Z")

</div>

So if you had it already setup it works, but if it’s a new “Twitter App” configuration it doesn’t? I’m asking because I was also just able to connect my twitter account with my profile on this community ([meta.discourse.org](http://meta.discourse.org)).

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [5 april 2023 om 21:05 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/161 "2023-04-05T21:05:44Z")

</div>

From what I think I know (take it with a grain of salt 😄):

- Existing Twitter apps (from several months? A year?) work for both login and rich embeds on Discourse

- **Standalone** apps using API 1.1 make Twitter login work and properly return the user’s Twitter username and email in the signup form

- **Product** apps using API 2.0 make Twitter login work, but badly, as it won’t return the user’s Twitter username and email in the signup form

- No newly created app, whether it’s standalone or product, will make rich embed work on Discourse at this time

---

<div class="post-metadata">

### Author: ![TReKiE](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trekie/32/108461_2.png) [@TReKiE](https://meta.discourse.org/u/TReKiE)
#### Post date: [13 april 2023 om 20:44 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/162 "2023-04-13T20:44:30Z")

</div>

A few minutes ago I received an e-mail from Twitter:

> Hello,
> 
> This is a notice that your app - Forum Login - has been suspended from accessing the Twitter API.  
> Please visit [developer.twitter.com](http://developer.twitter.com) to sign up to our new Free, Basic or Enterprise access tiers.  
> More information can be found on our [developer community forums](https://twittercommunity.com/t/announcing-new-access-tiers-for-the-twitter-api/188728).
> 
> Regards,  
> Twitter Developer Platform

Logging into the Twitter dev portal shows a bright red banner under the app that says:

> This App has violated Twitter Rules and policies. As a result, it can no longer be accessed. For assistance, submit a [support ticket](https://help.twitter.com/forms/platform).

I assume this is the standard message when they “deprecate” the old 1.1 apps, I created this one in 2019. Trying to use the Twitter login on the forum now results in the aforementioned “An error occurred when starting authorization. Please try again.”

---

<div class="post-metadata">

### Author: ![Brandon007](https://avatars.discourse-cdn.com/v4/letter/b/b4bc9f/32.png) [@Brandon007](https://meta.discourse.org/u/Brandon007)
#### Post date: [14 april 2023 om 16:36 UTC](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395/163 "2023-04-14T16:36:58Z")

</div>

Me too.

Go to [https://developer.twitter.com](https://developer.twitter.com) and delete your old Web App. Then create a new one and follow the instructions at the top of this thread. You’ll be back up in no time.

I tested my recreation and we can now login with Twitter again.

[Previous page](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395.md?page=3)

[Next page](https://meta.discourse.org/t/configuring-x-login-and-rich-embeds-for-discourse/13395.md?page=5)
