8:39 PM on 2012年2月17日
Facebook, PHP
// Graph APIで取得したフィードをPHP var_dumpで出力
// "..." の部分は内容を省略
//// type = "status" ////
object(stdClass)#2 (2) {
["data"]=>array(7) {
[0]=>object(stdClass)#3 (9) {
["id"]=>string(31) "..."
["from"]=>object(stdClass)#4 (2) {
["name"]=>string(29) "..."
["id"]=>string(15) "..."
}
["message"]=>string(12) "..."
["actions"]=>array(2) {
[0]=>object(stdClass)#5 (2) {
["name"]=>string(7) "Comment"
["link"]=>string(61) "http://www.facebook.com/.../posts/..."
}
[1]=>object(stdClass)#6 (2) {
["name"]=>string(4) "Like"
["link"]=>string(61) "http://www.facebook.com/.../posts/..."
}
}
["privacy"]=>object(stdClass)#7 (2) {
["description"]=>string(6) "Public"
["value"]=>string(8) "EVERYONE"
}
["type"]=>string(6) "status"
["created_time"]=>string(24) "2012-02-16T04:23:22+0000"
["updated_time"]=>string(24) "2012-02-16T04:23:22+0000"
["comments"]=>object(stdClass)#8 (1) {
["count"]=>int(0)
}
}
...
}
["paging"]=>object(stdClass)#47 (2) {
["previous"]=>string(202) "https://graph.facebook.com/me/home?access_token=...&since=1329366202&__previous=1"
["next"]=>string(189) "https://graph.facebook.com/me/home?access_token=...&until=1328255870"
}
}
//// type = "link" ////
object(stdClass)#2 (2) {
["data"]=>array(7) {
...
[1]=>object(stdClass)#9 (15) {
["id"]=>string(31) "..."
["from"]=>object(stdClass)#10 (2) {
["name"]=>string(29) "..."
["id"]=>string(15) "..."
}
["message"]=>string(41) "..."
["picture"]=>string(161) "http://external.ak.fbcdn.net/safe_image.php?...&url=....jpg"
["link"]=>string(23) "http://www....co.jp/"
["name"]=>string(12) "..."
["caption"]=>string(15) "www.....co.jp"
["description"]=>string(284) "..."
["icon"]=>string(59) "http://static.ak.fbcdn.net/rsrc.php/....gif"
["actions"]=>array(2) {
[0]=>object(stdClass)#11 (2) {
["name"]=>string(7) "Comment"
["link"]=>string(61) "http://www.facebook.com/.../posts/..."
}
[1]=>object(stdClass)#12 (2) {
["name"]=>string(4) "Like"
["link"]=>string(61) "http://www.facebook.com/.../posts/..."
}
}
["privacy"]=>object(stdClass)#13 (2) {
["description"]=>string(6) "Public"
["value"]=>string(8) "EVERYONE"
}
["type"]=>string(4) "link"
["created_time"]=>string(24) "2012-02-16T04:23:15+0000"
["updated_time"]=>string(24) "2012-02-16T04:23:15+0000"
["comments"]=>object(stdClass)#14 (1) {
["count"]=>int(0)
}
}
...
}
["paging"]=>object(stdClass)#47 (2) {
["previous"]=>string(202) "https://graph.facebook.com/me/home?access_token=...&since=1329366202&__previous=1"
["next"]=>string(189) "https://graph.facebook.com/me/home?access_token=...&until=1328255870"
}
}
//// type = "photo" ////
object(stdClass)#2 (2) {
["data"]=>
array(7) {
...
[2]=>object(stdClass)#15 (13) {
["id"]=>string(31) "..."
["from"]=>object(stdClass)#16 (2) {
["name"]=>string(29) "..."
["id"]=>string(15) "..."
}
["message"]=>string(15) "..."
["picture"]=>string(106) "http://photos-h.ak.fbcdn.net/hphotos-ak-snc7/....jpg"
["link"]=>string(105) "http://www.facebook.com/photo.php?..."
["icon"]=>string(59) "http://static.ak.fbcdn.net/rsrc.php/....gif"
["actions"]=>array(2) {
[0]=>object(stdClass)#17 (2) {
["name"]=>string(7) "Comment"
["link"]=>string(61) "http://www.facebook.com/.../posts/..."
}
[1]=>object(stdClass)#18 (2) {
["name"]=>string(4) "Like"
["link"]=>string(61) "http://www.facebook.com/.../posts/..."
}
}
["privacy"]=>object(stdClass)#19 (2) {
["description"]=>string(6) "Public"
["value"]=>string(8) "EVERYONE"
}
["type"]=>string(5) "photo"
["object_id"]=>string(15) "..."
["created_time"]=>string(24) "2012-02-16T04:19:32+0000"
["updated_time"]=>string(24) "2012-02-16T04:19:32+0000"
["comments"]=>object(stdClass)#20 (1) {
["count"]=>int(0)
}
}
...
}
["paging"]=>object(stdClass)#47 (2) {
["previous"]=>string(202) "https://graph.facebook.com/me/home?access_token=...&since=1329366202&__previous=1"
["next"]=>string(189) "https://graph.facebook.com/me/home?access_token=...&until=1328255870"
}
}
//// type = "video" ※動画ファイルをアップロードした場合 ////
object(stdClass)#2 (2) {
["data"]=>array(7) {
...
[3]=>object(stdClass)#21 (17) {
["id"]=>string(31) "..."
["from"]=>object(stdClass)#22 (2) {
["name"]=>string(29) "..."
["id"]=>string(15) "..."
}
["message"]=>string(6) "..."
["picture"]=>string(97) "http://vthumb.ak.fbcdn.net/hvthumb-ak-snc7/....jpg"
["link"]=>string(51) "http://www.facebook.com/photo.php?v=..."
["source"]=>string(185) "http://video.l3.fbcdn.net/cfs-l3-snc6/....mp4?..."
["name"]=>string(12) "..."
["properties"]=>array(1) {
[0]=>object(stdClass)#23 (2) {
["name"]=>string(6) "Length"
["text"]=>string(4) "0:29"
}
}
["icon"]=>string(59) "http://static.ak.fbcdn.net/rsrc.php/....gif"
["actions"]=>array(2) {
[0]=>object(stdClass)#24 (2) {
["name"]=>string(7) "Comment"
["link"]=>string(61) "http://www.facebook.com/.../posts/..."
}
[1]=>object(stdClass)#25 (2) {
["name"]=>string(4) "Like"
["link"]=>string(61) "http://www.facebook.com/.../posts/..."
}
}
["privacy"]=>object(stdClass)#26 (2) {
["description"]=>string(6) "Public"
["value"]=>string(8) "EVERYONE"
}
["type"]=>string(5) "video"
["object_id"]=>string(15) "..."
["application"]=>object(stdClass)#27 (4) {
["name"]=>string(5) "Video"
["canvas_name"]=>string(5) "video"
["namespace"]=>string(5) "video"
["id"]=>string(10) "..."
}
["created_time"]=>string(24) "2012-02-16T02:35:39+0000"
["updated_time"]=>string(24) "2012-02-16T02:35:39+0000"
["comments"]=>object(stdClass)#28 (1) {
["count"]=>int(0)
}
}
...
}
["paging"]=>object(stdClass)#47 (2) {
["previous"]=>string(202) "https://graph.facebook.com/me/home?access_token=...&since=1329366202&__previous=1"
["next"]=>string(189) "https://graph.facebook.com/me/home?access_token=...&until=1328255870"
}
}
//// type = "video" ※Youtube動画ページのリンクを投稿した場合 ////
object(stdClass)#2 (2) {
["data"]=>array(7) {
...
[4]=>object(stdClass)#29 (16) {
["id"]=>string(31) "..."
["from"]=>object(stdClass)#30 (2) {
["name"]=>string(29) "..."
["id"]=>string(15) "..."
}
["message"]=>string(42) "http://www.youtube.com/watch?v=..."
["picture"]=>string(139) "http://external.ak.fbcdn.net/safe_image.php?...&url=....jpg"
["link"]=>string(42) "http://www.youtube.com/watch?v=..."
["source"]=>string(68) "http://www.youtube.com/..."
["name"]=>string(66) "..."
["caption"]=>string(15) "www.youtube.com"
["description"]=>string(113) "..."
["icon"]=>string(59) "http://static.ak.fbcdn.net/rsrc.php/....gif"
["actions"]=>array(2) {
[0]=>object(stdClass)#31 (2) {
["name"]=>string(7) "Comment"
["link"]=>string(61) "http://www.facebook.com/.../posts/..."
}
[1]=>object(stdClass)#32 (2) {
["name"]=>string(4) "Like"
["link"]=>string(61) "http://www.facebook.com/.../posts/..."
}
}
["privacy"]=>object(stdClass)#33 (2) {
["description"]=>string(6) "Public"
["value"]=>string(8) "EVERYONE"
}
["type"]=>string(5) "video"
["created_time"]=>string(24) "2012-02-16T02:33:51+0000"
["updated_time"]=>string(24) "2012-02-16T02:33:51+0000"
["comments"]=>object(stdClass)#34 (1) {
["count"]=>int(0)
}
}
...
}
["paging"]=>object(stdClass)#47 (2) {
["previous"]=>string(202) "https://graph.facebook.com/me/home?access_token=...&since=1329366202&__previous=1"
["next"]=>string(189) "https://graph.facebook.com/me/home?access_token=...&until=1328255870"
}
}