Failed to get flickr images.

I use a flickraw gem with rails - 4.0.0, everything goes well, except when we retrieve photos from flickr using flikraw, it is retrieved, but when I try to display it on the screen using the URL obtained from flickr doesn't display, but when I paste the same URL in the browser, it displays.

Here is the html code

<img src="https://www.flickr.com/photos/USER_ID/14938816417/">

Any help would be appreciated

Thanks Rakesh

+4
source share
1 answer

It looks like you are using the link to the image page on flickr, not the image URL. Your img tag should look something like this ...

<img src="https://farm4.staticflickr.com/3888/14938816417_9256faf242_h_d.jpg">

The code you have is probably using photo.idand not photo.url_o(for example)

0

All Articles