Kayla tucker Kayla tucker - 3 months ago 16
iOS Question

Instagram photo to UIImageView

can i show an instagram photo on my UIImageView?

I was looking for media id and other options, but i can't find the format and the way to show this image for example:

https://www.instagram.com/p/9W-K0wtq3v/

Answer

I think: it will have two ways to achieve your goal

*First: parse link web Instagram. If you view source your link give: you will find direct link to image:

https://igcdn-photos-b-a.akamaihd.net/hphotos-ak-xfp1/t51.2885-15/e35/10729433_781480525295113_239273684_n.jpg

So you can parse web and find:

<meta property="og:image" content="

for direct link.

You enroll developer instagram and learn how to use Instagram API end points.