Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function facebookListener(event)
- if (event.type == "session") then
- if (event.phase == "login") then
- sessionToken = event.token
- facebook.request( "me/invitable_friends")
- elseif (event.type == "request") then
- native.showAlert("Facebook listener", "request")
- if ( not event.isError ) then
- local responseJson = json.decode( event.response )
- native.showAlert("Me Request", responseJson)
- else
- native.showAlert("erro", "erro")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement