![](/img/trans.png)
[英]How do I share html5 canvas data on the click of a Facebook share button?
[英]Is there a way to share a html5 canvas image with facebook api?
我找到了一些關於如何將 canvas 轉換為 blob 並將其發布到用戶提要的教程。 但“publish_actions”權限已於 2018 年從 api 中刪除,新的 Share Api 似乎只接受 url。 有沒有辦法在沒有圖像托管的情況下共享我的 html5 canvas 圖像?
不,共享對話框無法做到這一點。 它只從共享 url 的 og:image 標簽中獲取圖像。 您只能使用 API 對 Pages 執行此操作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.