generalized the twitter call