質問

After loading FB UI this is my Code:

<div class="fb-send" data-href="https://www.gmx.de" data-colorscheme="light"></div>

Now I want to add 2 different users (prefilled in the dialog). There is code like this:

 FB.ui({
    method: "send",
    link: "http://www.google.com/",
    to: ["zuck","dmp"]
  }, 
  function(response) { alert(response); }
 );

But how can I connect the Facebook-Button with this code?!

役に立ちましたか?

解決

You are using Send Button and Send Dialog both- which isnt required! Both do almost the same thing.

I think you thought that you could pre-fill the recipients using the to parameter - that's right BUT you cannot add more than one recipient. You can use to with one user-id only.

On click of a button / html element- call FB.ui method, this will open the send dialog.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top