如何通过图形API使用Accessstoken发送消息facebook的朋友 [英] how send message facebook friend through graph api using Accessstoken
本文介绍了如何通过图形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(而不是您的用户)表达事件
这篇关于如何通过图形API使用Accessstoken发送消息facebook的朋友的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文