开发者

What's the Facebook Javascript SDK equivalent of fb:req-choice?

开发者 https://www.devze.com 2023-04-12 11:49 出处:网络
I can post an apprequest from my site onto selected friends\' walls with a call to FB.ui. I\'m doing this to replace an old call that goes via some 开发者_JAVA百科FBML, namely fb:multi-friend-selector

I can post an apprequest from my site onto selected friends' walls with a call to FB.ui. I'm doing this to replace an old call that goes via some 开发者_JAVA百科FBML, namely fb:multi-friend-selector. What isn't clear from the documentation is how to do the equivalent of fb:req-choice using the new API?


I think you could use this from the JS SDK:

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

精彩评论

暂无评论...
验证码 换一张
取 消