I'm trying to get Twitter notifications using Twitter gem.
I'm using the method notifications from Twitter::User but the value is always false
even though I receive emails from Twitter about those new notifications :
twitter = current_user.get_twitter_api
@twitter_user = twitter.user(current_user.authentications.find_by_provider("twitter")['username'])[:notifications]
def get_twitter_api
twitter_info = self.authentications.find_by_provider("twitter")
twitter_api = Twitter::Client.new(:oauth_token => twitter_info['fb_token'],:oauth_token_secret => twitter_info['uid']) if twitter_info
return twitter_api
end