如何使用 Accessstoken 通过图形 API 向 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");

它不起作用.我手上有用户的accesstoken.只是我对发送过程感到困惑.

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:

  • 代表爱丽丝在墙上发帖
  • 向爱丽丝发送电子邮件
  • 代表爱丽丝创建事件
    • 邀请鲍勃(不是您的用户)参加上述活动