How to send Facebook apprequests / notifications using a custom post parameter?

I am currently developing a Facebook canvas app in which I allow users to invite others to use the app, which is pretty standard. For this, I use the FB.ui JavaScript SDK method.

FB.ui({
    method: 'apprequests',
    title: "Title",
    message: 'Custom Message',
    to: UserIDs
});

This user interface dialog is currently displayed. See this image (note the preview section with a standard prompt):

IjnZi.jpg

: USER_NAME sent you a APP_NAME request. , , , ( , !). Facebook, , , , . , ( !), , . , ( ):

Wut7g.jpg

, , . API , -. , , .

, - , .

+2
3

http://facebook.stackoverflow.com/questions/6297853/facebook-requests-dialog-not-showing-message-to-recepient, new_style_message.

   FB.ui({method:'apprequests',
      title:'Custom window title',
      to: [1,2,3],
      message:'the custom application message',
      new_style_message:true
   }, function (response) {;});

.

+1

, ( !), , .

, , " ", Facebook, .

0

, , Facebook - ().

.

Facebook docs:

"" . (, ) .

, :

function sendRequestToRecipients() {
        var user_ids = document.getElementsByName("user_ids")[0].value;
        FB.ui({method: 'apprequests',
          message: 'My Great Request',
          to: user_ids
        }, requestCallback);
      }

: https://developers.facebook.com/docs/reference/dialogs/requests/

0

All Articles