This project has moved and is read-only. For the latest updates, please go here.

CursorMovement is Null

Feb 14, 2014 at 4:19 PM
Edited Feb 14, 2014 at 4:20 PM
Hi, im trying to get all followers of a twitter account .
but followers.CursorMovement returns "null"
here is my code
 while (cursor!=0)
                    var followers =
                    (from follower in twitterCtx.Friendship
                     where follower.Type == FriendshipType.FollowerIDs &&
                           follower.UserID == userID &&
                           follower.Cursor == cursor
                     select follower)

                     if (followers != null &&
                      followers.IDInfo != null &&
                      followers.IDInfo.IDs != null)
                        cursor = followers.CursorMovement.Next;
thank you.
Feb 17, 2014 at 5:11 PM

The Linq2TwitterDemos_Console project in the downloadable source code has a FriendshipDemos.cs file that has a FriendsListAsync that pages through results. It isn't exactly what you are doing, but the technique should be the same:

Feb 28, 2014 at 11:50 AM

i have the same problem. I also have tried the demos.

Can you suggest any other possible solutions?

Thank you.