Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to invite friends to your app: Request or Message?
    text
    copied!<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>
 

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