gpt4 book ai didi

angular - Facebook 分享按钮问题 : "Attachment not found: The attachment could not be found."

转载 作者:行者123 更新时间:2023-12-03 14:21:14 29 4
gpt4 key购买 nike

我按照此页面上的说明进行操作:
https://developers.facebook.com/docs/plugins/share-button/#settings
我得到一个工作共享对话框,但是当我尝试共享到“在私有(private)消息中共享”时,我在共享对话框中收到以下错误:“找不到附件:找不到附件。”
我的应用程序是一个 Angular 11 应用程序,我的 index.html 中有这个,就在 body 标记之后:

    <div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
按钮 html 如下所示:
<div *ngIf="fbShareRoute" class="fb-share-button" [attr.data-href]="fbShareRoute" data-layout="button" data-size="large"><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.free-sudoku-puzzle.net%2F&amp;src=sdkpreparse" class="fb-xfbml-parse-ignore">Share</a></div>
我最初的想法是,由于我通过 [attr.data-href] 绑定(bind) url,所以 fb 脚本不能很好地与 angular 配合使用,但我认为情况并非如此:
  • 只需分享到您的个人资料
  • ,对话框就可以正常工作
  • 我尝试删除 [attr.data-href] 并仅使用硬编码的 data-href 属性,这没有任何区别。

  • 有任何想法吗?

    最佳答案

    同样在这里。
    我认为这是 FB 错误(或者他们故意禁用某些帐户的附件/链接共享)。
    最近 FB messenger 也发生了重大故障:
    https://developers.facebook.com/status/dashboard/

    关于angular - Facebook 分享按钮问题 : "Attachment not found: The attachment could not be found.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65166587/

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