-2

I'm trying to install the fb multi friend selector using javascript SDK following this link :

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

My question is : when i call the function :

function sendRequestViaMultiFriendSelector() { FB.ui({method: 'apprequests', message: 'My Great Request' }, requestCallback); }

Its open a pop up with all my friend and send a message but when i go to Facebook and open this notification it open a wrong url : http://mydomain.com/?request_ids=448697108486876&ref=notif&app_request_type=user_to_user

So i wanted to know if it was possible to open a friend selector pop up and send a private message or a simple message on the wall to all friend users ? There is an existing code for that ? or i must develop my own code with Javascript SDK ? Thanks you.

4

1 回答 1

0

是的,您可以使用发送对话框,如果您有一个多朋友选择器,然后回调将所选朋友的数组发送到另一个函数,那么您可以调用发送对话框,并将回调的用户放入“to”字段:

function sender(users_array) {    
  FB.ui({
      method: 'send',
      name: 'Name',
      to: users_array,
      link: '<Some_URL>',
  });
}

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

于 2012-08-10T15:49:25.167 回答