Configuring the Facebook developer account API
- Open a browser and log in to your Facebook account.
- Select My Apps and select Register as Developer.
- Confirm your Facebook password to continue.
- Enter your phone number and select to have your confirmation code sent to you via text (you may also choose to verify via phone call).
- Next, select the Website platform to add a new application.
- Select Communication from the drop-down Category menu and select Create App ID.
- To confirm the configuration, go to Settings > Basic. From here you can see your App ID, App Secret, Display Name, and Site URL.
- Next you must add the FortiAuthenticator as the OAUTH2 client.
- Next, go to App Review and enable the application - the account needs to be made "live" before WiFi users can successfully authenticate through Facebook.
Browse to the following URL:
https://developers.facebook.com/products/login/
Select that you have read and agree to the Facebook Platform and Facebook Privacy policies, and select Next to continue.
Once received, enter the code and select Register to continue. You will now be registered as a Facebook developer.
Enter a name for the website and select Create New Facebook App ID.
Scroll down to the bottom of the page and enter the site's URL, then select Next. Scroll back up to the top of the page and select Skip Quick Start.
Take note of the App ID and App Secret as they are required when configuring thr captive portal on the FortiAuthenticator.
Make sure to enter a Contact Email as it is required before you can make your application live to the public.
Go to Settings > Advanced.
Under Security, enter the Server IP Whitelist.
Note that the server IP whitelist must inclide the public IP addresses of the FortiAuthenticator - this is the NAT IP address of the FortiAuthenticator uses to reach the Internet.
The App ID and App Secret can be accessed at any time on the Facebook developer account, but it may be a good idea to copy them to a secure location.