Vinod kumar
Vinod kumar

Reputation: 75

FaceBook query using FQL

While fetching: https://api.facebook.com/method/fql.query?query=Select+page_id,page_url,name,pic,website,type,location,fan_count,phone+from+page+where+name%20%20=%22SPA%22 i am getting all exact match results with "SPA" But how to get other which will match "sp" as well. Like when we use like operator in fql i am getting problem. Please suggest me with solution

Upvotes: 5

Views: 2228

Answers (2)

ifaour
ifaour

Reputation: 38135

here you go:

WHERE strpos(lower(name), 'sp') >= 0

Upvotes: 3

Toman
Toman

Reputation: 1156

Hence there is no LIKE operator in FQL, you will have to use other alternative. I hope this link will suggest you some way:

Does facebook fql contain the sql like operator?

Upvotes: 0

Related Questions