FBSDKShareLinkContent is not setting the contentDescription and contentTitle

前端 未结 4 2109
广开言路
广开言路 2021-02-18 21:48

I am trying to share a link on the Facebook using FBSDKShareLinkContent.

I have set the URL, description and title. SDK is automatically populates the titl

4条回答
  •  有刺的猬
    2021-02-18 22:00

    Use quote property of FBSDKShareLinkContent instead

    FBSDKShareLinkContent *linkContent = [FBSDKShareLinkContent new];
    linkContent.quote = @"your quote";
    
    FBSDKShareDialog *shareDialog = [FBSDKShareDialog new];
    shareDialog.shareContent = linkContent;
    

    setContentTitle and setContentDescription have been deprecated from Graph API 2.9. For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations

提交回复
热议问题