0
我想通過使用下面的代碼來獲得在線朋友。FQL獲取在線朋友返回零
protected void GetActiveFriends()
{
var fb = new FacebookWebClient();
dynamic myInfo = fb.Get("me");
var uId = myInfo.id;
dynamic friends = fb.Query("SELECT uid, name, pic_small, online_presence FROM user WHERE online_presence IN ('active', 'idle') AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me())");
Response.Write(friends.Count);
foreach (dynamic friend in friends)
{
Response.Write(friend.id);
}
}
friends.Count返回零&沒有friend.id的被顯示出來。
我想我的查詢是正確的然後有什麼問題。
我有同樣的問題......請你解釋一下如何解決這個問題.... – rajmohan 2012-09-07 07:30:21