freshplanet / ANE-Facebook

Air Native Extension (iOS and Android) for the Facebook mobile SDK
Apache License 2.0
221 stars 123 forks source link

Inviting friends via 'apprequests' dialog #141

Closed mateo-kozomara closed 10 years ago

mateo-kozomara commented 10 years ago

I am having trouble sending invitations to my Facebook app with the dialog method.

This is how i am trying to send the invitation:

_facebook.dialog('apprequests',{"title":"AppTitle","message":"Some message"}, onInviteDialogFinished, true);

before that i got the permissions like this:

First i got the read permissions: _facebook.openSessionWithReadPermissions([], onSessionOpenResult); then publish permissions: _facebook.openSessionWithPublishPermissions(["publish_actions","read_friendlists","read_stream"], onOpenedPublishSessionAndShare);

Sharing with the dialog method works fine, login works fine, but inviting doesn't for some reason.

The dialog DOES get displayed, and i am able to select friends and send an invitation, but the invitation doesn't appear in any of my friends feed.

mateo-kozomara commented 10 years ago

to answer my own question, the problem was with the permissions. Facebook first has to approve your Publish flags

daksamedia commented 8 years ago

Hi @mateo-kozomara, I got an issue when I tried AppsRequests. The dialog won't appeared. And I have some permission that might be required, such as : "Friend list, publish, public_profile, email, etc" So, could you tell me how to make a apprequests in a proper way?

Thank you,

Best Regards