facebook / facebook/facebook-ios-sdk
Cannot share URL to Facebook app with FBSDKShareDialogModeNative
- Dominant language
- Swift
- Stars
- 8.1k
- Forks
- 3.7k
- PR merge metrics
- No merged PRs in 30d
Description
### Checklist before submitting a bug report
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing [GitHub issues](https://github.com/facebook/facebook-ios-sdk/issues)
- [X] I've looked for existing answers on [Stack Overflow](https://facebook.stackoverflow.com), the [Facebook Developer Community Forum](https://developers.facebook.com/community/) and the [Facebook Developers Group](https://www.facebook.com/groups/fbdevelopers)
- [X] I've read the [Code of Conduct](https://github.com/facebook/facebook-ios-sdk/blob/main/CODE_OF_CONDUCT.md)
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
### Xcode version
13.4
### Facebook iOS SDK version
14.0.0
### Dependency Manager
CocoaPods
### SDK Framework
Share
### Goals
Share URL to Facebook App
### Expected results
Jump to Facebook app and open page of creating post, and fill text automatically
### Actual results
Jump to Facebook app and open page of creating post, but nothing be filled
### Steps to reproduce
Create a FBSDKShareDialog instance with FBSDKShareDialogModeNative, and call show function.
### Code samples & details
```swift
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentURL = url; // NSURL with valid urlString
FBSDKShareDialog* dialog = [[FBSDKShareDialog alloc] initWithViewController:viewController content:@"some text here" delegate:self];
dialog.mode = FBSDKShareDialogModeNative;
[dialog show];
```
Contributor guide
Assessment
This issue has not been assessed yet.