tags:

views:

228

answers:

2

Hi i need to use https://api.facebook.com/method/fql.query?query= to get user profile picture and other user information on PHP.

i know that https://api.facebook.com/method/fql.query?query= return some json or XML.

but i don't know how to get json to use.

thank you

+1  A: 

PHP has built in json support. See json_decode manual.

And if you are wondering how to run FQL from PHP - it was just asked.

serg
A: 

You can add a parameter format=json to get result in json format. So the url will be

https://api.facebook.com/method/fql.query?query=fql&format=json&access_token=t

By default format is xml.

Salman Riaz