0

Facebookのいいね(ユーザーが気に入ったページ)のリストを説明付きで取得するにはどうすればよいですか

オブジェクトを使用して/me/likesいますが、好きな説明が表示されません。「WHERE page_id in (LIST_OF_IDS)」で FQLを使用できることを理解しています。

1回のリクエストで取得する方法はありますか?

4

3 に答える 3

1

または、このようにGraph APIを使用します:USER_ID?fields=likes.fields(description)

于 2012-12-10T18:57:31.913 に答える
1

はい、これは次のクエリを使用して FQL 経由で実行できます。

SELECT name, description FROM page WHERE page_id IN (SELECT page_id FROM page_fan WHERE uid=me())

https://developers.facebook.com/tools/explorer?fql=SELECT%20name%2C%20description%20FROM%20page%20WHERE%20page_id%20IN%20(SELECT%20page_id%20FROM%20page_fan%20WHERE%20uid%3Dme( ))%0A

于 2012-12-10T16:33:07.787 に答える
1

Graph API で可能な場合は、FQL を使用しないでください。通常、Graph 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"
}, 
...
于 2012-12-10T19:16:31.387 に答える