How do I connect my app to chat?

Are you completing the OAuth process? Once you’ve got the code from the querystring of your callback URL you need to exchange that for an Access Token and Refresh Token.