Quantcast
Channel: Active questions tagged news-feed+facebook-graph-api - Stack Overflow
Viewing all articles
Browse latest Browse all 59

Processing hugely varied JSON data from Facebook Graph API news feed

$
0
0

OK so I have authenticated fine and understand JSON including how to process it with PHP...

http://php.net/manual/en/function.json-decode.php

But my issues are that the JSON data that the API returns after hitting up FB...me/home end point is very varied. I understand that so is the data on a FB news stream but...

My end game is to show this info in a mash-up with other data but there seems no clear way of formatting it and each item in the JSON response is hugely different with different values. No consistent "item_type" : "photo / status update / message" that I could use to template it up into nicely formatted content blocks on the front end?

Any suggestions on the best way to process / style this type of vary varied JSON?

Thanks.


Viewing all articles
Browse latest Browse all 59

Latest Images

Trending Articles





Latest Images