Sign in with Facebook
Create your own app in Meta for Developers, enter its App ID in Hotspotly and let guests sign in with their Facebook account.
On the login page the guest taps Sign in with Facebook, signs in on Facebook and gets connected to the WiFi. Sign-in goes through the app you create in Meta for Developers; Hotspotly does not use a shared Facebook app.
In this guide
- Adding the Facebook method in Hotspotly and copying the redirect URI.
- Creating an app in Meta for Developers and setting up Facebook Login.
- Entering the App ID and App Secret in the panel and publishing the method.
- The Facebook addresses opened before login and what that means for logging obligations.
Before you start
- Your hotspot exists and the Router portal setup card on your router shows Applied: Set up your first hotspot.
- A Facebook account registered as a developer in Meta for Developers. We recommend creating the app with an account that belongs to your business; if you lose a personal account, you also lose access to the app.
- You do not need to open ports or add firewall rules on the router. Portal provisioning writes the addresses Facebook's sign-in pages need to the router for you.
- Your package includes the Social login module. If it does not, the method row in the login page designer shows Unavailable with "This method is not included in your package." and saving its settings is refused, and the method is not offered on the guest page. Upgrade with Upgrade on your dashboard (or the Upgrade package button on a locked card), or ask your reseller.
Off by default
Even if you enable the method in the design, it does not appear on the guest page until your own Facebook app's App ID and App Secret are entered and enabled. Until then the row shows the Unavailable badge and the note "No Facebook app is configured (settings below).".
1. Add the method in Hotspotly
- On the Hotspots page, find your hotspot and click Design.
- On the Methods tab, pick Sign in with Facebook in the Add method box and click Add.
- Open Method settings with the gear icon on the new row. The Facebook section has the App ID, App Secret and redirect URI fields.
- Click the copy button next to Redirect URI (add it to your OAuth app). You will enter this address in Meta in the next section.
The redirect URI always has this form. Replace <PORTAL_HOST> with the address your panel shows
(https://portal.hotspotly.net on the Hotspotly cloud):
Use the copy button in the panel instead of typing the address. A single different character makes Facebook reject the sign-in.
2. Create an app in Meta for Developers
These steps happen in Meta's own dashboard. Meta changes its interface from time to time, so menu names may look different; see the official docs for current details: Manual login flow and App modes.
- Sign in at developers.facebook.com and create a new app from the My Apps page.
- As the use case, choose authenticating users with Facebook Login. Give the app a name that identifies your business; guests see this name on the sign-in screen.
- In the app dashboard, open Facebook Login → Settings.
- In the Client OAuth Settings section, paste the address you copied from Hotspotly into Valid OAuth Redirect URIs and save the changes.
- On App settings → Basic, copy the App ID. For the App Secret, click Show; Meta may ask for your password.
- If Meta shows missing fields on this page (for example a privacy policy URL) before switching to Live, fill them in.
- Use the mode toggle in the app dashboard's top bar to switch the app from Development to Live.
Only people with a role can sign in during Development
While the app is in Development mode, only people with a role on the app (admin, developer, tester) can sign in. Even if a test with your own account works, your guests cannot sign in. Switch the app to Live before opening it to guests.
Hotspotly asks Facebook only for the public_profile and email permissions. These are Facebook
Login's basic permissions. If Meta asks for App Review for your app, follow the
permissions reference.
3. Enter the values in Hotspotly and publish
- Go back to the Facebook section on the design screen.
- Enter the App ID you copied from Meta in Facebook App ID.
- Enter the App Secret in Facebook App Secret.
- Tick the Facebook box in the section header. Without the tick the values are saved but the method stays off.
- Click Save OAuth settings. A "Social login settings saved" notice appears and the badge changes to Configured.
- Click Publish at the top of the page. If you only click Save draft, the guest page does not change.
The OAuth settings apply to your whole customer account: the same app is used on all your hotspots. When you save, Hotspotly automatically restarts portal provisioning to write the Facebook addresses to your routers.
Changing the App Secret
The saved App Secret is shown masked only. Leave the field empty to keep the saved value. If you regenerated the secret in Meta, type the new value in full and save. The Delete saved value button deletes the saved secret and turns Facebook sign-in off when you save.
Addresses opened before login
The guest's browser has to load Facebook's sign-in page before logging in. So while the method is available, portal provisioning adds these addresses to the router's walled garden:
You do not need to add rules by hand. If the app is not configured or is turned off, these addresses are not written to the router.
Facebook access without login, and access logs
While these addresses are open, a guest can reach all of Facebook (including messaging) without logging in to the WiFi. Because the router opens port 443 to the IP addresses of these names, other Meta services sharing the same IPs (for example Instagram or WhatsApp Web) may also be reachable without login. This access is not tied to any guest identity and is not included in the access log. Enable the method only if you accept this risk; if your logging obligations are strict, prefer a method such as SMS or room number.
Verify
- In the panel, check that the Router portal setup card on the device detail page shows Applied.
- Test with a Facebook account that has no role on the app, from a phone connected to the guest WiFi. This also confirms that Live mode is on.
- Open the login page in Safari or Chrome, tap Sign in with Facebook and sign in on Facebook.
- Back on the login page you should see "Your Facebook account is verified". Accept the terms of use, continue and check that you can reach the internet.
The automatic sign-in window
Facebook sign-in may be blocked in the small sign-in window (CNA) that iPhone and Android open on their own. In that case Hotspotly shows the guest the warning "Facebook sign-in may not work in this small sign-in window" and a hint to open a browser. Keep at least one other method enabled on your login page.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
"This method is not included in your package." on the method row, or saving the settings fails with 403 |
Your package does not include Social login; the server answers 403 ENTITLEMENT_REQUIRED |
Upgrade with Upgrade on the dashboard to a package with the module, or ask your reseller. Existing data is kept; the module opens within 1 minute. |
| Row shows Unavailable and "No Facebook app is configured (settings below)." | App ID or App Secret missing, or the Facebook box is not ticked | Enter the values, tick the box, click Save OAuth settings, then Publish. |
| Facebook says the URL is not allowed for the app | The redirect URI is missing from Valid OAuth Redirect URIs or typed differently | Copy the address from the panel and paste it into Meta again; https, the domain and the trailing /callback must match. |
| You can sign in, guests cannot | The app is in Development mode | Switch the app to Live in the Meta dashboard. |
| "Your Facebook account could not be verified. Please try again." | Wrong App Secret, or it belongs to another app | Compare the App ID and App Secret in Meta, retype the secret and save. |
| "Facebook sign-in was cancelled." | The guest declined or backed out on the Facebook screen | The guest can try again or choose another method. |
| "Account verification could not be completed in this browser." | The Facebook return opened in another browser, the same link was used twice, or 10 minutes passed | Reopen the login page in the same browser and start again. |
| Facebook page does not load or looks broken | Walled garden addresses were not written to the router, or a region-specific fbcdn address is closed | Check the Router portal setup card: portal provisioning. If it persists, contact support. |
| Facebook does not open in the small sign-in window | Facebook restricts embedded browsers | The guest opens Safari or Chrome and visits any http:// address; the login page opens there. |
Security and privacy
- Hotspotly uses only the user ID that Facebook issues for your app. Name and email are not stored. The ID is kept encrypted in the database.
- The App Secret is stored encrypted on the server and is never sent to the guest's browser. The code is exchanged for a token on the Hotspotly server.
- Like other methods, Facebook sign-in records the privacy notice and the guest's consent. Prepare your texts with the Legal texts and guest consent guide and mention Facebook sign-in in your privacy notice.
- Do not share the App Secret by email or message. If you suspect a leak, regenerate it in Meta and enter the new value in the panel.