Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No text on Facebook share? #50

Open
perrycbrown opened this issue Aug 17, 2017 · 3 comments
Open

No text on Facebook share? #50

perrycbrown opened this issue Aug 17, 2017 · 3 comments

Comments

@perrycbrown
Copy link

Although I provide text for a Facebook share in the code:

facebookShare : function() {
shareOnFacebook({
'text':'7Questions: ',
'image': '7QLogo400',
},
(results) => {
console.log(results);
}
);
},

The image shows up, but the text does not:

img_0245

@doefler
Copy link
Owner

doefler commented Aug 17, 2017

Hey @perrycbrown

Facebook has changed what they allow the sharing modal to load with.
Now they only allow links.
Then the user will have to write their own text and pick their own image.

@perrycbrown
Copy link
Author

perrycbrown commented Aug 17, 2017 via email

@TarunKasera2401
Copy link

TarunKasera2401 commented May 22, 2018

Hey @doefler ,

I am unable to share text and image on facebook. Please check my code snippet.

import twitterIcon from '../assets/twitter.png';
_fbSharing = () =>{
// Alert.alert('On Fb Sharing');
shareOnFacebook({
// 'text': 'hello tarun',
'image': twitterIcon,
'link':'https://artboost.com/',
'imagelink':'https://artboost.com/apple-touch-icon-144x144.png',
'image': 'artboost-icon', },
(results) => {
console.log(results);
}
);
}
should I have convert local image path to URL then pass into image: parameter?

Could you please share your views, how can I share text and image on facebook.

Thanks.. hope you reply soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants