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.