# Twitter Mobile OneBox missing images due to lack of API keys

**URL:** https://meta.discourse.org/t/twitter-mobile-onebox-missing-images-due-to-lack-of-api-keys/140631
**Category:** Support
**Created:** [February 4, 2020, 9:08pm UTC](https://meta.discourse.org/t/twitter-mobile-onebox-missing-images-due-to-lack-of-api-keys/140631 "2020-02-04T21:08:21Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![znedw](https://avatars.discourse-cdn.com/v4/letter/z/b5e925/32.png) [@znedw](https://meta.discourse.org/u/znedw)
#### Post date: [February 4, 2020, 9:08pm UTC](https://meta.discourse.org/t/twitter-mobile-onebox-missing-images-due-to-lack-of-api-keys/140631/1 "2020-02-04T21:08:21Z")

</div>

A user on our forums commented that links to [mobile.twitter.com](http://mobile.twitter.com) are not OneBox’d properly like their [twitter.com](http://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:

> <https://twitter.com/sunekubado/status/1224715415928102913>

> <https://twitter.com/sunekubado/status/1224715415928102913>

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [February 4, 2020, 9:09pm UTC](https://meta.discourse.org/t/twitter-mobile-onebox-missing-images-due-to-lack-of-api-keys/140631/2 "2020-02-04T21:09:41Z")

</div>

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

 ![Screen Shot 2020-02-04 at 1.09.55 PM](https://global.discourse-cdn.com/meta/original/3X/f/a/fa7ff8eaafcade86193686d45fd9895c81df243e.png)

---

<div class="post-metadata">

### Author: ![znedw](https://avatars.discourse-cdn.com/v4/letter/z/b5e925/32.png) [@znedw](https://meta.discourse.org/u/znedw)
#### Post date: [February 4, 2020, 9:09pm UTC](https://meta.discourse.org/t/twitter-mobile-onebox-missing-images-due-to-lack-of-api-keys/140631/3 "2020-02-04T21:09:46Z")

</div>

Actually, it’s working on meta…

---

<div class="post-metadata">

### Author: ![znedw](https://avatars.discourse-cdn.com/v4/letter/z/b5e925/32.png) [@znedw](https://meta.discourse.org/u/znedw)
#### Post date: [February 4, 2020, 9:11pm UTC](https://meta.discourse.org/t/twitter-mobile-onebox-missing-images-due-to-lack-of-api-keys/140631/4 "2020-02-04T21:11:30Z")

</div>

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](https://github.com/discourse/discourse/commit/4773cf293305011c7aab002f928c26f3ed894aed)

---

<div class="post-metadata">

### Author: ![znedw](https://avatars.discourse-cdn.com/v4/letter/z/b5e925/32.png) [@znedw](https://meta.discourse.org/u/znedw)
#### Post date: [February 4, 2020, 9:23pm UTC](https://meta.discourse.org/t/twitter-mobile-onebox-missing-images-due-to-lack-of-api-keys/140631/5 "2020-02-04T21:23:47Z")

</div>

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

Same links on our forum:

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/0/80d265a35ffaadb55bb85c09d72352b23fe49493.png)

OneBox settings:

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

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 4, 2020, 9:26pm UTC](https://meta.discourse.org/t/twitter-mobile-onebox-missing-images-due-to-lack-of-api-keys/140631/6 "2020-02-04T21:26:59Z")

</div>

You need Twitter API keys to get good oneboxes.

> [@Configuring X login and rich embeds for Discourse](https://meta.discourse.org/t/configuring-twitter-login-and-rich-embeds-for-discourse/13395):
>
> bookmark This guide explains how to set up Twitter login and rich embeds for your Discourse forum. person_raising_hand Required user level: Administrator warning In order for rich embeds to work properly, a Basic plan or higher for X Dev is mandatory. Rich embeds will not work with the Free X Dev plan. X Configuration Go to the [Developer Portal](https://developer.twitter.com/en/portal/projects-and-apps) on X. Choose between a Free, Basic, or Pro X Dev plan and complete the developer agreement and policy requirements. After completing …

---

<div class="post-metadata">

### Author: ![znedw](https://avatars.discourse-cdn.com/v4/letter/z/b5e925/32.png) [@znedw](https://meta.discourse.org/u/znedw)
#### Post date: [February 4, 2020, 10:03pm UTC](https://meta.discourse.org/t/twitter-mobile-onebox-missing-images-due-to-lack-of-api-keys/140631/7 "2020-02-04T22:03:06Z")

</div>

Thank-you, this worked!

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

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 5, 2020, 10:11pm UTC](https://meta.discourse.org/t/twitter-mobile-onebox-missing-images-due-to-lack-of-api-keys/140631/8 "2020-03-05T22:11:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
