【发布时间】: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 会不会更容易?
-
用
&替换&?