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 sharing is not working #8

Closed
qingwei91 opened this issue Apr 25, 2016 · 4 comments
Closed

Facebook sharing is not working #8

qingwei91 opened this issue Apr 25, 2016 · 4 comments

Comments

@qingwei91
Copy link

Hi ~

Facebook share button is not working, did I make any mistake?

<FacebookShareButton url={url} title={title}>
     <FacebookIcon size={32} round />
</FacebookShareButton>
@nygardk
Copy link
Owner

nygardk commented Apr 25, 2016

Hi,

Can you elaborate how it is not working? Does anything happen when you click the button?

Double check that you are doing it as in the demo.

@qingwei91
Copy link
Author

@nygardk
Thanks for your prompt reply, yes I was following the demo

Here's the popup

screen shot 2016-04-25 at 9 08 54 pm

Or do I need to register my host domain in facebook?

Btw, thanks for building this easy to use Component

@nygardk
Copy link
Owner

nygardk commented Apr 25, 2016

It seems you are trying to share a webpage from your local environment. Facebook of course cannot access that page, but it is strange that they are returning error 500. Try configuring it with a valid web address (like http://github.com). If that works, you can safely assume that your link sharing will work in production mode when you don't have localhost in the url.

@qingwei91
Copy link
Author

@nygardk

That was indeed the problem, thanks for your help ~

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