开发者

Get the profile picture with the Facebook C# SDK

开发者 https://www.devze.com 2023-02-04 08:16 出处:网络
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

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

精彩评论

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