获取Facebook个人资料图片 [英] Getting facebook profile picture
问题描述
我需要通过传递其ID来获取任何人的Facebook个人资料照片.但是我不需要使用Facebook API或其他任何图形.只是我需要提供带有该ID的网址.是否可以通过这种方式获取个人资料图片?我尝试在谷歌,但我没有得到它.如果有人知道这一点,请回复我...
i need to get the facebook profile picture of anyone by passing their id. But i no need to use facebook API or Graph anything else.. Just i need to give the url with that id.. Is it possible to get the profile picture in this way? I tried in google but i didnt get it. If anyone knows this please respond me...
推荐答案
好吧,我认为唯一可用的选项是:
Well, I think the only options available are:
- https://graph.facebook.com/[PROFILE_ID]/图片(您可以在标签中包含此URL,它将起作用).
- 将与个人资料相对应的页面(即 http://www.facebook.com/profile.php?id= [PROFILE_ID] )隐藏起来,并在此处获取图片的URL. li>
- https://graph.facebook.com/[PROFILE_ID]/picture (You can include this URL inside a tag and it will work).
- Scrap yourself the page corresponding to the profile, i.e. http://www.facebook.com/profile.php?id=[PROFILE_ID] and get the URL of the picture there.
我建议您使用第一个,因为它给您更大的图片大小灵活性(?type=small
,?type=thumbnail
等).
I would suggest you to use the first one, because it gives you more flexibility about the picture size (?type=small
, ?type=thumbnail
, etc).
修改
请记住,这个答案是从2011年开始的,Facebook经常对其API进行更改.
Keep in mind that this answer is from 2011, and Facebook makes changes in its APIs frequently.
这篇关于获取Facebook个人资料图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!