Setting Personal Message in invite box for facebook application through api

Tag: facebook Author: ds624757499 Date: 2009-07-14

i have an application with the invite functionality which is working fine. Right now i have to manually enter personal message and click send to send the invitation.

But i want a custom message which should be set by api method. I have checked the code but it has parameters:

$params = array();
    $params['api_key'] = FB_API_KEY;
    $params['content'] = '<fb:req-choice url="'.FB_CANVAS_URL.'" label="Check out '.FB_APP_NAME.'"'; // Don't use htmlentities() or urlencode() here
    $params['type'] = $typeword;
    $params['action'] = FB_CANVAS_URL;
    $params['actiontext'] = $actionText;
    $params['invite'] = ($bInvitation ? 'true' : 'false');
    $params['rows'] = '5';
    $params['max'] = '10';
   // $params['exclude_ids'] = $excludeFriendsStr;
    $params['sig'] = $facebook->generate_sig($params, FB_SECRET);

Is there any method for the same?

Please guide me.

Other Answer1

A couple of things:

  1. you cannot send personal messages via the public api.
  2. you can send requests, although i don't suggest you use fbml like the above.
  3. you should use request 2.0, which is documented at https://developers.facebook.com/docs/reference/dialogs/requests/