【发布时间】:2017-04-13 15:21:11
【问题描述】:
我对@987654321@ 有疑问。我需要用户只从 Facebook UI 中显示的列表中选择一个朋友,但我无法找到一种方法来查看 Facebook Unity3d SDK。
感谢您的帮助。
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");
}
}
【问题讨论】:
-
检查您在代码中如何编写“挑战”和“成功”,您可能需要考虑使用相同格式编写所有调试日志,例如:
Challenge Cancel、Challenge Error和 @ 987654325@.
标签: c# facebook unity3d unity3d-gui unity3d-5