# Flickr embeds / oneboxes not working correctly

**URL:** https://meta.discourse.org/t/flickr-embeds-oneboxes-not-working-correctly/41631
**Category:** Bug
**Tags:** onebox
**Created:** [2016年三月27日 21:11 UTC](https://meta.discourse.org/t/flickr-embeds-oneboxes-not-working-correctly/41631 "2016-03-27T21:11:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [2016年三月27日 21:11 UTC](https://meta.discourse.org/t/flickr-embeds-oneboxes-not-working-correctly/41631/1 "2016-03-27T21:11:32Z")

</div>

Flickr embeds initially interactive - then - turn into a single flat image on reload.

## Steps to Reproduce

1. Start composing new post
2. Paste a Flickr album link e.g. `https://www.flickr.com/photos/blue_thunderke/sets/72157623871623158/`
3. Note that Flickr embed is interactive in preview, including Flickr logo and navigation arrows.
4. Select “Create Topic”.
5. See post in view, note Flickr embed is still interactive.
6. Refresh page

## Expected Result

Flickr embed to continue to be interactive as it was in the preview.

 ![](https://global.discourse-cdn.com/meta/original/3X/3/4/34ec67693db05e70d24ffdeedb7ca18a5c2f0d9c.png)

## Actual Result

Flat image with a click counter after it (if clicked by others)

 ![](https://global.discourse-cdn.com/meta/original/3X/7/6/76179f1765792e0ec9c768ad1b80a9620f6acba8.png)

## Example

[[Album] Blue Thunder ![](https://global.discourse-cdn.com/meta/original/4X/2/b/6/2b65c4f85ec879252117fd96768668d428212351.jpeg "Blue Thunder") ](https://www.flickr.com/photos/blue_thunderke/sets/72157623871623158/)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016年三月28日 19:22 UTC](https://meta.discourse.org/t/flickr-embeds-oneboxes-not-working-correctly/41631/2 "2016-03-28T19:22:00Z")

</div>

This is because last year Flickr changed it’s oEmbed API to use [“fancy” embed](https://www.flickr.com/help/forum/en-us/72157655480853916/) which requires inserting script tags in our DOM, which we don’t support.

This is exactly why we don’t support official Imgur oEmbed:

> **[imgur](https://help.imgur.com/hc/en-us)**

I updated onebox gem to use OpenGraph instead for Flickr links:

[https://github.com/discourse/onebox/commit/86c3b1bf8ef28aff283f860e56f85cf2aa91d3eb](https://github.com/discourse/onebox/commit/86c3b1bf8ef28aff283f860e56f85cf2aa91d3eb)

---

<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: [2016年三月28日 19:28 UTC](https://meta.discourse.org/t/flickr-embeds-oneboxes-not-working-correctly/41631/3 "2016-03-28T19:28:19Z")

</div>


