2014-01-07 29 views
-1

我有兩個例子:如何從頁面的Facebook API的圖形信息

例1: https://www.facebook.com/cocacola

 I get "likes","description" at https://graph.facebook.com/cocacola/ 

    It work. 

例2: https://www.facebook.com/selectivefitness 我在https://graph.facebook.com/selectivefitness/

爲什麼例子得到錯誤2不工作?我如何得到「喜歡」「描述」https://www.facebook.com/selectivefitness

+0

http://stackoverflow.com/questions/13739609/unsupported-get-request-in-facebook-graph-api – durrrutti

+0

[Graph API返回'false'或'Unsupported get request'訪問公共Facebook頁面]的可能重複(http://stackoverflow.com/questions/6843796/graph-api-returns-false-or-unsupported-get-request-accessing-public-facebook) – Igy

回答

1

這是因爲頁面上的限制(國家限制或年齡限制)。你只需要一個有效的Access Token來修復它。

嘗試使用該訪問令牌向URL發送請求。例如:

https://graph.facebook.com/selectivefitness?access_token={Access_Token} 

您可以隨時利用Graph API Explorer來測試您的請求和查詢。

相關問題