0
我有FB.AppRequest
问题。我需要用户只从Facebook用户界面中显示的列表中选择一个朋友,但我无法找到一种方法来查看Facebook Unity3d SDK。Unity3d AppRequest限制选择
感谢您的帮助。
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");
}
}
检查你是如何在你的代码中编写“挑战”和“成功”的,你可能要考虑用相同的格式编写所有的调试日志,如:“挑战取消”,“挑战错误”和“挑战成功” 。 – moondaisy