So it seems Facebook have once again changed the rules and it means problems for us corona developers.
I am creating an app whereby the user can post to Facebook. Last week I submitted my app for approval by Facebook for their publish_actions permission. I did the very same thing last month with a different app and it was approved.
Reply today: Unapproved. Reason: Words in the user message field must be composed by the user and can’t be pre-filled by the app, even if the user can edit or delete the words. See platform policy 2.3 here.
A video describing the situation regarding prefilling the message parameter can be foundhere.
This is of major concern to us as we typically use the message parameter to say something like; “I just scored 12000 on level 1 of my game.”
What Facebook are saying is that it must now be solely filled in by the user.
This raises a big issue.
How do we get the user to now type in the message prior to posting?
Instead of using something like:
[lua]
local attachment = {
message = “Corona Icon file”,
source = {
baseDir=system.DocumentsDirectory,
filename=“coronaIcon.png”,
type=“image”
}
}
facebook.request( “me/photos”, “POST”, attachment )
[/lua]
We will now have to use a native.newTextField which as we all know has major issues with font sizing across various devices, then pass the textfield text to the message parameter.
And Corona will have to now update all their tutorials and code to reflect this move by Facebook.