Hi guys,
I’m trying to implement a share function into my app but can’t seem to figure it out. I’m using Facebook.v4 atm. First of all, when I login to facebook, the login screen says that “this app does not allow to post”, or something like that. And when I try to post something, the message isn’t posted. Like, the function is called, but nothing happened.
This is my code:
function functions.postFacebook() facebook.request( "me/feed", "POST", { message="Hello Facebook" } ) end function functions.loginFacebook(event) facebook.setFBConnectListener(facebookListener) if ( facebook.isActive ) then accessTokenFacebook = facebook.getCurrentAccessToken() if ( accessTokenFacebook ) then functions.postFacebook() --native.showAlert( "Facebook user already logged in", "User's access token: " .. accessTokenFacebook.token ) else facebook.login() functions.postFacebook() end end return true end
Everything is setup on the facebook dashboard so that should not be a problem, I think, I hope…
Kind regards
Bram
