Facebook send dialog to multiple friends

The idea is that the user can request feedback on what they have done from several friends.

I have a friends selector that works great.

From here I get user IDs. Then I call the send dialog, and instead there are several recipients, there is only one. Does anyone know why?

FB.ui({ method: 'send', name: 'Test', to: formattedContacts, link: 'http://google.com' }); 

If I enter formattedContacts format, I get the following. (id deleted)

 ["11111", "222222"] 

The send dialog is displayed in order, but only the first users are displayed as the recipient.

Does anyone know how to open a dialog with multiple recipients?

+4
source share
2 answers

The Submit dialog box allows you to select one user automatically. The user who sees the dialog can add other users, but the application currently cannot do this.

From the Send dialog box :

to - A user ID or username to send the message to. After the dialog box appears, the user can specify additional users, Facebook groups and email addresses to which the message will be sent. Submitting content to a Facebook group will be sent to the group’s wall.

0
source

If you use FB js-sdk, you can specify multiple recipients, for example:

 FB.ui({ method : 'send', to : [12345, 99999, 54321], link : "http://google.com/" }, function(param) { console.log(param); }); 

But yes, pulling out the Submit dialog using a URL (instead of using FB.ui ()) will only accept one UID.

0
source

Source: https://habr.com/ru/post/1403048/


All Articles