Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to invite friends to your app: Request or Message?
    primarykey
    data
    text
    <p>I've got this situation:</p> <ul> <li><p>TheSite is a website that uses Facebook Connect for authorization; its members' FB friend relations are also used to determine privileges on the site (content access, etc.). Thus there is a Facebook app that members must authorize to use the site.</p></li> <li><p>Alice and Bob are (Facebook) friends.</p></li> <li><p>Alice is a member of TheSite and has authorized the app; Bob is/has not.</p></li> <li><p>Alice wants to tell Bob about TheSite and encourage him to join.</p></li> </ul> <p>I've set this last bit up -- Alice inviting Bob -- with an apprequest dialog. It works (mostly -- see later), but I'm becoming uncertain that it's the right thing. The wording of the invitation message received by Bob -- "Alice sent you a request in TheSite" makes it sound like Bob is (supposed to be?) already a member of TheSite. Also, I haven't found a way to clear the request after Bob accepts it unless he actually becomes a member of TheSite -- I need the user's id to clear the request, but I can't get the user id until Bob's a member. I could save the request ID and clear it if Bob becomes a member, but, if he doesn't, the request is going to hang around forever, which seems wrong. There may also be issues about what happens if Charlie (another member of TheSite) also invites Bob somewhere along the line, but I haven't completely thought that through yet. I've found a few pages on the web offering fbml techniques that seem relevant, but I'm trying to stay away from those, given that fbml is going away.</p> <p>So what's the right thing here? Is this not what apprequests are meant for? Should I just have Alice send Bob a simple message pointing him at TheSite? Is there something else/better to use here? Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COYou can use the send dialog (https://developers.facebook.com/docs/reference/dialogs/send/) which will let Alice send Bob a link to TheSite with a personal message from her. It will be far more clear than the current apprequests which don't display the request message unless the user clicks on the 'Apps and Games' tab. As for deleting apprequests if the user doesn't authorize the application, this is how it's meant to be - the user will remove the request himself.
      singulars
    2. COThanks for the response, and my bad for taking so long to respond. Anyway: Two issues with using "send" for this: (1) I didn't say this in the original note, but I'd like to let Alice send invitations to all (or a selection of) her FB friends who are not members of theSite, which apprequests and the app_non_users filter handles quite nicely. (2) The "send" page you linked to says "...applications on Facebook should use Requests when ... inviting people to use an application, or sending messages to multiple people." Any further thoughts?
      singulars
    3. CO@JimMiller, For facebook 3.2 or above this link is applicable : http://stackoverflow.com/questions/14157784/can-we-invite-people-to-use-our-app-or-send-friend-request-from-the-app-via-face/16605625#16605625
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload