使用图表API发送到Facebook用户的墙上 [英] Posting to a wall of a facebook user using the graph api
问题描述
我是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屋!