如何获取instagram个人资料图片 [英] how to get instagram profile picture

查看:237
本文介绍了如何获取instagram个人资料图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用中,想将instagram个人资料图片放入他的帐户

in my app use want to put instagram profile pic in his account

我如何以编程方式从Instagram获取用户的个人资料图片

how can I get the Profile Picture of a user from Instagram Programmatically

如:

推荐答案

使用Instagram API用户终结点(https://api.instagram.com/v1/users/{user-id}/?access_token=ACCESS-TOKEN ),您会收到这样的回复:

Using the Instagram API users endpoint (https://api.instagram.com/v1/users/{user-id}/?access_token=ACCESS-TOKEN ) you will receive a response like this one:

{
    "data": {
        "id": "1574083",
        "username": "snoopdogg",
        "full_name": "Snoop Dogg",
        "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1574083_75sq_1295469061.jpg",
        "bio": "This is my bio",
        "website": "http://snoopdogg.com",
        "counts": {
            "media": 1320,
            "follows": 420,
            "followed_by": 3410
        }
}

然后您可以使用profile_picture并使用 Facebook Fresco 进行下载 a>然后会为您显示图像.

You can then take the profile_picture and download it using some like Facebook Fresco which will then display the image for you.

这篇关于如何获取instagram个人资料图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆