Not a tutorial but documentation
You need to have oAuth setup and manage session tokens too, also need to register your application first