使用开放图谱 API,有没有办法确定用户的哪些朋友拥有 @facebook.com 电子邮件地址设置?
标题基本上概括了这一点。在获取 Facebook 连接用户的好友列表后,我正在寻找一种方法来确定该好友是否正在通过 @facebook.com 电子邮件使用新的消息传递系统。我正在使用 javascript SDK。
同样,有没有办法用 Facebook 的新发送按钮预先填充“收件人:”列表?
The title basically sums it up. After fetching the list of friends for a facebook-connected user, I'm looking for a way to determine if the friend is using the new messaging system with the @facebook.com email. I'm using the javascript SDK.
Along the same lines, is there a way to pre-populate the To: list with Facebook's new Send button?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
他们没有提供,但是您可以在此处
目前还不能通过 API 向用户/用户好友发送消息。它包含在路线图中,他们将在未来几天内提供向用户的收件箱发送消息的功能。
但是可以通过调用这样的 URL 来手动方法 http://www.facebook .com/inbox/?compose&id=516888778
我知道这是您不想使用的东西,但这就是您现在所能做的。
They are not providing it Yet as you can see the user profile info they are providing here
And no for now you can't send message to user/user friends through API. Its included in there road map they will provide the feature to send message to user's inbox in upcoming days.
But There can be a manual method by calling a URL like this http://www.facebook.com/inbox/?compose&id=516888778
I know that is something you don't wanna use but this is all you can do right now.
这些 FQL 表可能有用:
http://developers.facebook.com/docs/reference /fql/unified_message/
在此处检查其他 unified_ 表:
http ://developers.facebook.com/docs/reference/fql
检查他们的注释:
它说仅适用于注册的开发者帐户,并且处于测试模式。但是您可能想要查询此表以检查哪一个实现了新收件箱,否则该表将返回 null 或不返回任何数据。但是,使用此功能需要 read_mailbox 权限。
如果您注意到用户的 @facebook.com 电子邮件正在使用他们的用户名 ([电子邮件受保护])。如果您能够获取当前登录用户的朋友的用户名,那么您可能需要向每个人发送一封电子邮件并检查哪些未发送。
These FQL tables might be useful:
http://developers.facebook.com/docs/reference/fql/unified_message/
check other unified_ tables here:
http://developers.facebook.com/docs/reference/fql
Check their note:
It says for registered developer accounts only and is in BETA mode. But you may want to query against this table to check which one got his new inbox implemented, else the table will return null or no data. However, using this needs read_mailbox permission.
If you will notice the @facebook.com email of users are using their usernames ([email protected]). If you are able to get the usernames of the currently-logged-in user's friends, then you may want to send each one an email and check which did not send through.
不需要。您可以获取用户自己的电子邮件地址(使用
email
许可),但不是他朋友的许可。这是设计使然,而且是一件好事(即使我的朋友们渴望给出他们的数据,他们也没有必要给出我的数据)No. You can get the user's own e-mail address (with the
email
permission), but not those of hir friends. This is By Design, and a Good Thing (even if my friends are eager to give out their data, they have no business to hand out mine)他们确实使用某种格式,即 Facebook ID,或者他们为自己设置的 Facebook 绰号。这不会让你检查任何东西,但这是朝这个方向迈出的一步。您可能可以请求一项权限,让您可以通过消息与某人的朋友互动,例如发送消息和墙贴,但我不能说。
此外,如果您请求某人的电子邮件,他们可以选择退出,或提供 FB 代理地址,因此这并不能保证。
They do use a certain format, which is either the FaceBook ID, or the FaceBook moniker they setup for themselves. That won't let you check anything, but it's a step in that direction. There may be a permission you can request which will let you interact with a person's friends via messaging, like with sending messages and wall posts, but I can't say.
Also, if you request a person's email, they can opt out, or offer a FB proxy address, so it's not a guarantee.