Why is the Facebook Like button causing an error when using WordPress permalinks?

For about a week, the “Like” button worked fine on my posts (single.php) with href='<?php the_permalink() ?>', but it suddenly started causing the following error message:

The identifier of the application specified in the “fb: app_id” is not
allowed on the field. You must configure the database connection for
your application domain with the prefix:

Read More

A few things to note:

  • My website is a WordPress site
  • The opengraph in my website is fine
  • The Like button code is correct

What can I do to correct this?

Related posts

Leave a Reply

2 comments

  1. That error could be thrown if the app_id in the meta tag is a page id or incorrect.

    Also in your application settings, make sure to set up the site url and domain. The like button will need to be on same domain as set in app settings.

    <head>
    <meta property="fb:app_id" content="YourAppId"/>
    </head>
    
  2. Go to Facebook Developers > applications and select the application for that site!
    In AppDomains you should put your site adress
    in Mobile Web if you dont have a adress for mobile you can put the normal adress from your site if you dont have a adress for mobile (but you have to fill this one)

    Press Save

    refresh your site and try the like button 🙂

    this worked for me 🙂