react-native-social-share icon indicating copy to clipboard operation
react-native-social-share copied to clipboard

No text on Facebook share?

Open perrycbrown opened this issue 8 years ago • 3 comments
trafficstars

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

perrycbrown avatar Aug 17 '17 18:08 perrycbrown

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.

doefler avatar Aug 17 '17 18:08 doefler

Very good. Thanks Kim!

On Aug 17, 2017, at 1:49 PM, Kim Døfler <[email protected]mailto:[email protected]> wrote:

Hey @perrycbrownhttps://github.com/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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/doefler/react-native-social-share/issues/50#issuecomment-323161147, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADn6tNC0nfJQH0udUuUCpRS14GjlNjlYks5sZIsxgaJpZM4O6pyV.


Perry Brown Back-End Programmer [email protected]mailto:[email protected]

[cid:[email protected]]

www.truthforlife.orghttp://www.truthforlife.org PO Box 398000 Cleveland, OH 44139 Main: 888.588.7884 / Fax: 440.708.5578

perrycbrown avatar Aug 17 '17 20:08 perrycbrown

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.

TarunKasera2401 avatar May 22 '18 10:05 TarunKasera2401