Twitter Mobile OneBox missing images due to lack of API keys

סיכום מבוסס בינה מלאכותית

The discussion revolves around Twitter Mobile OneBox not displaying images properly due to missing API keys. znedw noticed that links to mobile.twitter.com were not being processed like their twitter.com counterparts. Stephen questioned the difference, noting they appeared identical. znedw found that the issue seemed resolved on meta, possibly due to a OneBox version bump in 2.4.0.beta10 znedw. However, the problem persisted after updating to HEAD, even after rebuilding posts and creating new ones znedw. Falco clarified that Twitter API keys are required for proper OneBox functionality, referencing the official documentation. znedw confirmed that adding the API keys resolved the issue.

A user on our forums commented that links to mobile.twitter.com are not OneBox’d properly like their twitter.com counterparts. I was wondering if it’s possible to have a whitelist or similar of URLs that are safe to redirect (as twitter doesn’t seem to re-direct based on the url agent)

Example:

They look… identical? Do they render differently for you?

Actually, it’s working on meta…

Okay I’m on 2.4.0.beta10 and there’s been a version bump for OneBox, maybe that’s it

https://github.com/discourse/discourse/commit/4773cf293305011c7aab002f928c26f3ed894aed

Okay I’m @ HEAD now, still not working properly, tried rebuilding posts and a fresh post

Same links on our forum:

OneBox settings:

You need Twitter API keys to get good oneboxes.

Thank-you, this worked!