setting up graph and twit