我正在使用Graph API編寫一個Facebook Web應用程序,以便自動發佈到頁面牆上。我是頁面管理員,並且已經爲要求manage_pages,offline_access,read_stream和publish_stream設置了應用權限。我的應用程序將像twitterfeed應用程序與不同的東西(我沒有RSS源作爲源)。網頁應用程序的頁面訪問令牌
對於第一步,我呼籲:
https://graph.facebook.com/oauth/access_token?client_id=".$app_id."&client_secret=".$app_secret."&grant_type=client_credentials
此調用返回的access_token我打電話:
https://graph.facebook.com/100344706779072?fields=access_token&access_token=". $access_token
在這裏,我有問題:如Facebook醫生說(https://developers.facebook.com/docs/reference/api/page/#page_access_tokens)我必須以這種方式獲得page_access_token,但是這個調用只返回頁面ID ..
所以我做錯了什麼?