I am trying to get users profile photo using facebook graph
I thought photos were public and you do not need to have an acces token but when trying I receive A question mark photo.
Trying with my Id http://graph.facebook.com/10150172705012177/picture
returns a blue question mark, by the graph explorer I get access token and I Have the photo
http://graph.facebook.com/10150172705012177/picture?access_token=xxxxxxx
Can I get the profile photo with the fb id without access token???
With: FB.API("10150172705012177/picture", HttpMethod.GET, delegate(IGraphResult photoResult)
and With
public static IEnumerator GetFBProfilePicture() { WWW url = new WWW(System.Uri.EscapeUriString("https: //graph.facebook.com/" + 10150172705012177 + "/picture?type=large")); yield return url; Debug.Log("Completed."); Texture2D texture = new Texture2D(180, 180, TextureFormat.DXT1, false); url.LoadImageIntoTexture(texture); // ...
var image = Canvas.FindObjectOfType<Image>();
image.overrideSprite = Sprite.Create(texture, new Rect(0, 0, 8, 8), new Vector2(0.5f, 0.5f)); ;
}
I receive the same, a red question mark