简体   繁体   English

请求对话框-允许用户选择要向其发送邀请的朋友

[英]Request dialog -allowing user to select the friends to whom he has to send invite

I'm using javascript request dialog to send app invite to friends. 我正在使用javascript请求对话框将应用邀请发送给朋友。

when i send invite to b, I should not be able to send invitation to him again. 当我向b发送邀请时,我应该无法再次向他发送邀请。 Is there any way to show only friends to whom I've not sent invite in request dialog or is there any other way to do this? 有什么方法可以只在请求对话框中显示未向其发送邀请的朋友,或者有其他方法可以做到这一点?

Considering you're using this function , there's to things that can help you : 考虑到您正在使用此功能 ,有些事情可以为您提供帮助:

  • The parameter filters , which you can turn to app_non_users for example, allowing you to invite only people who are not using your application. 参数过滤器 ,例如,您可以将其转到app_non_users ,从而仅邀请不使用您的应用程序的人。 You can also pass a custom filter with all the facebook ids of people you can invite. 您还可以通过自定义过滤器,其中包含可以邀请的所有人的所有Facebook ID
  • And, maybe more useful for what you need, the parameter exclude_ids to which you can pass the array of IDs you don't want to be able to send requests. 而且,对于您所需的参数,也许更有用的是参数exclude_ids ,可以将您不希望发送的ID数组传递给该参数。 So, when you send requests, you store information about it, like facebook ids of the people you sent it to, then you just pass a list of these ids to your function. 因此,在发送请求时,您将存储有关请求的信息,例如发送请求的人的Facebook ID ,然后将这些ID的列表传递给函数。

But, keep in mind that someone can decline your request, and nothing is sent to you, you have to check it yourself ! 但是,请记住,有人可以拒绝您的请求,并且没有任何内容发送给您,您必须自己检查它!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Facebook中自定义邀请朋友对话(发送生命)并选择所有朋友的能力? - How to customize Invite Friends Dialog (send lives) in Facebook and make select all friends ability? Facebook邀请朋友对话高度问题 - Facebook invite friends dialog height issue 与Facebook邀请朋友对话时遇到问题 - having an issue with invite friends dialog with facebook 在facebook用户发送邀请请求后调用ajax调用 - Call ajax call after facebook user send invite request 如果用户未登录,“邀请朋友”弹出窗口会出现问题 - Invite friends popup is struggling, if the user is not logged in 仅当用户选择特定单选按钮时,才显示确认/对话框并在该对话框中发送 POST 请求 - Show a confirmation/dialog and send POST request within that dialog box only if the user select specific radio button 页面中的Facebook邀请朋友对话框,而不是弹出窗口 - Facebook Invite Friends Dialog box in a page instead of a pop up Facebook连接显示邀请朋友对话框并在完成时关闭 - Facebook connect displaying invite friends dialog and closing on completion 发送对话框给多个硬编码的朋友 - Send dialog to multiple hardcoded friends Facebook邀请朋友javascript API仅在移动设备上发送请求 - facebook invite friends javascript api sends request only on mobile
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM