Fb share isn't working
See original GitHub issueI 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
a popup opens with an error page: “Sorry something went wrong”.
When clicking the “go back” link it opens the main FB page:
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:
- Created 5 years ago
- Reactions:3
- Comments:8
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
@jupardo Thank you so much! Been wondering why it didn’t work!