[英]Share API does not share message with Facebook
我在React native中使用Share API,如下所示。
handleSharePress() {
Share.share({
message: `I scored ${this.score}% in React Quiz: https://play.google.com/store/apps/details?id=com.vijayt.reactquiz`
}, {
dialogTitle: 'Share my score'
});
}
共享可以在帶有Twitter的Android中正常工作。 但是在Facebook上,我沒有在共享中看到消息文本。
這是因為Facebook不允許您這樣做。 根據他們的平台政策2.3,您不能將文本預填到共享對話框中, 所有內容必須由用戶輸入 :
將用戶未輸入的任何內容預填充到用戶消息參數中,即使他們可以在共享前編輯或刪除該內容。 這適用於帖子,評論,照片標題和相冊標題。
資料來源: https : //developers.facebook.com/docs/apps/review/prefill
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.