How to register your own Facebook OAuth app
Register an OAuth app with Facebook and connect it to Tenklo
This guide shows you how to register your own app with Facebook to obtain your OAuth credentials (client id & secret). These are required to let your users grant your app access to their Facebook account.
Create a Facebook Developer account
If you don't already have one, go to Meta for Developers and create a developer account.
- Go to the Meta Developer Dashboard.
- Click Create App, enter your App name then click Next.
- Select the appropriate Use cases then click Next.
- Select which Business portfolio you want to associate with the app, then click Next.
- Review the Publishing requirements, then click Next if you agree. Finally, click Go to dashboard to complete the setup.
- In the left sidebar, navigate to Facebook Login for Business > Settings.
- In Valid OAuth Redirect URIs, add:
https://api.tenklo.dev/oauth/callback, leave the other fields default. - Click Save Changes.
- Go to App Settings > Basic in the left sidebar.
- Click Add Platform > Website.
- Enter the site URL (e.g.
https://api.tenklo.dev/).
- Go to App Settings > Basic in the left sidebar.
- Copy your App ID this is your Client ID and App Secret which is your Client Secret, you'll need these credentials when configuring your integration in Tenklo.
- In the left sidebar, navigate to Use cases.
- Find your use case and click Customize to configure permissions and features.
- In the Permissions section, you'll see
public_profileis automatically added. - Click Add for additional permissions needed for your app.
Some permissions may require App Review before going live
Follow the Quickstart.
For more details, see Facebook's OAuth documentation and how to create an application.
Important notes for Facebook API
- Facebook tokens expire after 60 days and cannot be refreshed. Once a token expires, users must re-authenticate by re-authorizing the connection.