问题描述
我可以在UIImageView上显示instagram照片吗?
can i show an instagram photo on my UIImageView?
我一直在寻找媒体ID和其他选项,但是我找不到显示该图像的格式和方式,例如:
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/
推荐答案
我认为:它将有两种方式实现您的目标
I think: it will have two ways to achieve your goal
*首先:解析链接网络Instagram.如果您查看源代码,则您的链接会给出:您会找到指向图像的直接链接:
*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="
直接链接.
-
第二:您可以在这里参考:
Second: You can reference here:
https://instagram.com/developer/endpoints/media/
您注册了instagram开发者,并学习了如何使用Instagram API端点.
You enroll developer instagram and learn how to use Instagram API end points.
这篇关于Instagram照片到UIImageView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!