Unity facebook分享按钮

时间:2017-03-01 15:52:15

标签: c# android unity3d

当我昨天发布我在Unity for Unity中制作的游戏时,分享按钮工作正常,显示我放入的每个信息。但是,今天它只显示标题和图像拇指。问题在哪里因为我没有改变任何东西?

public void Share(){
        FB.ShareLink(
            contentTitle: "I scored " + GameController.instance.score + " on Flash Football. Can you beat my score?",
            contentURL: new System.Uri("https://play.google.com/store/apps/details?id=com.flash.football"),
            photoURL: new System.Uri("http://i.imgur.com/mQLDue5.png"),
            contentDescription: "Try to click the ball to score a point. It is harder than it looks. Click to learn more.",
            callback: OnShare);
    }

    private void OnShare(IShareResult result){
        if (result.Cancelled || !string.IsNullOrEmpty(result.Error))
            Debug.Log("Share error: " + result.Error);
        else if (!string.IsNullOrEmpty(result.Error))
            Debug.Log(result.PostId);
        else
            Debug.Log("Success");
    }

1 个答案:

答案 0 :(得分:0)

尝试更新Facebook SDK。 Facebook有时会更改所有反手电话,这可能会导致错误。