If you have put your WordPress site in the Facebook debugger you may have seen the following error:
This error is due to your site not having a Facebook app ID associated with it. To fix the missing Facebook App ID error from showing up on your website you’ll need to do the following:
1. Create a Facebook App
First you’ll need to head to the Facebook Developer portal to make a free Facebook App: https://developers.facebook.com/apps/
Once on the developer portal over over “My Apps” on the top right and click “Create App”.
Here you can put in your contact information and name for the App (typically your website name).
After you make your app you have to ensure it’s live and not in development mode.
2. Make Sure Your Facebook App is Live
When you first create your Facebook App you’ll see that it is in development mode on top.
3. Using Meta Tag Manager to Set fb:app_id
Now that you have a live Facebook app we can now add the correct meta tag to our site. Many SEO plugins will let you add your Facebook App ID but sadly the most popular plugin Yoast has removed the option. So we’ll be using Meta Tag Manager to add the correct meta tag to our site with the App ID.
First you’ll need to install Meta Tag Manager. This can be done by searching Meta Tag Manager in the plugin area of your site.
Once the plugin is installed you’ll have the option Settings/Meta Tag Manager which will allow you to add the correct meta tag.
On the plugin page you’ll be able to add the meta tag for your fb:app_id. First you want to select the property tag type in the dropdown.
After selecting a tag type you’ll be able to add the property value of “fb:app_id“. Then in the content field put your Facebook App ID. Enter those then click save changes.
Once you save this and clear your cache the correct fb:app_id property should now be in your site’s source code.
If your Facebook App is live and you did everything correctly after saving the page you’ll see no error.
Now that you’ve successfully added your Facebook App ID to your site ensure your site’s cache is cleared and test the site again in the Facebook Debugger.
If the page is cached in Facebook you may have to click “Scrape Again” for Facebook to retest your page.
After that your error for the missing: fb:app_id should be resolved!
If you have any questions let me know in the comments below.