Graph 呼び出しを行うとhttps://graph.facebook.com/me/home、フィード上のページ化された一連の投稿が返されます。最近、「John Doe がページを気に入った」などを表しているように見えるアイテムを取得し始めました。それらはリンクとしてマークされていますが、FB にアイテムを要求すると、ステータス ポストが返されます。個人データをスクラブした例を次に示します。
{
application = {
id = 2530096808;
name = Pages;
};
comments = {
count = 0;
};
"created_time" = "2011-08-28T18:54:09+0000";
description = "some text";
from = {
id = xxxxxx;
name = "John Doe";
};
icon = "https://s-static.ak.facebook.com/rsrc.php/v1/yN/r/xCxxxxxxQO.gif";
id = "xxxxxxx_xxxxxxxxx";
link = "http://www.facebook.com/pages/Ted.Smith/xxxxxxxx";
name = "(name of page)";
picture = "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/276841_xxxxxxxxxx_xxxxx_q.jpg";
type = link;
"updated_time" = "2011-08-28T18:54:09+0000";
}
ただし、ID を使用してこの投稿を要求すると、次のようになります。
{
"id": "xxxxx_xxxxx",
"from": {
"name": "John Doe",
"id": "xxxxxxx"
},
"type": "status",
"created_time": "2011-08-28T18:54:09+0000",
"updated_time": "2011-08-28T18:54:09+0000",
"comments": {
"count": 0
}
}
FBを見ていると、「ジョンが(ページの名前)が好き」という投稿がありました。
これらをどのように識別できますか?最初にリンクとして表示され、次にステータスの更新として表示されるのはなぜですか? この「アクティビティ」情報のドキュメントはありますか? 他にも「ジョン・ドウらがプロフィール画像を変更した」などの例があります。それらを処理する方法がわかるまで、これらを削除するために、非常に愚かで壊れやすいフィルタリングコードを実行する必要があります。
助けていただければ幸いです。