Step 1, Get an App Id here.
Now the popup complains that “Given URL is not permitted by the application configuration”. Go to step 2.
Step 2, Add Platforms:
Step 3, Follow the steps here.
Script roughly looks like this: