有可能知道用户使用Facebook发送对话框发送消息的哪些朋友? [英] Is it possible to know to which friends the user sent a message using the Facebook send dialog?
问题描述
据我所知,Facebook发送对话框没有任何回调参数(如feed对话框)。但是,我想能够存储该消息的收件人,以便能够控制其上的访问。这是可能的吗?
As far as I know, the Facebook send dialog does not have any callback parameters (like the feed dialog). But, I would like to be able to store the recipients of that message in order to be able to control the access on it. Is that possible?
推荐答案
您可以通过javascript在您的页面上订阅一个回调函数,其中有发送对话框
请参阅: http://developers.facebook.com/docs/reference/plugins/send / 和 http://developers.facebook.com/ docs / reference / javascript / FB.Event.subscribe /
You can subscribe a call-back function via javascript on your page that has the send dialog See: http://developers.facebook.com/docs/reference/plugins/send/ and http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/
message.send - 当用户使用发送按钮。传入回调函数的响应对象包含
发送的URL:
message.send - fired when the user sends a message using the send button. The response object passed into the callback function contains the URL which was sent:
因此,根据文档,您将只获取URL共享,因此如果您在页面上有多个发送按钮,则可以确定哪一个已被点击。
So according to the documentation you will only get the URL shared, so if you had multiple Send buttons on a page, you can tell which one was clicked.
出于安全和隐私的原因,您无法获取该邮件的收件人。
For security and privacy reasons you cannot get the recipients of that message.
这篇关于有可能知道用户使用Facebook发送对话框发送消息的哪些朋友?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!