question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fb share isn't working

See original GitHub issue

I added the library to a project a few days ago. Whats’app share works well, so does Twitter share, but Facebook share doesn’t. I hoped this will be similar to issue 8 (where it didn’t work cause he was using the local server), so I tried loading it to a live server page. but the problem persists also on the server. When clicking the button image

a popup opens with an error page: “Sorry something went wrong”.

image

When clicking the “go back” link it opens the main FB page:

image

here is the code of the component:

				<FacebookShareButton
					url={url}
					quote={message}
					hashtag={hashtags[0]}
				>
					<FacebookIcon
						{...ICON_DEFAULTS}
					/>
				</FacebookShareButton>

besides children all the props I pass to FacebookShareButton are strings. Any idea why this bug is happening, and how I can solve it?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8

github_iconTop GitHub Comments

9reactions
jupardocommented, Jan 10, 2019

Well, i’ve found the problem. If you’re using hashtag property on fbshare button you must start the hashtags with “#” I’ve forked your project and added # an it works.

https://codesandbox.io/s/ojn2x54jk9

0reactions
tensor-flowercommented, Apr 10, 2019

@jupardo Thank you so much! Been wondering why it didn’t work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

What to do when Facebook sharing is not working correctly
Go to Facebook's Sharing Debugger. · Enter the URL you wish to update. · Click 'Debug'. · Click 'Scrape Again'. · Look at...
Read more >
Troubleshooting Facebook sharing issues
Open Facebook's debugger tool. Add the URL you want to share and click Debug. If you have multiple custom domains, use your primary...
Read more >
Having problems with sharing to Facebook? - Strava Support
Go to your profile settings, and from the "Social Connections" pane on the right-hand side, disconnect and reconnect your Facebook account. If ...
Read more >
How To Easily Fix A Facebook Share With No Image
The easiest fix for a Facebook post image not showing is to add a new post by using the URL of the page...
Read more >
Solved: Facebook Sharing not working - Please help!
Solved: Hi, So I know how to share on facebook.l I have been doing to since always. BUTTTTT It stopped working. It says...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found