简体   繁体   English

在 Iphone 5 中的 facebook 共享期间缺少默认文本

[英]Default Text missing during facebook share in Iphone 5

In an App developed we are facing problem when sharing some feature of the App in Facebook.在开发的应用程序中,我们在 Facebook 中共享应用程序的某些功能时遇到问题。 The default text that we intend to share does not seem to appear.我们打算共享的默认文本似乎没有出现。 However there is no issue when there is an image present to be shared by the Facebook application.但是,当存在要由 Facebook 应用程序共享的图像时,没有问题。

We have implemented the Facebook integration, but things don't give us the desired outcome.我们已经实施了 Facebook 集成,但事情并没有给我们想要的结果。 Refer to attached image for more details.有关更多详细信息,请参阅附图。

在此处输入图片说明

Because Facebook has deprecated the functionality to pre-fill the caption text programmatically.因为 Facebook 已弃用以编程方式预填充标题文本的功能。 Below is the reference:下面是参考:

https://developers.facebook.com/docs/apps/review/prefill https://developers.facebook.com/docs/apps/review/prefill

I also faced the same problem with one of my app last month and I came to this conclusion.上个月我的一个应用程序也遇到了同样的问题,我得出了这个结论。

Hope this helps!希望这可以帮助!

you can use FBSDKShareLinkContent with FBSDKSHAREKIT您可以将 FBSDKShareLinkContent 与 FBSDKSHAREKIT 一起使用

 FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
 content.contentTitle = // HERE YOUR TEXT TITLE
 content.contentDescription = // HERE YOUR TEXT / DESCRIPTION;
 content.imageURL = // YOUR IMAGE URL;
 [FBSDKShareDialog showFromViewController:(UIViewController *)self.delegate
                             withContent:content
                                delegate:self];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM