Twitter/X links not unfurling correctly

When I post a direct twitter/x link in my forum it is not correctly unfurling. When I post the exact same link here on the discourse forum it is working.

My installed version: 3.6.0.beta1-dev (7c34595144)

Correctly Unfurled Example on discourse.org forums
https://x.com/ryanhallyall/status/1961057800693453214

Screenshot of my site incorrectly unfurled

1 Like

Have you followed the steps in Configuring Twitter login and rich embeds for Discourse?

1 Like

I have NOT. Thank you for pointing me in the right direction!

1 Like

I followed the directions to create a twitter consumer ID and secret (from the developers.x.com portal) using the “free” tier.

When I use these generated values and add them in the discourse settings as shown below I am still getting the same incorrectly unfurled twitter post as described in my original post.

Note that my discourse instance is a self-hosted on an AWS EC2 instance.

I think that’s the problem

But I agree the default experience could be improved so you don’t end up with a blank onebox when twitter settings not configured

2 Likes

Oh my gosh.. egg on my face. I failed to read the first paragraph of the documentation with the giant warning sign! How kind of you not to scold me!

I appreciate the prompt helpfulness provided here in the forum.

3 Likes

Yes, perhaps it should default to just the link if it isn’t configured.

4 Likes

I am loving the use of the term “unfurling”. We refer to oneboxing here for that functionality. I’ve added the onebox tag and also alerted the staff experience team to look into how the UI might be improved to make it easier to understan what’s going on in a case like this.

I believe there are other cases when the onebox displays an error message in the composer if it won’t be able to create a proper onebox. Maybe that could be a solution here as well. Or as you say just display it as a simple link if it’s not going to onebox correctly.

Looks like in your example you did not leave a line break before the URL to be oneboxed. Here it is looking as expected.

1 Like