Facebook API shows one thing on app, post different to facebook! URGENT help needed!

Hello.

This is the last point of my project which prevents me from uploading my App to distribution.

I’m using the graph Facebook API to post a message to the user’s wall, and although the information I pass to the API shows perfectly on the devices (both iOS and Android), when I actually click on the post button, the information is not shown on Facebook correctly.

My code is:

local fb\_publish\_properties = {}; fb\_publish\_properties["iTunes"] = {}; fb\_publish\_properties["iTunes"]["text"] = "Some text to show in the body of the message"; fb\_publish\_properties["iTunes"]["href"] = "link to my app on itunes";   fb\_publish\_properties["GooglePlay"] = {}; fb\_publish\_properties["GooglePlay"]["text"] = "Some other text for the body of the message"; fb\_publish\_properties["GooglePlay"]["href"] = "link to my app on google play";   local fb\_publish\_properties2 = json.encode(fb\_publish\_properties);   local fb\_publish\_params = {}; fb\_publish\_params.app\_id = facebook\_appId; fb\_publish\_params.from = "user's FB id"; fb\_publish\_params.to = "user's FB id"; fb\_publish\_params.picture = "path to message icon"; fb\_publish\_params.description = ""; fb\_publish\_params.properties = fb\_publish\_properties2;   fb\_publish\_params.name = "App's name, for the title"; fb\_publish\_params.caption = "The caption for the whole post";   facebook.showDialog("feed",fb\_publish\_params);

When the Facebook API is launched, I can see the post just fine, the icon parses, the title parses, the texts and links shows up in the window, works perfectly, no problem, but after I post it, and I go to Facebook, all I see that was parsed is the title of the post, the icon of the post, and the caption for the post, nothing of the properties with my titles and links is shown, and when I click on the post it leads to the icon file I attached.

This happens exactly the same both on android and iOS, both on devices with the Facebook app installed and without.

Please, does someone knows the cause for this “bug”? this is the only thing that stops me now from publishing my app after many months of work.

Thanks again.

Yuval.

https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.2

This asks for a JSON object.  You are passing in a Lua table.  Perhaps what you want is:

fb_publish_params.properties = json.encode(fb_publish_properties2);

EDIT:  Looks like I missed the fact that you are doing it already.  Please file a bug report for this.  We will need a project that demonstrates the issue, complete with assets, build.settings and config.lua in a .zip file.

Thanks,

Rob

Ok, Rob, I’ll start working on pulling that specific code into a standalone project, see that it has the same effect and post the bug report.

There you go Rob, I’ve posted the bug with all the needed files, it’s Case 38586.

https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.2

This asks for a JSON object.  You are passing in a Lua table.  Perhaps what you want is:

fb_publish_params.properties = json.encode(fb_publish_properties2);

EDIT:  Looks like I missed the fact that you are doing it already.  Please file a bug report for this.  We will need a project that demonstrates the issue, complete with assets, build.settings and config.lua in a .zip file.

Thanks,

Rob

Ok, Rob, I’ll start working on pulling that specific code into a standalone project, see that it has the same effect and post the bug report.

There you go Rob, I’ve posted the bug with all the needed files, it’s Case 38586.