I followed the instructions on this page: https://developers.facebook.com/docs/plugins/share-button/#settings
And i get a working share dialog, but when i try to share to "Share in a private message", i get the following error in the share dialog: "Attachment not found: The attachment could not be found."
My application is an angular 11 application, and i have this in my index.html, right after the body tag:
<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>
The button html looks like this:
<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&src=sdkpreparse" class="fb-xfbml-parse-ignore">Share</a></div>
My initial thought was that the fb script is not playing along nicely with angular, by the fact that i am binding the url via [attr.data-href], but i dont think this is the case:
Any ideas?
Many people are complaining that they are getting the Facebook attachment unavailable error, with this error message followed by it – This attachment may have been removed or the person who shared it may not have permission to share it with you. Receiving this attachment unavailable error? How to fix Facebook Attachment Unavailable?
This attachment may have been removed or the person who shared it may not have permission to share it with you. Receiving this attachment unavailable error? How to fix Facebook Attachment Unavailable?
If someone else’s posts are unavailable If you are getting the ‘Attachment unavailable’ on someone else’s post, ask them to change the privacy of their post. Or if you are unable to contact them, it could also be possible that the original poster might have deleted the attachment.
There are times when you share the link on Facebook and thumbnail image doesn't show up or it does appear, but it is not the picture you've expected to be shown. In order to fix these steps should be taken: 1. Verify if there are OG tags on your website.
Same here.
I think it's FB bug (OR they purposely disabled attachment/link sharing for certain accounts).
There was a major outage recently in FB messenger as well: https://developers.facebook.com/status/dashboard/
This is a new bug/development. I had share buttons sharing to FB PM's perfectly fine until about the same time as you posted this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With