开发者

How to process the returned object from Facebook graph api [duplicate]

This question already has an answer here: How to extract and access data from JSON with PHP? 开发者_如何学C (1 answer) Closed 11 months ago.

So, I got this URL from Facebook: https://graph.facebook.com/cocacola

If you open that up, the URL will return an object. Please teach me how to process that and put it in my website.

I think it has to do with traversing with XML? I don't know.. Please teach me..


That would be JSON. See json_decode().


That page appears to be JSON, not XML. Here is a decent guide to JSON and PHP http://www.itnewb.com/v/Introduction-to-JSON-and-PHP

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜