This sample uses either v1 or v2 of the protocol. You may use the built-in sample application ID, or provide your own.
To register an application for v1, follow these instructions. Also, for this sample the registered application needs access to the unified graph api.
To register an application for v2, go to the Application Registration Portal and register a new application. After creating the application, click "add platform" and choose "Web". Make sure you leve the implicit flow checkbox checked.
App ID: (leave blank for to use sample application ID)
Model: