News for hackers. Stuff that matters.
Re:Social share buttons that don't allow the social sites to... by Semiapies on Tuesday August 06, 2019 @01:09PM (#20627193)
Because they really should be small forms doing POSTs. There's no reason to recreate the mistakes of the early Aughts.
Re:Social share buttons that don't allow the social sites to... by _bxg1 on Tuesday August 06, 2019 @01:36PM (#20627493)
The problem is then you need JavaScript. Unless you want to show all of the form fields, all the time, on every page.

Edit: You could probably hack around this with some CSS, but only relatively recently and browser support could be a challenge.

Re:Social share buttons that don't allow the social sites to... by WindyCityBrew on Tuesday August 06, 2019 @02:17PM (#20627891)
Re:Social share buttons that don't allow the social sites to... by chrismorgan on Tuesday August 06, 2019 @07:42PM (#20630762)
Surely this is a link to a Facebook page with the form, rather than actually performing the action? Because the latter would just be so exploitable.
Re:Social share buttons that don't allow the social sites to... by GordonS on Tuesday August 06, 2019 @01:59PM (#20627722)
I don't follow - what's the issue with plain old `a` and `img` tags?
Re:Social share buttons that don't allow the social sites to... by sansnomme on Tuesday August 06, 2019 @02:51PM (#20628257)
GET requests and web scrapers. Many a DB has been corrupted due to incompetent web devs not understanding http verbs.

(In this specific case, it will most likely only ruin analytics. However, it's a good habit to use POST when you don't want automated access. E.g. if the social media also didn't implement their end properly and used GET requests for submission, the bot or crawler or whatever will fall through two layers of checks and your social media may be filled with gibberish, this scenario is however mostly theoretical. In general, you don't want a URL can modify state related to your core business logic. See HN's infamous "This Submission Upvotes Itself")

Re:Social share buttons that don't allow the social sites to... by GordonS on Tuesday August 06, 2019 @03:00PM (#20628353)
Ah, sorry, I was thinking this was for buttons linking to a company/personal Facebook/Twitter oage - I didn't realise it was about Like/Share buttons.

I was discussing this in another HN thread recently and my mind hadn't switched out yet :)

Re:Social share buttons that don't allow the social sites to... by kevin_thibedeau on Tuesday August 06, 2019 @02:52PM (#20628266)
They're for old people apparently.