I did a lot of research about this, and i can't find a proper answer for my question. FB API changed this year, and most of the answers about this topic are outdated.
My problem is: I want to share a photo on facebook, but by foto i mean, the file itself, not an URL to a photo, because the look is different, and the engagement with the post is also different.
Basically, i'm asking if there's a way to do something like "sharing" an image to facebook from iPhone Gallery, but on Web:
The expected behaviour is exactly the same as the image: When user click on share, open a dialog on user's facebook with the photo pre-loaded to be shared. It's not an automatic share.
Anyone knows if this is even possible, and if possible, whats the way to do it ? I'm not expecting a full code answer, just a point to the right direction.
Thanks!
答案 0 :(得分:0)
用户个人资料:您只能共享包含图片的URL,而不能共享图片本身。至少现在没有了。
页面:您可以使用/page-id/photos
端点将照片发布到页面上:https://developers.facebook.com/docs/graph-api/reference/page/photos/
无法通过对话框执行此操作。