You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

AMP Stories Facebook分享报错:无效App ID问题求助

Fixing "Invalid App ID" Error for AMP Stories Sharing to Facebook

Hey there, let's get that Facebook sharing issue sorted out for your AMP Stories! The error you're seeing is directly tied to a missing or incorrect Facebook App ID configuration—here's what you need to fix step by step:

1. Replace the wrong meta tag with fb:app_id

The key mistake here is using fb:page_id instead of the required fb:app_id meta tag. Facebook requires a valid App ID (not a Page ID) to authenticate sharing for AMP content.

  • Remove this line:
    <meta property="fb:page_id" content="" />
    
  • Replace it with a filled-in fb:app_id tag (make sure to replace YOUR_VALID_APP_ID with your actual numeric Facebook App ID from the Facebook Developer Platform):
    <meta property="fb:app_id" content="YOUR_VALID_APP_ID" />
    
    Note: If you don't have a Facebook App yet, create one via the Facebook Developer Portal—it's free, and you'll get a numeric App ID once setup is complete.

2. Fill in your empty OG tags

While not the cause of the current error, your empty og:title and og:description tags will hurt how your story displays on Facebook. Make sure to populate them with relevant content:

<meta property="og:title" content="Your AMP Story's Clear, Engaging Title" />
<meta property="og:description" content="A brief, compelling description of your story for Facebook users" />

3. Double-check your amp-social-share configuration

Ensure your amp-social-share component is correctly set up for Facebook. You can optionally add the data-app-id attribute directly to the component for extra confirmation (though the meta tag should handle it):

<amp-social-share type="facebook" width="44" height="44" data-app-id="YOUR_VALID_APP_ID"></amp-social-share>

4. Validate and debug

  • Use the official AMP Validator to make sure your page has no other AMP-related issues.
  • Run your URL through the Facebook Sharing Debugger to force Facebook to re-scrape your page, confirm the App ID is detected correctly, and clear any cached metadata that might be causing problems.

Once you've made these changes, test sharing your AMP Story to Facebook again—the "Invalid App ID" error should be gone!

内容的提问来源于stack exchange,提问作者user264675

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 08:00:27