FQL查询
SELECT name, online_presence IN ('active', 'idle') FROM user WHERE online_presence IN ('active', 'idle') AND uid in(SELECT uid2 from friend where uid1= me())
通过这个查询,我结交了朋友
请任何人告诉我如何向这些在线朋友发送消息。
FQL查询
SELECT name, online_presence IN ('active', 'idle') FROM user WHERE online_presence IN ('active', 'idle') AND uid in(SELECT uid2 from friend where uid1= me())
通过这个查询,我结交了朋友
请任何人告诉我如何向这些在线朋友发送消息。
方法一:
认为:
SELECT uid, name, online_presence FROM user WHERE online_presence IN ('active', 'idle') AND uid in(SELECT uid2 from friend where uid1= me())
你想分享一个链接“ https://www.youtube.com/watch?v=VM56POaEEX4 ”
https://www.youtube.com/facebook_redirect是您的应用 CANVAS_URL
完整的链接是:
方法二:
向他发送电子邮件。电子邮件地址的格式为USERNAME@facebook.com您可以通过 FQL 查询获取 USERNAME:
SELECT uid, username, online_presence FROM user WHERE online_presence IN ('active', 'idle') AND uid in(SELECT uid2 from friend where uid1= me())
请注意,有些用户没有用户名。此外,您不能发送空正文消息。
方法三: Jabber/XMPP服务 可以参考https://developers.facebook.com/docs/chat/。