# Onebox does not work when summary opengraph tag is not present?

**URL:** https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953
**Category:** Support
**Created:** [02.Май.2017 11:37:54 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953 "2017-05-02T11:37:54Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![goindeep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goindeep/32/71140_2.png) [@goindeep](https://meta.discourse.org/u/goindeep)
#### Post date: [02.Май.2017 11:37:54 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/1 "2017-05-02T11:37:54Z")

</div>

I am not sure if I should be doing something differently.

Check out these two posts.

[Here it works well.](https://www.discountalk.com.au/t/up-to-30-off-on-selected-dell-laptops-ends-4th-of-may/71)

[And here it does not.](https://www.discountalk.com.au/t/32-off-electricity-usage-rate-via-energy-australia-for-melbourne-post-code/75)

---

<div class="post-metadata">

### Author: ![robmc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmc/32/125900_2.png) [@robmc](https://meta.discourse.org/u/robmc)
#### Post date: [02.Май.2017 11:43:45 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/2 "2017-05-02T11:43:45Z")

</div>

onebox works when the site being ‘boxed’ has correctly implemented OG tags (or other recognisable content tags) so that the preview can be created

I believe that is the case here (in the second example there is not much content to be presented in the summary)

You will notice it works on some Wordpress sites and not others for the same reason

Nothing you can do about it if the site itself has not optimised itself

---

<div class="post-metadata">

### Author: ![goindeep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goindeep/32/71140_2.png) [@goindeep](https://meta.discourse.org/u/goindeep)
#### Post date: [02.Май.2017 21:46:27 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/3 "2017-05-02T21:46:27Z")

</div>

Makes. Sense. Thanks.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [02.Май.2017 22:09:22 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/4 "2017-05-02T22:09:22Z")

</div>

The tags that need to be present in the page are OpenGraph and/or oEmbed. Feel free to search for info about either of those.

Use [Iframely URL Debugger - Open Graph, Twitter Cards, oEmbed](http://iframely.com/debug) to test as needed

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [03.Июнь.2017 00:40:18 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/5 "2017-06-03T00:40:18Z")

</div>

According to [http://ogp.me/](http://ogp.me/) the four required tags for OpenGraph are title, type, image, and URL. What I don’t understand is why this url works (i.e. is being oneboxed), even though the only OG tag on that page is og:image (according to [http://iframely.com/debug](http://iframely.com/debug?uri=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FFunk))

> **[Funk](https://en.wikipedia.org/wiki/Funk)**
>
> Funk is a music genre that originated in African-American communities in the mid-1960s when musicians created a rhythmic, danceable new form of music through a mixture of various music genres that were popular among African-Americans in the mid-20th century. It deemphasizes melody and chord progressions and focuses on a strong rhythmic groove of a bassline played by an electric bassist and a drum part played by a percussionist, often at slower tempos than other popular music. Funk typically con...

while this one does not work even though it works fine on facebook )in supports three out of the four required tags):

[https://groupworksdeck.org/patterns/Aesthetics\_of\_Space](https://groupworksdeck.org/patterns/Aesthetics_of_Space)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [03.Июнь.2017 01:58:25 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/6 "2017-06-03T01:58:25Z")

</div>

Very popular, world famous websites have custom oneboxers. Everyone else falls back to opengraph and oembed.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [06.Июнь.2017 19:38:49 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/7 "2017-06-06T19:38:49Z")

</div>

Okay, this page

[https://groupworksdeck.org/patterns/Aesthetics\_of\_Space](https://groupworksdeck.org/patterns/Aesthetics_of_Space)

now supports all four requried OpenGraph tags, title, type, image, and URL, (see [here on iframely](http://iframely.com/debug?uri=https%3A%2F%2Fgroupworksdeck.org%2Fpatterns%2FAesthetics_of_Space)) but it is still not being oneboxed by discourse.

Could you specify what other tags discourse requires for oneboxing?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [06.Июнь.2017 19:56:37 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/8 "2017-06-06T19:56:37Z")

</div>

Not true. I see no summary opengraph tag in iframely. How can you _possibly_ summarize an URL without an actual summary??

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [06.Июнь.2017 20:13:27 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/9 "2017-06-06T20:13:27Z")

</div>

Pretty much all I know about OpenGraph is from [http://ogp.me/](http://ogp.me/) and there it does not mention the summary tag as a requirement. But I hear you say: discourse wants the summary tag, which is fine. I will let the admin of that website know (I’m just helping them in getting their pages oneboxed in discourse).

> [@codinghorror](#):
>
> How can you possibly summarize an URL without an actual summary??

You can do a onebox using just the title and the image, no? And not that I expect discourse to do that, but facebook even manages to compensate for missing summary tags, probably by parsing the page for other hints.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [06.Июнь.2017 20:35:49 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/10 "2017-06-06T20:35:49Z")

</div>

Summary is required otherwise there is no summary.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [06.Июнь.2017 21:02:18 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/11 "2017-06-06T21:02:18Z")

</div>

Just to be clear: by “summary” you mean the `og:description` tag, right?

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [07.Июнь.2017 13:40:36 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/12 "2017-06-07T13:40:36Z")

</div>

With the `og:description` tag it now works here on meta but on my site that particular url that I have used over and over again for testing on my site still doesn’t get oneboxed (other urls on that site do).

It looks like some caching or rate limit thing to me. How can I get my instance to forget everything it knows about that url and start from scratch. Or, if nothing is being cached locally, how to I get my instance to bypass any other caches and get the page straight from the source server?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [07.Июнь.2017 22:55:43 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/13 "2017-06-07T22:55:43Z")

</div>

Good question, @eviltrout?

You can add bogus querystring to the URL like

`http://example.com/foo`

vs

`http://example.com/foo?x=1`

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [08.Июнь.2017 20:32:57 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/14 "2017-06-08T20:32:57Z")

</div>

If you edit a post containing the onebox, it’s supposed to pass the `refresh` flag through so it refreshes. Otherwise we rely on the cache.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [08.Июнь.2017 20:56:38 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/15 "2017-06-08T20:56:38Z")

</div>

In all this testing, I have not published a single post on my site, I only looked at the preview in the editor. Might this explain things, i.e. that no refresh flag was sent?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [09.Июнь.2017 15:03:07 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/16 "2017-06-09T15:03:07Z")

</div>

Yes previewing will always use the cache to avoid constantly requesting the same thing. If you need to refresh the onebox after a code update or something, try editing and saving the post again with minor changes.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [09.Июнь.2017 15:38:05 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/17 "2017-06-09T15:38:05Z")

</div>

> [@eviltrout](#):
>
> Yes previewing will always use the cache to avoid constantly requesting the same thing.

Which cache are we talking about, though? Because since I never actually saved the post, where would the page be cached? In other words, this is not about changing an existing post but just trying (previewing) the same url repeatedly with 6-12 hours in between tries.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [09.Июнь.2017 15:39:21 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/18 "2017-06-09T15:39:21Z")

</div>

Requests to the local onebox URL (which is called to expand links) has a cache. It is called when previewing and saving the post.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [11.Июнь.2017 21:17:03 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/19 "2017-06-11T21:17:03Z")

</div>

> [@eviltrout](#):
>
> If you need to refresh the onebox after a code update or something, try editing and saving the post again with minor changes.

This is not working. Edit and save does not seem to cause a refresh. It keeps using the cached version.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [12.Июнь.2017 15:03:06 UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/20 "2017-06-12T15:03:06Z")

</div>

Did you make any changes to the post when you edited it? If the content hasn’t changed we won’t save it. I often try adding a space or a word somewhere.

[Следующая страница](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953.md?page=2)
