facebook api curl Status message解决办法

WBOY
發布: 2016-06-13 13:45:37
原創
1282 人瀏覽過

facebook api curl Status message
这是facebook 的api 
http://developers.facebook.com/docs/reference/api/status/


出版

Requires the publish_stream permission.

To publish a status update, POST the message field to the feed/wall of the user whose status you want to update, i.e., http://graph.facebook.com/USER_ID/feed.
curl -F 'access_token=...' \
  -F 'message=This is my status update' \
  https://graph.facebook.com/me/feed

我通过代理服务器发的


curl -x 192.168.XX.XXX:XXX
  -F 'access_token=2227470867|2.TvtbCtLU....'
  -F 'message=This is my status update'
  https://graph.facebook.com/me/feed

怎么不行呢?

------解决方案--------------------
这个方法需要publish_stream的权限。可能的token值获得的时候并没有获得这个权限。

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!