Looking at the docs for native social popups, it looks like this is a perfectly valid call (assuming the popup is available):
local options = { service = "facebook", message = "hi there!", listener = listener, image = { { filename = "world.jpg", baseDir = system.ResourceDirectory }, }, url = { "http://docs.coronalabs.com", } } native.showPopup("social", options)
The url property always seemed a bit…useless if I’m honest. It just added the url string to the main popup message field, so was no different to just appending the string to one supplied to the “message” property.
However we’ve hit upon a problem, perhaps someone can enlighten us if we are doing this incorrectly.
We were supplying a url which leads to our app on the appstores, but have received an email from Facebook telling us that this is not allowed:
We’ve noticed that your app is pre-filling content via Apple’s share dialog, which violates Platform Policy 2.3: Ensure that all content in the user message parameter is entered by the user. Don’t pre-fill. This includes posts, messages, comments, and captions.
I had previously looked into this and am 99% sure I had found information saying that this was ok (which I cannot find now).
At any rate, it means that both the “message” and “url” properties are totally redundant, as we cannot pass any info to them.
Am I misreading this somehow, or are those properties not useful for Facebook posts? I’m aware that they can be used for Twitter etc. However I’m concerned that it’s very easy to assume that these fields can be used for Facebook as well, when it violates Facebook’s terms.