如何获取 Instagram 个人资料图片 [英] how to get instagram profile picture
本文介绍了如何获取 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=访问令牌
) 你会收到这样的回复:
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 它将为您显示图像.
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屋!
查看全文