Start by using the DeviceCodeCredential class to request an access token by using the device code flow. Open graph.py and replace its entire contents with the following code. from configparser import ...