pobieram curl'em dane z tablicy FB otrzymujesz to od $zmiennej w taiej formie:
{"data":[{"id":"668481686614943_674174516045660","from":{"category":"Automotive","category_list":[{"id":"149998721725634","name":"Automotive Repair"}],"name":"o","id":"668481686614943"},"story":"a changed their profile picture.","story_tags":{"0":[{"id":"668481686614943","name":"a","type":"page","offset":0,"length":10}]},"picture":"https://scontent.xx.fbcdn.net/hphotos-xpt1/v/t1.0-9/p130x130/11130093_674174492712329_272981788864688865_n.png?oh=ac21d735e99ec9502b599d9a85a92f71&oe=559E7EBD","link":"https://www.facebook.com/a/photos/a.674174486045663.1073741828.668481686614943/674174492712329/?type=1","name":"a","icon":"https://www.facebook.com/images/icons/photo.gif","privacy":{"value":"","description":"","friends":"","allow":"","deny":""},"type":"photo","status_type":"added_photos","object_id":"674174492712329","created_time":"2015-04-13T07:11:28+0000","updated_time":"2015-04-13T07:11:28+0000","is_hidden":false},{"id":"668481686614943_674173952712383","from":{"category":"Automotive","category_list":[{"id":"149998721725634","name":"Automotive Repair"}],"name":"a","id":"668481686614943"},"story":"a updated their cover photo.","story_tags":{"0":[{"id":"668481686614943","name":"a","type":"page","offset":0,"length":10}]},"picture":"https://scontent.xx.fbcdn.net/hphotos-xtf1/v/t1.0-9/s130x130/11148601_674173926045719_2138168042190589861_n.png?oh=1373c93746757583731195aa6207b9c1&oe=55E0D60B","link":"https://www.facebook.com/a/photos/a.674173942712384.1073741827.668481686614943/674173926045719/?type=1","icon":"https://www.facebook.com/images/icons/photo.gif","privacy":{"value":"","description":"","friends":"","allow":"","deny":""},"type":"photo","status_type":"added_photos","object_id":"674173926045719","created_time":"2015-04-13T07:08:16+0000","updated_time":"2015-04-13T07:08:16+0000","is_hidden":false},{"id":"668481686614943_673673899429055","from":{"category":"Automotive","category_list":[{"id":"149998721725634","name":"Automotive Repair"}],"name":"a","id":"668481686614943"},"message":"twst3","picture":"https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/s130x130/10955436_673673856095726_2578536746302666478_n.jpg?oh=f1f91d3e6b4a8d135659740064d42e3a&oe=559A1515&__gda__=1440827304_267828d4556bb21e8a91692eeddbbe36","link":"https://www.facebook.com/a/photos/a.672855176177594.1073741826.668481686614943/673673856095726/?type=1","icon":"https://www.facebook.com/images/icons/photo.gif","privacy":{"value":"","description":"","friends":"","allow":"","deny":""},"type":"photo","status_type":"added_photos","object_id":"673673856095726","created_time":"2015-04-12T08:21:25+0000","updated_time":"2015-04-12T08:21:25+0000","is_hidden":false},{"id":"668481686614943_672855202844258","from":{"category":"Automotive","category_list":[{"id":"149998721725634","name":"Automotive Repair"}],"name":"a","id":"668481686614943"},"message":"test2","picture":"https://scontent.xx.fbcdn.net/hphotos-xpf1/v/t1.0-9/s130x130/11034256_672855142844264_15169377286498313_n.jpg?oh=ed4f75f3521d8bf316d2b3eb8eecf398&oe=55AE014C","link":"https://www.facebook.com/a/photos/a.672855176177594.1073741826.668481686614943/672855142844264/?type=1","icon":"https://www.facebook.com/images/icons/photo.gif","privacy":{"value":"","description":"","friends":"","allow":"","deny":""},"type":"photo","status_type":"added_photos","object_id":"672855142844264","created_time":"2015-04-10T13:27:29+0000","updated_time":"2015-04-10T13:27:29+0000","is_hidden":false}],"paging":{"previous":"https://graph.facebook.com/v1.0/668481686614943/feed?limit=50&since=1428909088&access_token=1412388689033749|ze9HaxhtccepJbDHXFLhdJ9DPbk&__paging_token=enc_AdCMjT2ZB9lZBAXcT1dLJ8PjU3haT1JRlRv7r986LSojwwNUoCzF6xV3o
eGLhHOZAx08fA5fN1RGjvKm6pZChVaJp7tjrDyC5AojMdgO2KWTBSvnDQZDZD&__previous=1","next":"https://graph.facebook.com/v1.0/668481686614943/feed?limit=50&access_token=1412388689033749|ze9HaxhtccepJbDHXFLhdJ9DPbk&until=1428672449&__paging_token=enc_AdADvnV2NwgY3P3TEsNP2V7oDgW8jZCUpX5yR6aWNPZACz3HfrKgOUfJO
b22RBLbc4YSPF7D7KA3Pc3KETWZA2JdVK1B5n8PZBYaIBpTZATje8LuH7QZDZD"}
jak wywolać to na zasadzie tablicy array