Your Ad Here

Posted By

perymimon on 02/07/12


Tagged

game social fb


Versions (?)

FB - Match Making


 / Published in: JavaScript
 

URL: http://developers.facebook.com/docs/guides/games/

Keep in mind that requests can be sent to any player that has already installed the game; a friend relationship does not have to be in place. If a user is looking to start a new game but none of their friends are active or available, the game can send a request to an existing player that is not necessarily friend with the current user. This allows the developer to increase the pool of their match making system outside the player’s social graph and works especially well for asynchronous games. You can simply use the id of the user when invoking the Request dialog like below.

  1. function sendRequestToRecipients() {
  2. FB.ui({method: 'apprequests',
  3. message: 'My Great Request',
  4. to: '499802820'
  5. }, requestCallback);
  6. }

Report this snippet  

You need to login to post a comment.