Description not shown in Facebook ShareDialog

前端 未结 2 1537
甜味超标
甜味超标 2021-01-14 10:32

I am trying the ShareLinkContent using the ShareDialog from Facebook in my Android App. Following is the code snippet I have used. I have the content title and the descript

相关标签:
2条回答
  • 2021-01-14 11:06

    Though it is delayed answer. I have been through this recently and found out that it is not possible, even if its possible by any means, its not with Facebook Platform Policy. And specifically this policy.

    Even when you do go to declaration, I got this

    /** * Sets the user generated caption for the photo. Note that the 'caption' must come from * the user, as pre-filled content is forbidden by the Platform Policies (2.3). * * @param caption {@link java.lang.String} of a {@link com.facebook.share.model.SharePhoto} * @return The builder. */

       public Builder setCaption(@Nullable final String caption) {
            this.caption = caption;
            return this;
        }
    
    0 讨论(0)
  • 2021-01-14 11:17

    Facebook's publish_actions permissions reference states that it's not allowed to:

    Pre-fill the user message parameter with any content the user didn't enter themselves, even if they can edit or delete that content before sharing. This applies to posts, comments, photo captions, and photo album captions.

    I guess they decided to block the title and description parameters.

    0 讨论(0)
提交回复
热议问题