Facebook iOS not working
See original GitHub issueSteps to reproduce
- Use
shareSingle
This is what I am doing:
const shareOptions = {
url: picture.uri, // <<<< dynamic
social: social === 'instagram' ? Share.Social.INSTAGRAM : Share.Social.FACEBOOK,
};
Share.shareSingle(shareOptions)
.then((res) => { console.log(res); })
.catch((err) => { err && console.log(err); });
Expected behaviour
Open the Facebook app to share the image.
Actual behaviour
Safari will open and I have the following image: href should represent a valid URL
.
The console.log
of the promise tells me that the application is not installed (instead it is installed).
Environment
- React Native version: 0.57.1
- React Native platform + platform version: iOS 12
react-native-share
Version: master (1.1.2)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:19 (4 by maintainers)
Top Results From Across the Web
Something's not working with the Facebook app for iOS.
Something's not working with the Facebook app for iOS. ... If you're having trouble downloading the app, check your internet connectivity. For best...
Read more >How to Fix issues with the Facebook App on iPhone
If you are having issues with the Facebook app on your iPhone device, the first thing you need to do is to quit...
Read more >Facebook not working on iPhone today? – 7 Fixes
1 Issue: Facebook not loading at all · 2 Switching from Safari to the official Facebook app · 3 Check your internet connection...
Read more >How to Fix Facebook App Not Loading or Working on iPhone
Solution 1: Force Quit the Facebook App ... One of the most effective methods to troubleshoot this issue is by clicking on the...
Read more >Facebook Not Working on iPhone and iPad? Here's The Real ...
Quit and Relaunch the App · Fix Internet Connectivity Issues · Check Restrictions for Facebook · Check Facebook Update · Clear History and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Experiencing the same issue. Instagram is working fine but facebook just opens up
facebook.com
on Safari with the following errorhref should represent a valid URL
.Here’s the code:
and I do have facebook in
LSApplicationQueriesSchemes
:EDIT: Ok actually the issue is only with the doc 🙂, the query scheme for facebook is not
facebook
butfb
, so just addfb
to yourLSApplicationQueriesSchemes
array and it’s going to work just fine!You can use
Linking.canOpenURL('fb://')
to detect if it’s installed or not