[WordPress] How to resolve Facebook Sharing Debugger 'The following properties are required: fb:app_id' error
Here’s how to resolve the The following properties are required: fb:app_id error from Facebook Sharing Debugger on WordPress sites.
Premise) fb:app_id error in Facebook Sharing Debugger
When debugging this site’s URL with Facebook Sharing Debugger, the following error occurred:
Issues That Must Be FixedMissing Properties The following properties are required: fb:app_id
This article introduces the steps to resolve this fb:app_id error.
Creating Privacy Policy page
A privacy policy page is required to issue a Facebook App ID, so create one if you don’t have it.
In my case, I created a privacy policy page based on 【コピペでOK】プライバシーポリシーの書き方|AdSense・Analytics対策 | アフィリエイトで会社の外にも収入源を【liberty-life-blog】.
https://codenote.net/privacy-policy
Creating Facebook app to get fb:app_id
To get fb:app_id, I obtained a Facebook App ID by referring to the article WordPressのOGP設定に必要なFacebookアプリIDの作成手順 – HERO Biz.
Setting fb:app_id in Yoast SEO
Since I’m using the WordPress plugin Yoast SEO, I’ll use this to set the Facebook App ID.
Final check) No errors in Facebook Sharing Debugger
Finally, use Facebook Sharing Debugger again and click [Scrape Again] to confirm that the error no longer appears.
Be careful to click the [Scrape Again] button, not the [Debug] button, otherwise you won’t get the latest status.
That’s all from the Gemba.
