使用图表API发送到Facebook用户的墙上 [英] Posting to a wall of a facebook user using the graph api

查看:108
本文介绍了使用图表API发送到Facebook用户的墙上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Facebook应用程序开发的新功能,我试图使用 https://graph.facebook.com/me/feed?access_token=ACCESS_TOKEN&message=hello ,但这似乎没有工作。有什么想法在哪里我可能会出错?

i am new to facebook app development and i am trying to post a simple text on the wall of the user using the https://graph.facebook.com/me/feed?access_token=ACCESS_TOKEN&message=hello but this does not seem to be working..Any thoughts as to where i might be going wrong?

推荐答案

如果您只是调用您提到的URL,那将是一个GET请求。要将消息发布到用户的墙上,您必须使用POST方法。您可以在 Graph API Explorer 中进行测试 - 通过下拉菜单将方法更改为POST,然后单击添加一个字段,并使用name = message和value = your_message ...

If you’re just calling the URL you mentioned, that would be a GET request. To post a message to the user’s wall you have to use method POST. You can test it in the Graph API Explorer – change the method to POST via the dropdown, click „add a field" and use name=message and value=your_message …

这篇关于使用图表API发送到Facebook用户的墙上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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