【问题标题】:Facebook API Error code 100 - UnityFacebook API 错误代码 100 - Unity
【发布时间】:2014-06-02 22:47:52
【问题描述】:

我正在使用 Unity3D for Android 开发游戏。我正在使用 Facebook 应用程序在 Facebook 中分享游戏得分。但我收到一条错误消息;

我的代码在这里;

//facebook share start
public static void share(string link, string pictureLink, string name,string caption, string description, string redirectUri){
    Application.OpenURL(ShareUrl +
                        "?app_id=" + AppId +
                        "&link=" + WWW.EscapeURL( link )+
                        "&picture=" + WWW.EscapeURL(pictureLink) +
                        "&name=" + WWW.EscapeURL(name) +
                        "&caption=" + WWW.EscapeURL(caption) +
                        "&description=" + WWW.EscapeURL(description) +
                        "&redirect_uri=" + WWW.EscapeURL(redirectUri));
}//facebook share end
if(GUI.Button(new Rect(Screen.width/2,(Screen.height/2-30),80,20), "Share")){
            print("Share");
            share("http://www.halilcosgun.com","https://24.media.tumblr.com/avatar_ce3a5b939737_64.png","Facebook skor paylaşma denemesi " + score,"Skor da mı paylaşmıyah?","oyun çok yakında!","http://facebook.com");
        }

我试图写很多地址(很多很多配置)而不是“http://facebook.com”,但我找不到真正的地址。 如果你知道解决方案,你能帮我吗?

感谢您的关注。

【问题讨论】:

  • 使用官方的 Unity Facebook SDK 会不会更容易?
  • &替换&?

标签: android facebook unity3d


【解决方案1】:

你提供的参数一定是无效的。尝试找出并做出改变,它将解决您的问题

尝试在大写示例中使用第一个 s 进行共享

        Share("http://www.halilcosgun.com","https://24.media.tumblr.com/avatar_ce3a5b939737_64.png","Facebook skor paylaşma denemesi " + score,"Skor da mı paylaşmıyah?","oyun çok yakında!","http://facebook.com");
    }

【讨论】:

  • 感谢您抽出时间 Ashan,但我仍然收到错误消息。
猜你喜欢
  • 2013-02-24
  • 2013-02-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-08-16
  • 2018-03-30
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多