Hi. I want to create a “share to Facebook” link/button on my website. But I don’t want to use Facebook’s own social plugin share button because it doesn’t fit my design. And I don’t want to use sharer.php either because Facebook doesn’t recommend it anymore. What’s the easiest way to do it? I’ve read the Share Dialog section on Facebook Developers, but I have no Javascript skills so I don’t understand anything. I do have OG tags and an app ID. How do I create a link that triggers the share dialog by which visitors can share the current page on fb? Easiest way possible!
You can do it with a simple link:
<a href="http://www.facebook.com/share.php?u=URL-HERE&title="PAGE-TITLE-HERE">Share on Facebook</a>
Just fill in the capitals with the relevant URL and page title.
You can, of course, use a bit of JS to turn this into a nice popup, but you asked for the “easiest way possible!”, so you got it.
How does the design not fit into yours? Perhaps it can be modified to suit your needs. Have you considered the possibility?
Thanks. But I’m afraid the simple sharer.php way will be unsupported by Facebook in the future (there are no docs on sharer.php on Facebook Developers anymore). I’m looking for a simple alternative, but there doesn’t seem to be one if your not skilled at Javascript, API, FB.ui, PHP etc…
O, I see what you mean. Darn, that’s a shame.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.