FBSDKShareLinkContent is not setting the contentDescription and contentTitle

前端 未结 4 2144
广开言路
广开言路 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 21:52

    I've faced a same problem and found out one workaround - direct setting mode of FBSDKShareDialog instance to FBSDKShareDialogModeFeedWeb.

    FBSDKShareDialog* dialog = [[FBSDKShareDialog alloc] init];
    dialog.mode = FBSDKShareDialogModeFeedWeb;
    dialog.shareContent = content;
    dialog.fromViewController = self;
    [dialog show];
    

    It displays the feed dialog in a UIWebView within the app with preview of your post with right title and description.

提交回复
热议问题