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

Facebook Message not showing #46

Open
chandrasekhar-nyros opened this issue Aug 2, 2017 · 3 comments
Open

Facebook Message not showing #46

chandrasekhar-nyros opened this issue Aug 2, 2017 · 3 comments

Comments

@chandrasekhar-nyros
Copy link

Hi,

I shared the content in facebook. But in facebook it shows ip address instead of actual message i shared. Please help me.

Thanks! in advance..

@doefler
Copy link
Owner

doefler commented Aug 2, 2017

Hi @chandrasekhar-nyros

Can you show what you did and which link you tried to share?

To be honest "react-native-social-share" has no power over what Facebook does with the shared content. It just uses the Facebook share method that is built into iOS.

@chandrasekhar-nyros
Copy link
Author

Hi @doefler

I am using local url present below is my code what i am sharing

GLOBAL.BASE_URL = "http://203.193.173.125/"

let shareOptions = {
title: "Ride from "+this.props.pic.ride_id[0].start_location+" to "+this.props.pic.ride_id[0].end_location+" on "+this.props.pic.ride_id[0].start_date,
message: "Ride from "+this.props.pic.ride_id[0].start_location+" to "+this.props.pic.ride_id[0].end_location+" on "+this.props.pic.ride_id[0].start_date,
url: ''+GLOBAL.BASE_URL+''+this.props.pic.mapSnapshot,
subject: "My Ride from "+this.props.pic.ride_id[0].start_location+" to "+this.props.pic.ride_id[0].end_location+" on "+this.props.pic.ride_id[0].start_date, // for email
};

@doefler
Copy link
Owner

doefler commented Aug 2, 2017

Ok then it all makes sense 😄
The Facebook sharing API doesn't allow us to customize the text anymore.
Instead, Facebook scrapes the linked page and looks for graph data to pull into the post.
So all you need to do is to add graph data to each shared link.
See this link for some info about it:

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

2 participants