-1

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..

Rho
  • 1,010
  • 2
  • 11
  • 17

2 Answers2

2

That would be JSON. See json_decode().

Amber
  • 507,862
  • 82
  • 626
  • 550
2

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

MrGlass
  • 9,094
  • 17
  • 64
  • 89