我想發佈給我在Facebook上擁有的羣組。當我在瀏覽器中粘貼地址來添加消息時,它只是返回一個JSON與最後發佈的消息(不是* *成功*),並且不會發布消息。使用Facebook Graph API向羣組添加消息返回所有帖子(JSON格式)
URL是https://graph.facebook.com/MyGroupName/feed?message=Test&access_token=APP|ACCESSTOKEN
如果我刪除訪問令牌,它回覆"An access token is required to request this resource."
,所以它似乎並不像一個接入問題。我正在使用https://developers.facebook.com/docs/pages/publishing
編輯介紹的方法:如果我改變方法的帖子,我收到403禁止。
所以我的問題是,爲什麼不是我的消息張貼?
'message ='參數用於消息。如果我將方法更改爲POST,則獲得** 403 Forbidden **。我編輯了我的原始信息。 – Tiago
@Tiago抱歉,錯字 - 它當然是'method = POST',而不是消息。 – CBroe
您需要來自用戶的'publish_actions'和'user_managed_groups'權限,您有這些權限嗎? – CBroe