【发布时间】:2023-03-08 14:45:01
【问题描述】:
您好,我正在尝试使用 Ionic Native 社交分享功能:
shareViaFacebook(消息、图片、网址)
我有一些图像存储在 Firebase 存储中。
我将 firebase 中的 image.downloadURL 传递给 image 参数和 url 参数,但它们都不起作用。
我传递的网址是
// "Public" unguessable URL, accessible by anyone with the link
// This is secured because that token is *very* hard for someone to guess
https://firebasestorage.googleapis.com/v0/bucket/object?alt=media&token=<token>
我尝试使用 encodeURL 和 encodeURLComponent 但无法让 ionic 应用程序将 firebase 存储的图像共享到 facebook。
我可以通过将图像的 url 传递给图像参数来分享其他照片,例如任何随机的谷歌图像照片。
【问题讨论】:
标签: firebase ionic-framework firebase-realtime-database ionic3