如何使用 Accessstoken 通过图形 API 向 Facebook 好友发送消息 [英] how send message facebook friend through graph api using Accessstoken

查看:29
本文介绍了如何使用 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:

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

    这篇关于如何使用 Accessstoken 通过图形 API 向 Facebook 好友发送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆