I’m using this to send an invitation from a user to his friend with my app, and asking for permission of public actions when they read news on my app:
function xlfb_friendInvite() {
FB.ui({method: 'apprequests',
message: 'great app http://apps.facebook.com/xaluancom enjoin w me..',
},
function(receiverUserIds) {
console.log("IDS : " + receiverUserIds.request_ids);
});
//http://developers.facebook.com/docs/reference/dialogs/requests/
}
But then I found out that the request did not come with external permission. When invited, the user received notice and accepted it, but there are no permissions along, so the app can not work.
At last I found a simple solution. Go to
Settings > Auth Dialoguein my FaceBook app center, then click on “edit these permissions” then type in “public_stream, email“.Every time the user receives an invite from the app they will see the window asking for permission when authorizing the application.
I also noticed that “public_actions” currently are not supported in that setup. It may be that the Facebook team forgot to put an option for it there.
Anyway,
public_actionsis covered bypublic_stream, so I’m not confused at all.Thanks go to the Open graph team from FaceBook.