tags:

views:

568

answers:

2

Using the .Net Facebook Developer Toolkit, how do I execute FQL queries?

A: 

Create a object of Facebook.Rest.Api and then you can access fqlquery where you want to pass the query as string and you will get result in string.

A: 

Example of the FQL query with Facebook Developer Toolkit:

api.Fql.Query("SELECT contact_email FROM user WHERE uid=" + UserID);

as you can see FQL is pretty similar to the SQL. "Query" method returns XML.

More documentation.

Peter Stegnar

related questions