Greg Lukosek Greg Lukosek - 11 days ago 5
iOS Question

Unity FB.API request returning unsupportedURL on iOS, working in editor

Im requesting basic data from Unity app using official Facebook SDK.
The problem appears when I add first_name field into friends list

There is no issue in Unity Editor, problem only appears on iOS, console screaming UnsuportedURL

Issue does not appear without the {first_name} right after friends

Request:

me?fields=id,name,friends{first_name}


Unity Code:

FB.API("me?fields=id,name,email,friends{first_name},first_name", HttpMethod.GET, delegate(FBResult dataResult) {

if (!string.IsNullOrEmpty(dataResult.Error)) {
//error occured
Debug.LogError(dataResult.Error);
error(dataResult.Error);
isFinished(true);

} else {

Debug.Log(dataResult.Text);
}

Answer

Try this URL, using fields.

"me?fields=id,name,email,friends.fields(first_name),first_name"

Comments