0
我嘗試使用FQL查詢以檢索用戶的郵件,我有這樣的代碼從Facebook帳戶檢索用戶的郵件
string fqlOutput = MainForm.stFacebookService.Api.Fql.Query("SELECT
author_id,thread_id,body FROM message WHERE thread_id in (SELECT thread_id FROM
thread WHERE folder_id = 0)");
XDocument xml = XDocument.Parse(fqlOutput);
XNamespace fbns = XNamespace.Get("http://api.facebook.com/1.0/");
var feed = from fql_feed in xml.Root.Elements(fbns + "stream_post")
select new
{
AuthorID = fql_feed.Element(fbns + "author_id").Value,
Body = fql_feed.Element(fbns +"body").Value
};
結果集飼料varianble是空的,但我有我的收件箱文件夾中的郵件,我做錯了嗎?
已授予權限,應用程序中沒有錯誤,查詢已執行但結果爲空 – Maki 2010-05-03 18:21:48