在大约一周的时间里,“喜欢”按钮在我的帖子 (single.php) 上运行良好,href='<?php the_permalink() ?>'
,但它突然开始导致以下错误消息:
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:
需要注意的几点:
- 我的网站是 WordPress 网站
- 我网站上的 opengraph 没问题
- “赞”按钮代码正确
我可以做什么来纠正这个问题?
最佳答案
如果元标记中的 app_id 是页面 ID 或不正确,则可能会引发该错误。
此外,在您的应用程序设置中,请确保设置站点 URL 和域。 “赞”按钮需要位于应用设置中设置的同一域中。
<head>
<meta property="fb:app_id" content="YourAppId"/>
</head>
关于wordpress - 使用 WordPress 永久链接时,为什么 Facebook Like 按钮会导致错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7203464/