2

ねえ、私が持っている Facebook アプリのアイデアの FQL API をいじっていて、like テーブルが文書化されたオブジェクト型を返していないようです。ここに私の好きなものの出力があります

SELECT object_id, post_id, object_type FROM like WHERE user_id = me()

{
  "data": [
    {
      "object_id": "10151258431583394",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 478582878859930,
      "post_id": "",
      "object_type": "list"
    },
    {
      "object_id": 521644514513038,
      "post_id": "",
      "object_type": "list"
    },
    {
      "object_id": 106925839472986,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10101021654513450",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10101017009447200",
      "post_id": "",
      "object_type": "photo"
    },
    {
      "object_id": "10151245338443394",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 162988417181213,
      "post_id": "",
      "object_type": "list"
    },
    {
      "object_id": 439293976134330,
      "post_id": "",
      "object_type": "list"
    },
    {
      "object_id": 440364829332399,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151229280723394",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 489203737786963,
      "post_id": "",
      "object_type": "list"
    },
    {
      "object_id": "10152125564767619",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151113526476775",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151113525441775",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151113524916775",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151113523716775",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 123390361144776,
      "post_id": "",
      "object_type": "list"
    },
    {
      "object_id": "10151199315428394",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 278542695598345,
      "post_id": "",
      "object_type": "list"
    },
    {
      "object_id": 425466477503260,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 531362840223562,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 531362946890218,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 517081921654425,
      "post_id": "",
      "object_type": "list"
    },
    {
      "object_id": "10151184643108394",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 285512984897612,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 284572424991668,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10152126582670161",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151172644678394",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10100959925933020",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 170144483122267,
      "post_id": "",
      "object_type": "list"
    },
    {
      "object_id": "10152100222280161",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335741896516584,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151216733207457",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10150966158886775",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 357351974342058,
      "post_id": "",
      "object_type": "list"
    },
    {
      "object_id": "10152073370825161",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 337226756372190,
      "post_id": "",
      "object_type": "list"
    },
    {
      "object_id": "10151044156886775",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 122273294554916,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10152061553435161",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151149031423896",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10152074656495188",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335744249849682,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335744153183025,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335743509849756,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335743463183094,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335743403183100,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335743376516436,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335743259849781,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335743139849793,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335742603183180,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335742569849850,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335742419849865,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335742323183208,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335742226516551,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335742213183219,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335742169849890,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 335742033183237,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10101326761860672",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151035255316775",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10152047005670511",
      "post_id": "",
      "object_type": "photo"
    },
    {
      "object_id": "10151194367147619",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151111702663394",
      "post_id": "",
      "object_type": "photo"
    },
    {
      "object_id": 732497948354,
      "post_id": "",
      "object_type": "photo"
    },
    {
      "object_id": "10152002641675161",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 390781734321391,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151012309836775",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151185665687317",
      "post_id": "",
      "object_type": "photo"
    },
    {
      "object_id": "10152014894905188",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151161548307619",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151161549777619",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151161552387619",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151118986026775",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": 191434787659630,
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151003723472163",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10100932691640760",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10100253964691241",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10100253951333011",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151163103492619",
      "post_id": "",
      "object_type": "profile"
    },
    {
      "object_id": "10151161573682619",
      "post_id": "",
      "object_type": "profile"
    }
  ]
}

ご覧のとおり、ほとんどのオブジェクト タイプはプロファイルまたはリストであり、ほとんどのプロファイル オブジェクト タイプをクエリすると、「サポートされていない get リクエスト」が返されます。例外。

これらのオブジェクトに関する詳細情報を取得するにはどうすればよいですか? 写真、アルバム、イベント、グループ、メモ、リンク、ビデオ、アプリケーション、ステータス、チェックイン、レビュー、コメント、投稿タイプがないのはなぜですか?

これが意図したとおりに機能していないか、機能が変更されているようですが、ドキュメントは更新されていません。

4

1 に答える 1

1

いくつかの方法。

後続のクエリを発行して、気に入った各オブジェクトに関する詳細情報を取得できます。例えば:

select src_big from photo where object_id="10151287927181749"

ただし、Graph API とその「フィールド拡張」を使用して、接続を追跡し、接続されたオブジェクトに関するデータを 1 つのクエリで取得することを好みます。例えば:

https://graph.facebook.com/me?fields=likes.fields(リンク、いいね、カバー)

https://graph.facebook.com/USER_ID?fields=likes.fields(リンク、いいね、カバー)

Explorer を使用したデモ

このクエリは、現在のユーザーのすべてのいいね! を取得し、各いいね! オブジェクトのリンク、いいね! 数、カバー画像の URL を返します

接続を追跡し、接続されたオブジェクトのフィールドを返すクエリを作成するには、フィールド拡張ドキュメントを参照してください。

https://developers.facebook.com/docs/reference/api/field_expansion/

于 2012-11-28T23:08:08.027 に答える