Click here to Skip to main content
15,910,980 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello again.. I'm creating a WinForms App with C# and I using Facebook C# SDK.
I have a problem with this line:

C#
var fbpicture = fb.Get("/me/picture");


I'm trying to get the UserPic (In big size) but this error appears: "Unknown facebook response."
I readed the Topics on the Facebook Developers Page, and I can't to find the error... Can you help me? (The Auth Part it's ok, I get the UserName)
Posted

1 solution

You need to use this URL directly to get the profile picture in large size
C#
public string GetProfileImageUrl(string facebookId)
        {
            return "http://graph.facebook.com/" + facebookId + "/picture?type=large";     
        }


More info here http://www.facebooksdk.blogspot.in/2011/04/facebook-profile.html[^]

and here

developers.facebook.com/docs/reference/api/
 
Share this answer
 
v2
Comments
TANicox 1-Aug-12 10:33am    
Thanks, it works!
bbirajdar 1-Aug-12 10:39am    
You are welcome !!!
TANicox 1-Aug-12 11:00am    
Sorry, another question... Now I can't to publish on my wall...
I tryied with this code http://www.facebooksdk.blogspot.in/2011/05/facebook-status.html
but doesn't work (Error: Parameter count mismatch.)
bbirajdar 1-Aug-12 11:03am    
The error message is clear. There is issue with your code. You need to post the code.. You are missing something.. most probably a parameter
TANicox 1-Aug-12 11:07am    
Okay, try to find what is missing.
But it is rare, because the Facebook Chart API accepts me as well

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900