My app should post a taken picture to facebook. The photo is stored to my firebase storage bucket. I´m getting the URL from this photo and pass that to facebook.
The URL:
https://firebasestorage.googleapis.com/v0/b/gettoworkout-50cd0.appspot.com/o/post%2F-Kbo3hZgL8DUqQv_vYZ2.jpg?alt=media&token=ce764afe-2f2e-4632-b978-f3f2cc65f9cc
This is the Graph API I´m calling:
me/photos?token=mytoken&caption=test&url=https://firebasestorage.googleapis.com/v0/b/gettoworkout-50cd0.appspot.com/o/post%2F-Kbo3hZgL8DUqQv_vYZ2.jpg?alt=media&token=ce764afe-2f2e-4632-b978-f3f2cc65f9cc&method=post
A normal file URL apart from firebase works fine. So my suggestion is, that facebook is not getting the file because of the alt=media
and token=token
attributes from firebase.
If I paste this URL to the browser, the image is downloaded not shown.
How to upload that image to Facebook?