Appearance
Fresh 2026
Standard Operating Procedures
Step-by-step procedures distilled from the official Meta developer documentation. Each procedure is self-contained and links to the deeper reference pages in this site.
SOP 1, Register and configure a Meta app
- Create a Meta developer account and verify it.
- In the App Dashboard, create a new app and choose the use case (Business, Consumer, Gaming, etc.).
- Note the App ID and App Secret (Settings → Basic). Never expose the App Secret client-side.
- Add the products your app needs (Facebook Login, Marketing API, WhatsApp, Instagram, etc.).
- Configure Valid OAuth Redirect URIs under Facebook Login → Settings.
- Set the app to Development mode until it passes App Review, then switch to Live.
See App Development for the full dashboard reference.
SOP 2, Get a User Access Token (OAuth)
- Redirect the user to the Login dialog with your
client_id,redirect_uri,state, and requestedscope(permissions). - Meta redirects back to your
redirect_uriwith a short-livedcode. - Exchange the
codefor a short-lived User Access Token at the token endpoint with yourclient_id,client_secret,redirect_uri, andcode. - Exchange the short-lived token for a long-lived token (~60 days) using
grant_type=fb_exchange_token. - Inspect any token with the Access Token Debugger or the
/debug_tokenendpoint to confirm scopes and expiry.
See Facebook Login and Graph API → Get Started.
SOP 3, Make your first Graph API call
- Confirm the current API version (e.g.
v25.0). - Call
GET /{version}/me?fields=id,name&access_token={token}. - Use field expansion to fetch nested data in one request:
?fields=id,name,posts{message,created_time}. - Use batch requests to combine up to 50 calls into one HTTP request.
- Handle paging via the
paging.next/paging.cursorsreturned with edges.
See Graph API → Overview and Batch Requests.
SOP 4, Handle Graph API errors
- Inspect the
errorobject:code,error_subcode,message,fbtrace_id. - Map the
codeto a recovery tactic (re-auth on190, back off on rate-limit codes4 / 17 / 32 / 613). - Log the
fbtrace_id, Meta support needs it to investigate. - Implement exponential backoff for transient and rate-limit errors.
- For permission errors (
200 / 10 / 803), re-request the missing scope.
See Graph API → Handle Errors.
SOP 5, Subscribe to Webhooks
- Stand up an HTTPS endpoint that answers the verification handshake (
hub.mode,hub.challenge,hub.verify_token). - In the App Dashboard, add the Webhooks product and subscribe to the object + fields you need (e.g.
page,messages). - Validate each payload using the
X-Hub-Signature-256header against your App Secret. - Respond
200 OKquickly; process asynchronously to avoid retries.
See Graph API → Webhooks and Messenger Platform.
SOP 6, Submit for App Review
- Build and test every feature in Development mode with test users.
- Request only the permissions your app actually uses.
- Provide a screencast and clear step-by-step reviewer instructions for each permission.
- Complete Business Verification if a permission requires it.
- Submit and monitor status; address rejections with the specific reasons given.
See App Review and Permissions.