2012-05-10 42 views
-4

我如何使用C#Twitter的API,C#,ASP.Net

獲取好友列表和他們的詳細資料(照片,姓名)

約上朋友的最大信息/追隨者

在Twitter上

感謝,

+2

你現在怎麼嘗試這個?什麼似乎阻止你回來? – ThePower

回答

4

使用LINQ到Twitter

http://linqtotwitter.codeplex.com/

一些示例代碼:

 var friendshipResults = 
      from friend in twitterCtx.Friendship 
      where friend.Type == FriendshipType.Show && 
        friend.SourceScreenName == ownerScreenName && 
        friend.TargetScreenName == screenName 
      select friend; 
+0

謝謝動物, 問題:我只顯示第一個100 如何解決問題:顯示所有朋友(> 100) – gouzema

+0

Np,你可能會覺得這有幫助:http://linqtotwitter.codeplex.com/discussions/61124 – animaonline

+0

他們有一個討論板,你最好問開發者:-) – animaonline