midospan / oohembed

Automatically exported from code.google.com/p/oohembed
Other
0 stars 0 forks source link

Required width, height parameters missing for TwitPic, several other providers #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Pull up oohembed info on a TwitPic picture:
http://oohembed.com/oohembed/?url=http://twitpic.com/35eufx

What is the expected output? What do you see instead?

Expected: a valid oEmbed response of type "photo", which per spec must include 
the "url", "width", and "height" parameters.

Actual: "url" is present, but "width" and "height" are missing. This causes the 
PHP PEAR Services_oEmbed library to throw an exception, rejecting the data.

What version of the product are you using? On what operating system?

Whatever's running live now.

Please provide any additional information below.

It looks like the TwitPic provider isn't actually doing any metadata lookup 
right now. If a call to TwitPic API's media/show method can be thrown in, it 
should be possible to get the width and height as well as a title etc:

http://dev.twitpic.com/docs/2/media_show

Sample:

http://api.twitpic.com/2/media/show.json?id=35eufx

Original issue reported on code.google.com by brion.vi...@gmail.com on 10 Nov 2010 at 1:13