Using objects - how do i get a facebook application id

In this knowledgebase article, we’ll discuss the error about a missing Facebook App ID “The following required properties are missing: fb:app_id” that you might have come across.

Bạn đang xem: Using objects

*

fb: app_ id‘ tag can be added to your site’s header. It’s important to note that the issue of having this tag on your page doesn’t interfere with the ability to share posts on Facebook in any way.

You can ignore this warning but if you want to get rid of this error, then refer to the instructions below on how you can add it in Word
Press using the Rank Math SEO plugin:

Note: If you aren’t interested in creating a Facebook App, but wish to get rid of this error in the Facebook Debugger tool, then you can simply use Facebook’s default App ID (966242223397117) and start from step 3 below.

1 Create Facebook App

At first, you need to register as a Facebook developer. Once you’ve registered, you can create a Facebook App by following this documentation.

When you create a Facebook App, a unique App ID will be generated.

2 Copy Facebook App ID

In your Facebook App Dashboard, you can copy your Facebook App ID.

*

3 Open Social Meta Settings

Then, head over to your Word
Press Dashboard → Rank Math SEO → Titles & Meta → Social Meta
as shown below:

*

4 Enter Facebook App ID

In the Social Meta settings, you can fill out all the fields related to Facebook, particularly, enter your Facebook App ID in the Facebook App field, so that you can get rid of the error.

*

5 Save Changes

Now click on Save Changes at the bottom of the page. The Facebook App ID will now be added to your website’s code and hence the error should no longer be present.

*

6 Validate Using Facebook Debugger Tool

Then clear your website cache & server cache (if any) and then use the Facebook Debugger tool to confirm if the error is no longer present. You may need to click the Scrape Again to force the Debugger tool to fetch the latest version of your page.

*

And, that’s it! We hope the tutorial helped you get rid of the error. If you’re still facing this issue or you’ve absolutely any questions about using Rank Math’s Social Meta Settings – feel free to get in touch with our support team, and we’re always here to help.


Still not using Rank Math?

Setup takes less than 5 minutes including the import from your old SEO Plugin!

Facebook’s Sharing Debugger tool helps you preview how your content might look when shared on Facebook. It also shows errors or warnings when you have problems in your code which might impact how your content performs. One of the things the tool looks for in your code is a fb:app_id meta tag. When that tag is missing, you get the following message:


*
The following required properties are missing: fb:app_id“

If you’re seeing this warning, then don’t worry. Your code is correct, and your shared content will display properly. The fb:app_id meta tag is not required. In fact, it doesn’t do anything, and hasn’t for years. That’s why we removed support for it from ungdungfb.com SEO 15.5, and why you might have started seeing these ‘warnings’ for the first time.


What does (did) the fb:app_id tag do?

The short answer

The simple answer is, “nothing”. You can ignore the warnings in the Sharing Debugger tool.

The longer answer

The longer answer is that the fb:app_id tag used to be part of Facebook’s ‘Domain insights‘ product. When users ‘liked’ your content (using an embedded like button on your webpage), the app_id value let Facebook know which Facebook Page should be able to see and access the relevant statistics.

The Domain Insights product no longer exists, though. The analytics capabilities that the fb:app_id tag provided are now part of Facebook’s Analytics platform, and require you to install a Facebook Pixel instead of a fb:app_id meta tag.


*
Facebook starting closing the Domain Insights platform in 2016, and replaced it with Facebook Analytics

You can read more about Facebook’s retirement of Domain Insights in this article.

Xem thêm: Tải phần mềm quên mật khẩu facebook trên điện thoại, máy tính

Older versions of the error message also describe how the app_id tag was used attribute interactions with ‘stories’ would be correctly attributed. Like Domain Insights, Facebook’s support for Open Graph Stories was ended (in this case, in 2018).


*
“Specify the app ID so that stories shared to Facebook will be property attributed to the app.”

You can read Facebook’s announcement for ending their support on this help page.

With the removal of Domain Insights and Open Graph Stories, the fb:app_id meta tag is no longer used anywhere in Facebook’s ecosystem.

We’re hopeful that the Sharing Debugger will be updated to remove this warning.

We removed fb:app_id from ungdungfb.com SEO

ungdungfb.com SEO used to provide a field that allowed users to add a fb:app_id value. When that was set, we would output a meta tag on each page, which looked something like . We removed this in version 15.5.

Removing this was a long-overdue change, as the tag had long since been unsupported. Additionally, obtaining an app_id value was complex and convoluted (involving creating a Facebook application, and linking it to your website). Our controls, the tag itself, and Facebook’s app creation process lead to a lot of user confusion, and a lot of support overhead for us.

The ungdungfb.com SEO plugin still manages and outputs the rest of your open graph meta data, though. It’s only the fb:app_id tag which we’ve removed.

How to remove the warning

Whilst we’re confident that the ‘missing fb:app_id warning’ isn’t something that people should worry about, we recognize that some users might be uncomfortable seeing ‘errors’ in the Sharing Debugger tool. If you’re still concerned about the message, you’ll need to ‘fix’ it by (re)introducing an fb:app_id tag.

It’s our recommendation that you don’t follow these steps, and that no action is needed – despite the warning in the debugging tool.

Adding the fb:app_id tag (back) in

Since we completely removed support for the tag in ungdungfb.com SEO, you’ll need to use another approach to add it to your theme. Because we already output other open graph tags (like og:title and og:description), we don’t recommend another plugin to reintroduce the fb:app_id tag. That’s likely to mean that you have duplicate open graph tags, which can lead to real warnings and errors.

Instead of adding a plugin, we recommend that you add the tag via your theme’s functions.php file, or via your own custom plugin. You can use the following code as an example; though don’t forget that customizations to a theme may be overwritten if not handled properly (read more on preventing this by using a child theme).

function my_custom_function_name() { $app_id = 966242223397117; $tag = ""; echo sprintf($tag, $num);}add_action( "wp_head", "my_custom_function_name" );Using Facebook’s “default APP ID”The $app_id value in our example above (966242223397117) is Facebook’s “default APP ID”. This can be used by any website as a default and will remove the error in the debugger.

If you have a Facebook app, you can replace that value and use your own application ID.

Related articles
What to do when Facebook sharing is not working correctly
Warning: No internal links appear in this page, consider adding some as appropriate.How to remove a user from your Google Search Console property

Leave a Reply

Your email address will not be published. Required fields are marked *