Incorrect favorites count on Twitter - twitter

So I have created an small java program with Twitter4J. The main purpose is to destroy all of my favorites. However, Twitter seems to be misrepresenting the favs count. This is what I see on my profile:
I know it's in Spanish but it translates as "You have not marked any Tweet as favorite yet". However, on the stats we can see that I have 6,021 favs.
Does anyone know why is this or if someone has noticed before? Calls to the twitter API also return with zero favs.
Thanks!

I had noticed that, but on Tweets.
Sometimes Twitter counts wrong the numbers of Tweets (or in your case favorites) and that happens because those tweets are too old. Maybe you have an old account (2010-2011) and you had marked those tweets as favorites before.

This is because you can't see the tweets, but you've still got them favorited. There are several ways this can happen. For example:
You have been blocked by the profile you favorited
Their profile is now locked so you can no longer see their tweets you favorited
In both cases, you can't see the tweets themselves, but the tweets aren't deleted, so they still count towards your total.

Related

Can I notify users that I liked their tweet when using tweepy?

I have a small script to like certain tweets, but I noticed that unlike manual likes these dont show up in a users notifications. I tested this by using the tweet id of a tweet on another account. (Yes the tweet is being liked successfully and it is also shown on the tweet, just not in the notifications of the user)
Is it possible to have it appear in notifications like a "normal" like would?
I tried to see if it had to do with the "high" amount of likes (one per minute) or the type of tweets, no change. Google also didnt show up anything (obviously, thats why Im here).

discoverAllContactUserInfosWithCompletionHandler results blank

Having trouble with CloudKit's discoverAllContactUserInfosWithCompletionHandler not returning anything in the discoveredUserInfo array. I have a test app on two phones. One person can see the other (discoverAllContactUserInfosWithCompletionHandler returns the 2nd user's info via lookup) but not vice-versa. I checked all the settings on both phones, including iCloud Drive->Look Me Up By Email, the correct email addresses in the contacts list, iCloud drive is turned on for the app. Everything.
I noticed that even on the phone that can see the 2nd user, sometimes the discoveredUserInfo array is blank and sometimes it returns the 2nd user, seemingly at random.
Anyone else seeing this kind of behaviour?
It looks like Apple only allows e certain amount of requests per period. You would then expect a CKError. I created a bug report with apple for this (ID = 19712839)
I would suggest that you do the same.

How long to loop friends of friends

I'm looking to possibly build an iOS app where I would need to get a list of friends of the logged in user who are also using the app and then loop over that list to get an even bigger list of their friends who are also using the app. Hopefully the little scenario below will better illustrate what I mean if it's not clear
Lets say "Sam" uses my app and he has 400 friends of which 30 are using my app. I would like to loop the 30 friends who are using the app to get their friends list so lets say the first person of the 30 is "Jake" and he has 10 friends who are also using the app they should be added to an array and then the next person in the 30 people loop is "Jen" and she has 15 people using the app they would be added to Jake's 10 friends and so on.
I know it's possible according to this link Get a list of friends of a friend on Facebook to get the friends list of a friend but my main concern is speed. Do you think getting a list of friends of friends would take too long for a user of the iOS app?
The list grows linearly, so I don't think there would be much of a speed issue. You can always set a limit to the total number of calls. For example, if I have 200 friends using your app and you limit the number of calls to 100, only the first 100 friends' friends will be shown. That can be quite an extensive list.
You could also inform your user that the operation he/she is trying to perform might take a while and give them the right to cancel at any time. When they cancel you could display the data you already received.
As a last note instead of using an array to store the friends of friends list, It would be better to use a set because chances are many of those people are already friends with each other. So if "Jake" and "Jen" are friends, they would not appear twice on the list.

Why does iOS Twitter app search engine work offline?

I'm building an iOS app related to Twitter and I need to know how do user search engine works. More specifically, I want to make my app show the usernames starting with a certain string. Just as when you're tweeting something and you start typing #Jo and below it appears #JohnSmith, #JoshBennett, etc. ordered by relevance.
In order to figure out how does this feature work, I thought that Twitter may have downloaded all my followers and following list, so that they can access it locally. But I found out that in my search results there appeared people that I don't actually follow but some of my followers follow them. So, does Twitter have downloaded all my followers and all my followers' followers?
In any case, what I want for my app is to only look for the users I follow but it's important to know how I am supposed to download these users information. Taking into account that these requests have a daily limit, what would the app do with a user with millions of followers?
I hope that some of you have faced this issue and can give me some advice. Thanks!

How to know if my facebook friends have my app?

i have a huge problem that i think you might solve in a second. I've tried thousands of different codes, but i haven't succeeded in none of them, some were using an old Facebook SDK for instance. My issue is simple, i want the user to know how many of his Facebook friends got the application, like that i could sent them a notification through my iPhone app. I found a field called fields=installed in the Graph API, but how can i code a method to know who are those friends, and how many they are.
You query the friends field /me/friends?fields=installed,name
Which will give a list of friends with either installed field set or not.
This SO answer could answer you question. Though we have to search through result for installed tag
It uses the new FB SDK

Resources