从对象ID或图像获取Facebook API完整图像 [英] Get Facebook API full image from object id or image
问题描述
我有一个问题:
当我通过API获得了个人资料的所有供稿时,我得到了这种图像网址:
When I got all the feeds of my profile through API, I got this kind of image url :
https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/s130x130/10407901_10205070108129312_6474606199159519359_n.jpg?oh=d7b01585bf8bde8b2f9d498c78ac5710&oe=550CFBE2&gda=1427806708_67b3039eb879eb560b7f5b1ea810d1e9
这是小图...
我试图拥有完整的形象,但目前还没有成功.
I tried to have full image but I don't success for the moment.
I want this image : (got from the website) https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10407901_10205070108129312_6474606199159519359_n.jpg?oh=39f3c1443fc0bfea4ba3bd8b4a40dabf&oe=54DE75FB&gda=1424108676_aac7e3989dec7a272ae658369cfcd546
...但是如何从第一个链接获取它?或通过对象ID?
...but how can I get it from the first link ? or through the object id?
感谢您的答复
推荐答案
尝试以下操作: https://graph.facebook. com/ {id}/picture?type = large
Try this: https://graph.facebook.com/{id}/picture?type=large
您可以在{id}的位置放置ID.
Where at the place of {id} you can put the ID.
示例: https://graph.facebook.com/100005214543942/picture?type=大
注意:这是参考资料图片,因此分辨率很低.您可以添加其他ID以获得较大的大图像.
Note: Here is the reference to the profile picture so the resolution is quite low. You can put other IDs to get fine large image.
这篇关于从对象ID或图像获取Facebook API完整图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!