0

FQL で特定の日付以降にフレンドとして追加されたフレンドのリストを取得することは可能ですか?

友達のリストを取得できます。しかし、「友達追加日」などの情報がもっと必要です...

あなたの考えや解決策を教えてください。

ありがとうございました。

4

1 に答える 1

0

FQLを使って新しく追加された友達を取得しようとしました。しかし、成功しませんでした。また、CBroeのコメントによると、FQLを使用して直接アクセスすることはできません。

ストリームテーブルを使用してこの問題を解決しました

SELECT post_id, viewer_id, app_id, source_id, updated_time, created_time, filter_key, attribution, actor_id, target_id, message, app_data, action_links, attachment, impressions, comments, likes, place, privacy, permalink, xid, tagged_ids, message_tags, description, description_tags, type FROM stream WHERE source_id  = me() and created_time > 1300904400

応答Jsonは次のとおりです。

{
    "data": [
        {
.....
            "post_id": "10003422343219_2395933333495184",
            "viewer_id": 10034243333333519,
            "app_id": null,
            "tagged_ids": [],
            "message_tags": [],
            **"description": "Owner is now friends with Friend1 and Friend2.",**
            "description_tags": {
                "0": [
                    {
                        "id": 100003344233319,
                        "name": "Owner Name",
                        "offset": 0,
                        "length": 14,
                        "type": "user"
                    }
                ],
                "35": [
                    {
                        "id": 10000133333697,
                        "name": "Friend Name1",
                        "offset": 35,
                        "length": 10,
                        "type": "user"
                    }
                ],
                "50": [
                    {
                        "id": 10000444443615,
                        "name": "Frined Name2",
                        "offset": 50,
                        "length": 13,
                        "type": "user"
                    }
                ]
            },
            "type": null
        }
    ]
}

説明メッセージを使用することで、新しく作成された友達を識別できます。'description_tags'は、新しく追加された友達リストで構成されます。

于 2012-08-03T05:12:06.767 に答える