是否可以知道用户使用 Facebook 发送对话框向哪些朋友发送了消息? [英] Is it possible to know to which friends the user sent a message using the Facebook send dialog?

查看:16
本文介绍了是否可以知道用户使用 Facebook 发送对话框向哪些朋友发送了消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,Facebook 发送对话框没有任何回调参数(如提要对话框).但是,我希望能够存储该消息的收件人,以便能够控制对其的访问.这可能吗?

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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆