3 ms·
> It doesn't have to be the entire page that's hashed, only the content being liked. I think there's a disconnect here... The page to which your posted link po
by close04 7y ago
> It doesn't have to be the entire page that's hashed, only the content being liked.
I think there's a disconnect here... The page to which your posted link points is the content. Whatever loads when clicking the link is the content you hash, with ads, scripts, the main body, the comments, the everythings. If I link to the front page of HN it's guaranteed it will never ever have any likes. If I link to an article that says something like "posted 6 minutes ago" then every minute the page changes.
A FB robot loads the link, receives some data (the full page), hashes that, attaches it to your "Like". Then rehashes periodically.
But every time someone clicks the same link they load slightly different content. Simply because something on that page changes. A new comment in that page, an evolving story where the site puts updates, a live blog, or a different ad loaded on the page, which are all valid reasons for a page to change. They would all invalidate the like.
So what happens next time? FB robot loads page, gets data, hashes, new hash doesn't match. Your Like is removed because the page changed. You might as well remove the Like button for anything linking outside of FB.
Educating users is an option, big warning that the content behind the link may change but let's be honest, most people will be oblivious to the implications.
- kerkeslager 7y ago> The page to which your posted link points is the content. I disagree, the page is not the content of the page. I hear where you're coming from though: what you're saying is a widely-accepted approximation because "semantic HTML" is not semantic, so we don't have a way to get the actual content from an HTML page. This is by design: lots of big websites have a vested interest in making it impossible to separate their content from their presentation. But I don't think future implementations have to be bound by previous bad decisions.