gpt4 book ai didi

wordpress - 为什么在使用 WordPress 永久链接时 Facebook Like 按钮会导致错误?

转载 作者:行者123 更新时间:2023-12-04 06:16:15 25 4
gpt4 key购买 nike

大约一周后,“赞”按钮在我的帖子 (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/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com