Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type for image sites #57

Closed
manikmi opened this issue Apr 28, 2015 · 4 comments
Closed

type for image sites #57

manikmi opened this issue Apr 28, 2015 · 4 comments

Comments

@manikmi
Copy link

manikmi commented Apr 28, 2015

Hi,
Can we get the type for image sites like flickr, instagram, pinterest,
to show the media type like photo/video instead of type as rich
and get the thumbnail url?

@iparamonau
Copy link
Member

Image-only sites should return photo type in oembed endpoint. You can check it on Imgur images or, say, 500px, for example.

However, if domains have other embed types, the APIs will give preferences to those.

Instagram has status embeds, Flickr has slideshows. Pinterest has only app-like status embeds. Hence, the preference in oEmbed endpoint. oEmbed is a little limited as a format as it only allows one embed type and we give preference to rich one.

Iframely format should return all available rels.

The same is true for Instagram videos - the preference is given for status embeds.

In the cloud, if you request with &iframe=1, the preference will be given to more simple types: photos and plain videos.

We'll think and perhaps give an iframe option to open source version as well.

@manikmi
Copy link
Author

manikmi commented Apr 29, 2015

Thanks,

Truly appreciate if you could help.

@iparamonau
Copy link
Member

Sorry for taking so long to comment. I completely forgot we actually have your issue covered already.

Just re-define OEMBED_RELS_PRIORITY in your local config file, put image first, and we will use your preference, oEmbed API will return images in html field, if Iframely has any.

@manikmi
Copy link
Author

manikmi commented Jul 8, 2015

Hi Ivan

Is there a way to get the flickr photos(with thumbnail) and videos(with html code) return as type photo and video only. Right now it returns as type rich. I tried removing the apikey from config.local.js, it started showing photos as type photo and video as type rich. Also, my concern is if I remove the apikey, it should not return the rate limit issues?

Regards,
Manik Mittal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants