About/Contact

Steve Trefethen

Steve Trefethen is a Director of Engineering at Reply. Contact me

View my LinkedIn profile


Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?
$720 in referrals so far!


Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.



Facebook Developer Toolkit now supports JSON results on FQL queries

December 03 2008 5:49PM
Facebook’s query language (FQL) allows fetching results as JSON by supplying an additional "format=json" parameter as part of the request. I submitted a patch a few days ago that adds a UseJson property to the FQL object which was recently added to the Toolkit.

So, to fetch JSON results for FQL queries you can use the following:

facebook.fql q = new facebook.fql(Master.API);
q.UseJson = true;
string result = q.query("SELECT ...");
Be sure to grab the latest sources of the toolkit. Btw, the main reason for even mentioning it is that unless you’re reviewing the toolkit source code it’s unlikely you’d even know it’s there so this post will hopefully help people searching Google for the answer.

Take a look at this post to see how the JSON format can be useful for using Facebook data using an HttpHandler.

FacebookDel.icio.usDigg It!

Comments (3) -

12/15/2008 11:42:01 PM #

IM GLAD U CAN FIGURE OUT HOW 2 ADD MUSIC 2 UR K1M,IVE HAD MINE 4 MONTHS MITH MEMORY CARD AND STILL CANT GET IT,CAN U HELP ME STEP BY STEP,PLEASE?

BILLIE JO

12/15/2008 11:51:34 PM #

BILLIE JO,
  Not quite sure why you asked this question on this post but don't waste your that phone's music player is worthless.

Steve Trefethen

1/17/2009 6:29:17 AM #

Hey Steve,
  I've enjoyed your articles and they have helped me in developing my application.  I have been trying to use FQL and I am able to grab a string from it.  Is there a method to parse that information into holders like an array so individual items (example name or small_pic) could be retrieved?  Any help would be appreciated! Thanks again

facebookappdeveloper

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading