You will find how to do basic Activation and authentication or your newly created app shows inactive. please watch the video. all well explained. Thanks to the youtuber.

 

This code worked for me till access token. then gave an error. but still, it helps a lot.

 

https://www.youtube.com/watch?v=D93cgFhMeRQ