![](/img/trans.png)
[英]How to retrieve forums and messages in a group with the Facebook API?
[英]Retrieve user's messages from facebook account
我試圖使用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 varianble的結果集為空,但是我的收件箱文件夾中有消息,我在做什么錯?
確保您已為您的應用授予read_mailbox擴展權限。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.