I have an app which allows users to invite their friends to the app by posting onto their Facebook wall. It worked last Friday (16/11/2012), and now suddenly it has stopped working.
Here is my request code:
callFacebook = function(event)
if ( "session" == event.type ) then
if fbCommand == SEND\_INVITE then
local attachment = {
name = "My App Test",
link = "http://www.mywebsite.com",
message = "My message string here",
picture = "http://mywebsite.com/picture.png",
actions = json.encode( { name="More", link="http://www.mywebsite.com"} )
}
print("inviting friend id: "..inviteID)
facebook.request( inviteID.."/feed", "GET", attachment )
end
elseif ( "request" == event.type ) then
if fbCommand == SEND\_INVITE then
native.showAlert("Success", "Invite sent!", {"OK"});
print("invite posted to Facebook")
end
end
end
I am printing out the ID number of the friend (inviteID) that is being invited, and that is working fine. The “request” event also triggers the native.showAlert and print functions, so if I didn’t look at the friends Facebook wall I would be under the impression that it had worked.
I have also tried using “me/feed” to post to my own wall, but that didn’t work either.
As I say, this worked a few days ago and has suddenly stopped working, seemingly for no reason. I have made no change to the Facebook code since then. I have tested it out on iOS and Android, and neither version actually post to the wall any more. I have also not updated my Corona build since last Friday, so the error cannot be due to a difference in builds.
Can someone else please verify if posting to walls is or isn’t working for them at the moment? [import]uid: 84115 topic_id: 33234 reply_id: 333234[/import]