我尝试使用fql查询检索用户的消息,我有这个代码
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
};
Feed变量的结果集为空,但我的收件箱文件夹中有消息,我做错了什么?
答案 0 :(得分:0)
确保您已向您的应用授予了read_mailbox扩展权限。