Bug : UserTimeLine return entities empty

May 24, 2012 at 9:10 AM


hello Joe Mayo, i am using your linqtoTwitter library to get tweets of twitter,
and when i get user timeline, return all tweets correctly but entities is nothing.

its my problem? its issue? its bug?

my code:

Private Sub GetUserTimeline()

   'Variables
   Dim ipageId As Integer = 1
   Dim iResultsCount As Integer = 0
   Dim statusTweets As LinqToTwitter.TwitterQueryable(Of LinqToTwitter.Status) = Nothing

   Try

     Me.lblNumTweetsCount.Text = 0

     m_ScreenName = Me.txtScreenName.Text

     Me.txtInfo.Text = ""

     If Me.m_auth Is Nothing Then
       Me.Authorize()
     End If

     Do While ipageId <= 15

       statusTweets =
             From tweet In Me.m_twitterCtx.Status _
             Where tweet.Type = StatusType.User _
             And tweet.ScreenName = Me.m_ScreenName _
             And tweet.IncludeContributorDetails = True _
             And tweet.Count = 200 _
             And tweet.Page = ipageId _
             And tweet.IncludeEntities = True _
             Select tweet

       Dim sp As New System.Text.StringBuilder
       sp.AppendLine("")

       Me.lblNumTweetsCount.Text = statusTweets.ToList.Count
       iResultsCount += Me.lblNumTweetsCount.Text

       For Each t As LinqToTwitter.Status In statusTweets.ToList

         sp.AppendLine(String.Format("Name: {0}, Tweet: {1}, Date:={2}" & Environment.NewLine, t.User.Name, t.Text, t.CreatedAt))


         If Not t.Entities Is Nothing Then
           If Not t.Entities.MediaMentions Is Nothing Then
             If t.Entities.MediaMentions.Count > 0 Then

               For Each md As LinqToTwitter.MediaMention In t.Entities.MediaMentions

                 Me.DownloadFile(md)

               Next

             End If
           End If
         End If

       Next

       If iResultsCount < 200 Or ipageId >= 15 Then
         ipageId = 16
       Else

         statusTweets = Nothing
         ipageId += 1

       End If

       Me.txtInfo.Text += sp.ToS

May 24, 2012 at 10:43 AM

solved. if you authorize not download entities, if you not authorize make correct download.