我如何得到某人的个人资料图片显示给他们? [英] How do i get someones profile picture to display back to them?
本文介绍了我如何得到某人的个人资料图片显示给他们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何让某人的个人资料图片显示给我。我已经获得使用用户图片的权限,我只是不知道如何使用他们的个人资料图片并显示给他们。
How do i get someones profile picture to diplay back to me. I have already gotten permissions to use the user's pictures etc i just don't know how to use their profile picture and display it back to them.
任何帮助将是非常棒的
推荐答案
调用Graph API
Calling on the Graph API
http://graph.facebook.com/[id]/picture
以下将给您不同的大小
http://graph.facebook.com/[id]/picture?type=square
http://graph.facebook.com/[id]/picture?type=normal
http://graph.facebook.com/[id]/picture?type=large
所以你可以只需将这些URL直接放入< img>
标签
So you can just put these URLs straight in an <img>
tag
EG: img src =http://graph.facebook.com/4/picture?type=square/>
请参阅:
htt p://developers.facebook.com/docs/reference/api/#pictures
这些都在公共领域,所以没有必要任何身份验证。
These are in the public domain, so there is no need for any authentication.
这篇关于我如何得到某人的个人资料图片显示给他们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文