我正在嘗試使用Python搜索Facebook Graph頁面。當我使用圖形API瀏覽器在Facebook上的網頁,我進入:使用Python進行Facebook搜索
search?q=aquafresh&type=page
我得到我正在尋找的結果。當我做同樣在Python(安裝PythonForFacebook模塊後):
post = graph.get_object("search?q=aquafresh&type=post")
我得到:
facebook.GraphAPIError: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
我相信我正確地與令牌識別,我使用的是相同的一個作爲網頁並在網頁上運行。我也可以在Python中進行基本查詢(例如,查詢「我」工作正常)
遺憾地說,但我認爲,Facebook已經棄用這個版本。 –