-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
  • 982
  • 2
  • 10
  • 17

2 Answers2

2

That would be JSON. See json_decode().

Amber
  • 477,764
  • 81
  • 611
  • 541
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
  • 8,792
  • 17
  • 61
  • 87