简体   繁体   English

如何处理从Facebook图形API返回的对象

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

So, I got this URL from Facebook: https://graph.facebook.com/cocacola 所以,我从Facebook得到了这个URL: https : //graph.facebook.com/cocacola

If you open that up, the URL will return an object. 如果打开它,URL将返回一个对象。 Please teach me how to process that and put it in my website. 请教我如何处理并将其放入我的网站。

I think it has to do with traversing with XML? 我认为这与遍历XML有关吗? I don't know.. Please teach me.. 我不知道..请教我..

That would be JSON. 那将是JSON。 See json_decode() . 参见json_decode()

That page appears to be JSON, not XML. 该页面似乎是JSON,而不是XML。 Here is a decent guide to JSON and PHP http://www.itnewb.com/v/Introduction-to-JSON-and-PHP 这是JSON和PHP的不错指南http://www.itnewb.com/v/Introduction-to-JSON-and-PHP

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM