The fb:app_id tag links content shared from your site to a registered Facebook App in Meta's developer portal, enabling access to share analytics via the Sharing Debugger and associating engagement data with your app's metrics dashboard. Without it, Facebook share counts and referral data are visible only in aggregate through Meta Business Suite — there is no app-level attribution. Per ogp.me, fb:app_id is an optional but recommended field for sites that actively track social distribution through Facebook's analytics tools. The impact is analytics-only: users sharing and clicking links are unaffected.
Low because missing fb:app_id only affects Facebook share analytics visibility in the developer portal — it has no effect on how links are displayed or how users share content.
Add fb:app_id to your root layout using Next.js's other metadata field, since Next.js does not have a built-in key for this property:
// app/layout.tsx
export const metadata: Metadata = {
other: {
'fb:app_id': '123456789012345',
},
}
Create a Facebook App at developers.facebook.com to obtain the App ID. This is a one-time setup; the same App ID applies site-wide. Prioritize this only after completing higher-severity OG and Twitter card gaps.
ID: marketing-social-sharing.platform-specific.facebook-app-id
Severity: low
What to look for: Check for <meta property="fb:app_id"> in the document head, or a facebook.appId value in metadata configuration. This requires a Facebook App ID from Meta's developer portal. Count all instances found and enumerate each.
Pass criteria: fb:app_id is set with a non-empty numeric value in at least the root layout. The implementation must be verifiable by examining the codebase and must handle the documented requirements completely. At least 1 implementation must be confirmed.
Fail criteria: No fb:app_id meta tag found.
Skip (N/A) when: The project's target audience does not use Facebook, or the project is an internal/developer tool.
Detail on fail: "fb:app_id not configured — Facebook share analytics will not be associated with a Facebook App"
Remediation: fb:app_id links your shared content to a Facebook app, enabling share analytics in Meta's developer portal. It does not affect how link previews render for users. To add it:
// Next.js does not have a built-in metadata key for fb:app_id
// Use the 'other' field:
export const metadata: Metadata = {
other: {
'fb:app_id': '123456789012345',
},
}
This is a low-priority enhancement — it affects analytics and developer tooling only, not the user's sharing experience.