-1

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())

通过这个查询,我结交了朋友

请任何人告诉我如何向这些在线朋友发送消息。

4

1 回答 1

0

方法一:

认为:

  • 您的应用程序 ID 是“87741124305”
  • “4”是您从 FQL 查询中获得的好友 uid 之一:

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.facebook.com/dialog/send?app_id=87741124305&to=4&link=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVM56POaEEX4%26feature%3Dshare&redirect_uri=https%3A%2F%2Fwww。 youtube.com%2Ffacebook_redirect

在此处输入图像描述

方法二:

向他发送电子邮件。电子邮件地址的格式为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/

于 2013-05-29T12:02:42.433 回答