简体   繁体   中英

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在用户的墙上张贴一个简单的文本,但这似乎不是工作..任何关于我可能会出错的想法?

  1. Check if you have permissions to post from the app.
  2. Add app_id to your call.

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 …

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM