Onebox and Flickr issues?

I just wanted to see if any issues were known about Flickr and onebox working correctly. I had previously been able to post a url to a flickr photo page, and onebox would correctly grab the image:

Imgur

As of now it doesn’t do anything other than turn it into a link. Production logs show:

Processing by OneboxController#show as HTML
  Parameters: {"url"=>"https://www.flickr.com/photos/patdavid/16548303178/", "refresh"=>"false"}
  Rendered text template (0.0ms)
Completed 404 Not Found in 262ms (Views: 1.3ms | ActiveRecord: 16.3ms)

I can confirm that it does still work for Flickr profiles:

Imgur

As well as for 500px image pages:

Could it be related to?
https://github.com/discourse/onebox/pull/282

2 Likes

Possibly, @techapj can you take a look?

Wow, I spent at least 4 hours on this issue, just to find out that the Open Graph meta tags for Flickr are generated dynamically! :open_mouth:

<meta property="og:type" content="flickr_photos:photo" data-dynamic="true">

(notice the data-dynamc attribute)

I just sent a PR to use oEmbed in case of Flickr instead of Open Graph.

https://github.com/discourse/onebox/pull/292

2 Likes