开发者

Get the profile picture with the Facebook C# SDK

I would like to get the profile picture. Can I do that with the Facebook SDK, and how?

When I use the Api.get option I get a jsonreader开发者_JAVA技巧 exception.


You can render the photo by just doing:

<img src="https://graph.facebook.com/**id**/picture"/>

in your page (obviously changing the id to the id of the user).

You don't have to retrieve it using the API, but you do have to retrieve the id.

You can also get pictures by their id using /photoid like so /98423808305

You can find more information here - http://developers.facebook.com/docs/graph-api

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜