eswaran
eswaran

Reputation: 21

how to write where condition in fql facebook using asp.net?

I need to execute a fql using facebook dll in asp.net. The fql is ="select name, profile_url from user where name = 'suresh'". When I execute this i could not get the response . I am getting only empty string.

string response = fbService.fql.query("select name, profile_url from user where name = 'suresh'");

but if i search by id i can get response..

so, how to search by name in that..

thanks r.eswaran.

Upvotes: 1

Views: 1431

Answers (1)

Andrew Dyster
Andrew Dyster

Reputation: 2318

The name field contains the full name. It can't be a just a partial value. Are you sure that the full value isn't something like 'Suresh Lastname' ?

I recommend you use the Facebook API Test Console to test out the queries. It can be found at: http://developers.facebook.com/tools.php

Select "fql.query" as the method. It will come up with a field where you can enter your FQL queries to test.

Upvotes: 1

Related Questions