nygardk / react-share

Social media share buttons and share counts for React
MIT License
2.6k stars 430 forks source link

Delete props from the FacebookShareButton (since Facebook doesn't accept them anymore) #487

Open mamiu opened 1 year ago

mamiu commented 1 year ago

Facebook doesn't accept parameters to the sharer.php anymore. Therefore these props can be deleted.

duc82 commented 1 year ago

+1

gwhizoftv commented 1 year ago

How can we share an image then?

mamiu commented 1 year ago

@gwhizoftv Facebook looks for the og:image meta tag in your HTML (e.g. <meta property="og:image" content="https://ia.media-imdb.com/images/rock.jpg" />).

Have a look here for more information: https://ogp.me/#metadata