Hi Rob,
First I login to Facebook with
facebook.login(appID, listener, {“publish_actions”});
then as soon as I’m logged in successfully, I try to post a message:
facebook.request( “me/feed”, “POST”, postMsg )
Hi Rob,
First I login to Facebook with
facebook.login(appID, listener, {“publish_actions”});
then as soon as I’m logged in successfully, I try to post a message:
facebook.request( “me/feed”, “POST”, postMsg )
You have to call facebook.login(appID, listener) with no other parameters when the app starts. Later when you need to post, you then all it again asking for publish_actions. When that login triggers successfully (i.e. you were granted the permissions), then you can call facebook.request().
Yes, this seems hackish and insane, but it’s the way Facebook wants it done. They want you to delay asking for permissions until the user needs them (better engagement).
Thanks, Rob. I will try that.