I'm trying to use the Unity Facebook SDK to do simple feed posts and I'm having issues.
I appear to log in/log out just fine. But when I try to post a feed message it doesn't go through.
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()+ "'.");
}
In the Unity Editor I get the following in console:
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()
My call back function is never called.
On iOS I get:
FBSDKLog: FBShareDialogParams:
only "http" or "https" schemes are supported for link thumbnails
-> applicationWillResignActive()
-> applicationDidEnterBackground()
-> applicationWillEnterForeground()
-> applicationDidBecomeActive()
id:1 msg:
The iOS call back function gets nothing in return:
Facebook response text is: '' error: '' tostring: 'FBResult'.
Update: I added a 'picture' field and that made the iOS error go away. However I still don't have anything showing on my facebook wall.