开发者

Get Request IDs when user clicks "Send Request" on Facebook Request UI

开发者 https://www.devze.com 2023-03-22 06:21 出处:网络
The Facebook documentation for user-initiated App Request Dialogues says that FB.ui should return a csv list of request_ids that were sent out by the user when they click \"Send Request\"

The Facebook documentation for user-initiated App Request Dialogues says that FB.ui should return a csv list of request_ids that were sent out by the user when they click "Send Request"

I'm totally lost as to when and how to retrieve this list. Do you have to开发者_如何学JAVA bind an event to the "Send Request" button? How can you get back the Request IDs when a user sends out requests?

Thanks so much!


You get the list as soon as the send the requests. You can use ajax to send it to your server if you want:

FB.ui({
         'method':  'apprequests',
         'message': request_message
      }, 
      function(response){
        // response.request_ids contains comma separated list of ids.
      }
);
0

精彩评论

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