I have problem with FB.AppRequest
. I need the user to only select one friend from the list shown in the Facebook UI, but I can't find a way to do it looking at the Facebook Unity3d SDK.
Thanks for the help.
public void ShareWithUsers()
{
FB.AppRequest(
"Come and join me, i bet u cant beat my score",
null,
new List<object>() {"app_users"},
null,
null,
null,
null,
ShareWithUsersCallback
);
}
void ShareWithUsersCallback(IAppRequestResult result)
{
if (result.Cancelled)
{
Debug.Log("Challenge Cancel");
GameObject.Find("CallBacks").GetComponent<Text>().text = "Challenge Cancel";
}
else if (!String.IsNullOrEmpty(result.Error))
{
Debug.Log("Challenge on error");
GameObject.Find("CallBacks").GetComponent<Text>().text = "Challenge on error";
}
else if (!String.IsNullOrEmpty(result.RawResult))
{
Debug.Log("Success on challenge");
}
}