getting user profile picture using facebook c# sdk from codeplex

前端 未结 5 1214
旧时难觅i
旧时难觅i 2021-01-04 23:25

I am using facebook C# sdk from codeplex and trying to download user\'s profile picture.

I know I can get this from:

http://graph.facebook.com/UID/picture?t

5条回答
  •  一整个雨季
    2021-01-05 00:01

    You can get the urls for the user's picture by using FQL

    dim app as new facebookclient(token)
    dim obj as jsonobject = app.get("me/")
    dim fql as string = "Select pic_small, pic_big, pic_square from user where uid = " + CStr(obj("id"))
    dim arr as jsonarray = app.query(fql)
    

    Facebook FQL page for user table

提交回复
热议问题