You can configure your global facebook options within the seo property in your nuxt.config.js

You may also set page specific facebook options via the Nuxt head or asyncData methods.

For most websites, these values are unlikely change for each page. So setting them once via the global config may be the best option.


All Facebook options can be accessed via the seo.facebook or seo.fb properties.

export default {
  seo: {
    facebook: {
      appId: '',
      pageId: '' 


The facebook app id

  • Default: false
  • Type: String


The facebook page id

  • Default: false
  • Type: String
Edit this page on GitHub Updated at Sat, Apr 30, 2022