Unity3D Facebook SDK 400错误请求

时间:2014-05-15 22:00:00

标签: ios facebook unity3d facebook-unity-sdk

我正在尝试使用Unity Facebook SDK进行简单的Feed帖子,而且我遇到了问题。

我似乎登录/退出就好了。但是,当我尝试发布Feed信息时,它不会通过。

public void TestPost()
{
    FB.Feed(link: "http://www.vidasystems.com/",
    linkName: "Bone Genius",
    linkCaption: "I got a score of ABC on Bone Genius!",
    linkDescription: "There are a lot of bones in this game!",
    callback: LogCallback);
}
void LogCallback(FBResult response) {
    Debug.Log("FAcebook response text is: '" + response.Text + "' error: '" +
         response.Error + "' tostring: '" + response.ToString()+ "'.");
}

在Unity Editor中,我在控制台中获得以下内容:

400 Bad Request
UnityEngine.Debug:LogError(Object)
FbDebug:Error(String)
Facebook.FallbackData:JSFallback(String)
Facebook.AsyncRequestDialogPost:CallbackWithErrorHandling(FBResult)
Facebook.<Start>c__Iterator0:MoveNext()

External Call: fbUi("{\"link\":\"http://www.vidasystems.com/\",
    \"name\":\"Bone Genius\",
    \"caption\":\"I got a score of ABC on Bone Genius!\",
    \"description\":\"There are a lot of bones in this game!\",
    \"app_id\":\"Redacted\",
    \"locale\":\"en_US\",
    \"method\":\"feed\"}",
     "1");
UnityEngine.Application:ExternalCall(String, Object[])
Facebook.CanvasFacebook:JSFallbackUI(String, Dictionary`2, FacebookDelegate)
Facebook.FallbackData:JSFallback(String)
Facebook.AsyncRequestDialogPost:CallbackWithErrorHandling(FBResult)
Facebook.<Start>c__Iterator0:MoveNext()

永远不会调用我的回调函数。

在iOS上我得到:

FBSDKLog: FBShareDialogParams: 
    only "http" or "https" schemes are supported for link thumbnails
-> applicationWillResignActive()
-> applicationDidEnterBackground()
-> applicationWillEnterForeground()
-> applicationDidBecomeActive()
id:1 msg:

iOS回调功能得不到任何回报:

Facebook response text is: '' error: '' tostring: 'FBResult'.

更新:我添加了一个“图片”字段,这使得iOS错误消失了。但是我仍然没有在我的Facebook墙上显示任何内容。

0 个答案:

没有答案
相关问题