Angular 社交分享Facebook

Angular 社交分享Facebook,angular,ionic-framework,Angular,Ionic Framework,你好,我想做一个社交分享功能,通过我的爱奥尼亚5.9项目将图片分享到Facebook上 我创建了两个选项,但都不在facebook上共享图像。只有url和文本 选择一 shareObject(object:any) { this.socialSharing.share(object.title, '', 'https://website.com/api/uploads/' + object.image_path, 'https://website.com') .then(()=&

你好,我想做一个社交分享功能,通过我的爱奥尼亚5.9项目将图片分享到Facebook上

我创建了两个选项,但都不在facebook上共享图像。只有url和文本

选择一

 shareObject(object:any)
 {
  this.socialSharing.share(object.title, '', 'https://website.com/api/uploads/' + object.image_path, 'https://website.com')
    .then(()=>{
    }).catch(()=>{
    });
}
选择二

 ionViewDidLoad() {
this.url ="www.website.com";
this.image ='https://website.com/api/uploads/' + this.object.image_path;
this.message= this.object.message;
this.subject = this.object.title;
}



 facebook(){
this.socialSharing.shareViaFacebook(this.subject, this.image, this.url).then((res) => {
  // Success
}).catch((e) => {
  // Error!
  });
 }
有人知道为什么它不发送图像吗