I have just upgraded to facebook v4 plugin. On iOS the app logs into facebook ok, but “invite friends” (showDialog request) does not work, the invite box does not come up, instead facebook is displayed for one second then control immediately returns to app.
this is the code;
local fbListener = function( event )
if ( “session” == event.type ) then
if ( “login” == event.phase ) then
facebook.showDialog( “requests”, { message=“You should download this game!” } )
end
elseif ( “dialog” == event.type ) then
print( event.response )
end
end
function inviteFriends()
facebook.login( fbListener )
return true
end
On Android it all works perfectly. I have a feeling it might be how I set things up in Facebook, but I just can’t find the problem.