如何通过图形API使用Accessstoken发送消息facebook的朋友

如何通过图形API使用Accessstoken发送消息facebook的朋友

问题描述:

任何人都可以帮助我使用图形API发送消息给Facebook的朋友。

Can anyone help me to send message to facebook friends using graph api.

我尝试过

$response = $facebook->call_api("/me/feed", "post", "to=john","message=You have a Test message");

它不工作。
我已经在我手中使用了这个用户名,只是发送过程感到困惑。

It's not working. I have the accesstoken of the user in my hand.only I am confused on sending process.

不能使用Facebook应用程序发送消息。你以前能够做到这一点,但是(可预测的)大量的滥用导致了这种能力的撤销。

You can't send messages using a Facebook application. You used to be able to do that, but the (predictable?) colossal amount of abuse led to the revocation of this ability.

提供Alice,您的用户已经给出您需要扩展权限,您有以下选项:

Provided Alice, your user, has given you the necessary extended permissions, you have the following options:


  • 发送给爱丽丝的墙壁

  • 发送电子邮件至Alice

  • 创建活动代表Alice


    • 邀请Bob(而不是您的用户)表达事件