I was wondering if anyone knows what the best practice for implementing “isLoggedin” function for twitter. The function needs to return true if the user is logged in via twitter app (or has logged in through device’s browser / another app / this app earlier), or false if the user hasn’t.
The use case I’m trying to solve - I have a game, that can be connected to twitter profile. If the user has connected to the profile, I want to log him in automatically. If he’s not, I don’t want to do so. This means I can’t just try to log him in constantly.
I test this on Android (included twitter4j jars in my project) and couldn’t find a decent implementation around the web. Thanks in advance for the help!