找到你要的答案

Q:Default Text missing during facebook share in Iphone 5

Q:默认文本丢失脸谱网份额在iPhone 5

In an App developed we are facing problem when sharing some feature of the App in 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.

We have implemented the Facebook integration, but things don't give us the desired outcome. Refer to attached image for more details.

在开发的应用程序中,我们面临的问题时,分享一些功能的应用程序在脸谱网。我们打算共享的默认文本似乎并没有出现。但是,当脸谱网应用程序共享一个图像时,没有问题。

我们已经实施了脸谱网整合,但事情并没有给我们预期的结果。请参阅附加图像的更多细节。

answer1: 回答1:

Because Facebook has deprecated the functionality to pre-fill the caption text programmatically. Below is the reference:

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!

因为脸谱网已经过时的功能预先填写的标题文本编程。下面是参考:

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

上个月我也遇到了同一个问题,我得出了这个结论。

希望这有助于!

answer2: 回答2:

you can use FBSDKShareLinkContent with 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];

你可以使用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];
ios  iphone  facebook