你好,我想使用facebook圖形API v2.5獲取一些事件信息,但我不斷收到錯誤消息facebook.GraphAPIError:未知路徑組件:/ 144259682284406。它的工作原理沒有字段時,我不但是指定V2.5我需要使用V2.5,以獲得必要的字段使用facebook圖形API獲取事件數據的問題v2.5
/v2.5/144259682284406?fields=events{name,id,timezone,start_time,end_time,picture,description,category,type,attending_count,interested_count,declined_count} Blockquote
不清楚你在問什麼;完全相同的請求[在Graph API Explorer中正常工作](https://developers.facebook.com/tools/explorer?method=GET&path=144259682284406%3Ffields%3Devents%7Bname%2Cid%2Ctimezone%2Cstart_time%2Cend_time%2Cpicture%2Cdescription %2Ccategory%2Ctype%2Cattending_count%2Cinterested_count%2Cdeclined_count%7D&version = v2.5) – CBroe
等等https://graph.facebook.com/v2.5/144259682284406?fields=events%7Bname%2Cid%2Ctimezone%2Cstart_time%2Cend_time %2C圖片%2C描述%2C類別%2C類型%2Cattending_count%2Cinterested_count%2Cdeclined_count%7D&access_token = ...直接在瀏覽器中調用時。 – CBroe
@CBroe我使用python並調用graph.get_object方法。 Python代碼:「searchstring =(」/v2.5/144259682284406?fields=events{name,id,timezone,start_time,end_time,picture,description,categor y,type,attending_count,interested_count,declined_count}「)post = graph .get_object(searchstring)「 – MattP