2012-12-10 36 views
0

我怎樣才能獲得Facebook的名單喜歡用/me/likes物體IM描述如何獲取Facebook的喜歡和描述

(即用戶喜歡的網頁),但它不會給我喜歡的描述。我知道我可以使用FQL 「WHERE page_id in(LIST_OF_IDS)」 - 或單獨請求每個類似的請求

有沒有什麼方法可以用一個請求來獲取它?

回答

1

或者使用圖形API這樣:USER_ID?fields=likes.fields(description)

1

如果可以使用Graph API,則不要使用FQL。該圖形API,通常是更快,更簡單:

me/likes?fields=id,name,description 

結果(從我的賬戶):

"data": [ 
{ 
    "id": "244993732224805", 
    "name": "Jón Gnarr", 
    "created_time": "2012-12-06T00:35:43+0000" 
}, 
{ 
    "id": "161086703983", 
    "name": "Design Shack", 
    "description": "We only offer the cream of great design, filtering through lots of the redesigns that occur every day across the Internet, and cataloguing the greatest projects out there - perfect for getting that spark of creativity going again.\n\t\nRegular articles will teach you new techniques for creating your own designs, and daily community news ensures that you're up to date with the latest developments elsewhere.\n\t\nIf you want to be updated every time a new design or tutorial is added, you can subscribe:\n\t\nDesign Shack RSS Feed\nhttp://feeds.feedburner.com/designshack\n\nTwitter\nhttp://twitter.com/designshack", 
    "created_time": "2012-12-04T14:40:08+0000" 
}, 
{ 
    "id": "274797542535942", 
    "name": "Chasing Aurora", 
    "description": "Chasing Aurora is an explorative 2D aerial action game about the dream of flight.\n\nDrop from the cliff and ride the wind from peak to peak. Fight for the beacon of light with up to three friends in the hostile environment of the Alps.", 
    "created_time": "2012-12-04T12:07:13+0000" 
}, 
... 
相關問題