C#でマルチクエリクエリ文字列をフォーマットする方法を理解しようとしていますが、C#SDKを使用できません。これまでのところ、これは私が試したことです。
string url = "https://graph.facebook.com/method/fql?q={'q1':'SELECT uid, page_id FROM page_fan WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND page_id IN (SELECT page_id FROM page WHERE 'MyPage' in name)','q2':'select page_id, name, page_url, pic_small, pic_big from page where page_id in (SELECT page_id FROM #q1)','q3':'SELECT uid, name, pic_small FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me() AND (uid2 IN (SELECT uid FROM #q1)))'}&access_token=myaccesstoken&format=json"
と
string url = "https://graph.facebook.com/method/fql.multiquery?queries={'q1':'SELECT uid, page_id FROM page_fan WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND page_id IN (SELECT page_id FROM page WHERE 'MyPage' in name)','q2':'select page_id, name, page_url, pic_small, pic_big from page where page_id in (SELECT page_id FROM #q1)','q3':'SELECT uid, name, pic_small FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me() AND (uid2 IN (SELECT uid FROM #q1)))'}&access_token=myaccesstoken&format=json"
どちらも機能していません。誰か助けてもらえますか?
WebClient clientUser = new WebClient();
string JsonResult = clientUser.DownloadString(url);
JObject jsonUserInfo = null;
if (!String.IsNullOrEmpty(JsonResult)) jsonUserInfo = JObject.Parse(JsonResult);