I have the following Fql query:
https://graph.facebook.com/fql?q={"query1":"SELECT uid2 FROM friend WHERE uid1=me()","query2":"SELECT uid , name , pic_square , affiliations , birthday_date , sex , relationship_status , hometown_location , current_location , education_history , work_history , contact_email FROM user WHERE (sex='male') AND uid IN (SELECT uid2 FROM #query1)"}
This works fine in graph explorer, however it doesn’t work in c#; I get an Http Badrequest error
My query is as follows:
"fql?q={'query1':'SELECT+uid2+FROM+friend+WHERE+uid1=me()','query2':'SELECT+uid,name,pic_square,affiliations,birthday_date,sex,relationship_status,hometown_location,current_location,education_history,work_history,contact_email+FROM+user+WHERE+(sex='male')+AND+uid+IN+(SELECT+uid2+FROM+#query1)'}";
Please help.
The naming convention starts with index 0 rather than index 1 as in other languages. The above code works, I’ve run it in C# and the results are good.