Message text not populating in Facebook share dialog via SimpleShare
Steps to reproduce
- Pass a message & url parameter to simpleShare
- Share to Facebook
Expected behaviour
Message should populate in the dialog with the url below.
Actual behaviour
Message is not populated in the dialog when a url is provided.
Environment
- React Native 0.57.5:
- iOS 12.2
react-native-share
master
Code
These only populate the url for Facebook:
Share.open({
message: 'Test Message',
url: 'https://www.google.com',
});
Share.open({
message: 'Test Message. Share this https://www.google.com',
});
This populates the message field correctly (no url) for Facebook:
Share.open({
message: 'Test Message',
});
Screenshots: same message & url params shared to Slack vs Facebook using Simple Share
| Simple Share | Slack | |
|---|---|---|
I got a similar problem using whatsapp to Share. But my behaviour is that the image wasn't share, but the message was. Can you dig on this problem? Maybe it could be related to the library used to share on IOS.
This happened on Android?
#474
Did you solve your issue?
hope this could help .. https://developers.facebook.com/policy/#socialplugins .. check 5.a
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open.
is it still a thing?
is it still a thing?
I need to test to this on IOS, but it looks related to how facebook manages their deeplink properties. We need to document this scenarios on a Troubleshoot section. I see a similar problem when someone tries to share a base64 on some apps
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open.
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.
is it still a thing?
yes, it's still happen in 1.2.1 version
yes, it's still happen in 1.2.1 version
As far i remember i don't get this error using this version. You can try and let us know if this still a problem?
I have a similar problem in WhatsApp. Sharing only url image works, but sharing message with url doesn't (only message got shared). This happens only on iOS.
Are you familiar with this issue?
@tolik85 I was haveing this problem. Unfortunately it look's related to a specific way on how WhatsApp handle that content. I solved that, removing the message when i was sharing a image to whatsapp. 😢
@MateusAndrade So basically no way to share both image and text on WhatsApp iOS? Weird it does work on Android
@MateusAndrade So basically no way to share both image and text on WhatsApp iOS? Weird it does work on Android
Until now yep, i don't found a way to pass that. Needed to set a Platform.OS === "os", but maybe there is some update on the last version WhatsApp, etc. Btw, you can give a try with our master version.
OK, thanks for the answer.