问题描述
我需要使用Facebook的请求对话框来让用户邀请他们的朋友。我有疑问请求对话框的数据
paramenter。
I need to use Facebook's Request Dialog to let user invite their friends. I have a doubt regarding the data
paramenter of the request dialog.
数据:可选,您可以通过其他数据进行跟踪。这将被存储为创建的请求对象的一部分。最大长度为255个字符。
data: Optional, additional data you may pass for tracking. This will be stored as part of the request objects created. The maximum length is 255 characters.
如果我将此参数设置为1234,那么当用户授权应用程序点击时,如何获取此值(1234)在邀请函中的链接?
If I set this paramenter with an id like 1234, How can I get back this value (1234) when the user authorize the application clicking on the link in the invitation message?
谢谢!
推荐答案
当用户单击请求并获取到您的页面(使用request_ids参数)时,您应该获取请求的数据。
When the user clicks the requests and gets to your page (with the "request_ids" parameter) you should then get the data for the requests.
获取请求来自:
您将获得一个请求列表,每个数据(如果发送)。
使用request_ids参数中传递给您的id来获取您需要的请求,并在其中找到应该保存与请求一起发送的数据的data字段(在您的
You will get a list of the requests and the data for each one (if such was sent).Get the request that you need, using the id that was passed to you in the request_ids parameter, and in it you should find the "data" field which should hold the data you sent along with the request (1234 in your example).
详细了解。
这篇关于如何获取Request Dialog的数据参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!