I’m trying to get profile picture from graph.facebook.com using Facebook SDK for Unity 7.3.0. My Unity version is 5.3.
This is my function,
public static IEnumerator GetFBProfilePicture (){
WWW url = new WWW (System.Uri.EscapeUriString("https://graph.facebook.com/" + someUserID + "/picture?type=large"));
yield return url;
Debug.Log("Completed.");
Texture2D texture = new Texture2D (180, 180, TextureFormat.DXT1, false);
url.LoadImageIntoTexture (texture);
// ...
}
and I call this function like
StartCoroutine (GetFBProfilePicture ());
It works fine in Unity Player and also in Android devices. But in iOS devices, “Completed.” line doesn’t show up. And there is no error log. It just keep waiting in the url line.
I tried it with iOS 7 and 9 with wireless connection and mobile data. Problem still occurs.
+1
Same here, we’ve tried with waiting for isDone and implemented a timeout mechanism, now it times out every time but we’re never getting any image. Unity is 5.3.1p3. Does the same on iOS 8, 9, 3G and Wifi equally. Same with https requests too.
I don’t use Facebook programming but maybe it’s because the variable is “WWW url” and your returning and loading “url”?
Experiencing the same issue even in Unity 5.3.3f1, The WWW class request for the link http://graph.facebook.com/fb_id/picture?height=160 never gives response. The same has been conveyed to FB and we received the response that they have not changed anything. Was working fine 5.3.1f1.
Works fine for Android and Editor even in Unity 5.3.3f1.But in iOS Unity 5.3.3f1 no response.
have u tried putting the access_token?
u have to put it if u use www url. just try. “…/?access_token=”+AccessToken.CurrentAccessToken