I have noticed that the followers count obtained is different tan the real followers number I can see in Twitter account website or mobile app...
With an account with about 390 followers, I'm getting 224 followers with TAdvTwitter, using your TwitterDemo project. Tried with another account with 66 followers but AdvTwitter just gets 54.
Maybe disabled/inactive follower accounts or something?
Is this the case for all accounts or only for specific accounts? For the accounts I checked, the number of followers retrieved via the API seems to be the same as on the Twitter website.
It might be a temporary API issue which we have no control over.
The documentation doesn't mention any specific information about these numbers:
After that, application send a users/lookup for a group of IDs, BUT here is the problem: Some IDs are ignored in the request.
The first one in the example, for example, is not sent in the request. I have checked the TAdvCustomTwitter.GetFollowers code in CloudCustomTwitter.pas and it seems the problem is the "StrToIntT" function, because 877083885250727940 (and many others) is a very long integer, not a simple integer.
If I change StrToIntT to StrToInt64, the Followers list is filled correctly and I get the correct 394 followers.
Then I thing I need to make some changes in GetProfileListInfo function too.
Just installed latest release. Although the followers count seems to be correct now, I'm getting blank follower names for a lot of followers, as you can see in the attached screenshot:
The only working method to get the names correctly is getting the profile info for each ID:
for i := 0 to AdvTwitter1.Followers.Count - 1 do begin AdvTwitter1.GetProfileInfo(AdvTwitter1.Followers.Items.ID, followerprofile); listbox1.Items.add(followerprofile.Name); end;
BUT this is extremely slow.
I have added another listbox with the IDs of each follower, if it helps. It seems IDs greater than 2147483647 (max Integer) are ignored.