我面對錯誤此查詢400錯誤的請求::FQL查詢錯誤
string str=ds.Table[0].Rows[0].ItemArray.toString();
fbfr =string.Format("/fql?q=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 +friend+ WHERE+ uid1={0})" ,str);
string ser = api.Get(fbfr, true);
它能夠訪問uid
從Dataset ds
,但無法運行查詢。 請給出你的意見。
其中之一,你有很多裸露的空間。 '+ IN +'應該只是'+ IN +'等等 - 這使得查詢字符串被錯誤編碼,並且很可能被拒絕。 – 2012-03-01 17:28:34
刪除空格,但仍然沒有成功Marc – 2012-03-01 17:38:28
什麼是'uid1 = {0}'?嘗試爲當前用戶使用'uid1 = me()' – DMCS 2012-03-01 18:00:06