For those that wish to use javascript but do not want to use the Facebook javascript library:Works even if javascript is disabled, but gives you a popup window with share preview if javascript is enabled. The contained object must have the keys The URL of a picture attached to this post. If specified, it must be the ID of the person or of a page that the person administers.The ID of the profile that this story will be published to. As a freelance web developer working almost exclusively on the front-end, I’ve opted to use JavaScript/jQuery functionality that, without customization, works as a turnkey solution for my projects. Pick the URL of a website or Facebook Page you want to share. Teams. Q&A for Work. Erstelle ein Konto oder melde dich bei Facebook an. There is a JavaScript version of the code, and a PHP equivalent.There is minimal error checking and input validation.Use at your own risk, no guarantees about reliability, performance, or possible un-intended side-effects. ===== AUTHOR. And it still supports non-JavaScript users.You can use the Feed URL "Direct URL" option, as described on the You can also bring up a Feed Dialog by explicitly directing the user to the /dialog/feed endpoint:Looks like they no longer mention "sharing" anywhere in their docs; this has been replaced with the concept of adding to your Feed.I know it's an old thread, but I had to do something like that for a project and I wanted to share the 2019 solution.You can create an href without any javascript what so ever.Lots of these answers no longer apply, so here's mine:But you have to put in your registered app_id, the href, and a redirect uri.Please visit the website and you will get Facebook, google+ and Twitter share links In case you want to share on more forums, here is the solution.. To preview a link share to iTunes or Google Play, enter your URL into the The URL to redirect to after a person clicks a button on the dialog. I have like/share code on my homepage that is set to like/share the facebook page associated with my business. This article demonstrates how to use Facebook share button functionality with master page or without master page in asp.net.This article demonstrates how to use Facebook share button functionality with master page or without master page in asp.net.The use of facebook share button is when you click on share button which opens a Facebook share dialog. Here are some example code snippets that can be used to trigger this dialog.If a person has the "Who can post on your timeline?" Also, I'm using some javascript to fill in the current page URL: @GavinoGrifoni it's better to include the current URL server-side to support non-JavaScript usersBut it is not possible to access that dialog without registering an App ID?Thanks for posting this answer.
Facebook-Share. It seems to be ignoring the facebook meta tags I have on the page. By using our site, you acknowledge that you have read and understand our The picture must be at least 200px by 200px. If SWF, you must also specify This argument is a comma-separated list, consisting of at most 5 distinct items, each of length at least 1 and at most 15 characters drawn from the set '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_'. Verbinde dich mit Freunden, Familie und anderen Personen, die du kennst. Click the Get Code button to generate your share button code. Required when using URL redirection.The ID of the person posting the message. Concepts how to integrate the Facebook SDK for JavaScript in your AngularJS app. Create Facebook share links, Twitter "tweet this" links, LinkedIn share links, Pinterest "pin this" links and email "mailto" links that will work anywhere — even inside emails!
You can also force the popup or page types when using the JavaScript SDK, if necessary. Learn about customizing options of the Facebook SDK for JavaScript. See our documentation on The caption of the link (appears beneath the link name). Thanks !This is not what I was asking for. If not specified, this field is automatically populated by information scraped from the link, typically the title of the page.

Please feel free to remix, re-use, and modify as you wish. By Jake Rocheleau on May 18th, 2020 CSS & JavaScript.