Tech Note: Latency and the Facebook Like Button

How to make Facebook notice your pages exist (a little sooner)
Technology • Views: 31,947

Here’s one of those tech notes that usually turns into an open thread, with some information that might be useful to other website monkeys.

While testing the Facebook Like button I noticed that there seems to be a latency problem somewhere in the mammoth Facebook hivemind. If the button is clicked shortly after a post appears at LGF, the number changes to ‘1’ but then immediately goes back to nothing, and the Like doesn’t appear at your Facebook Wall. After an undetermined amount of time, the button starts working properly, and the counter “sticks” instead of vanishing. To make it a little more frustrating, it doesn’t happen with every post.

While checking to see if there was something about LGF’s code that was causing this, I discovered Facebook’s URL Linter app, and plugged in the URL for one of the problem pages. It showed no errors. But wonder of wonders, the Like button that had been misbehaving suddenly started working.

Running the URL Linter must update whatever caches are not getting flushed, or whatever transaction isn’t being committed across their DB servers. I hope Facebook fixes this problem soon.

In the meantime, to make this process a bit easier I wrote a quick Javascript bookmarklet that does the Lint operation with one click, for whatever page is currently displayed in your browser. Here’s that bookmarklet, for anyone geeky enough to know what I’m talking about (install in the usual bookmarklet way):

URL Linter Bookmarklet.

Jump to top

Create a PageThis is the LGF Pages posting bookmarklet. To use it, drag this button to your browser's bookmark bar, and title it 'LGF Pages' (or whatever you like). Then browse to a site you want to post, select some text on the page to use for a quote, click the bookmarklet, and the Pages posting window will appear with the title, text, and any embedded video or audio files already filled in, ready to go.
Or... you can just click this button to open the Pages posting window right away.
Last updated: 2023-04-04 11:11 am PDT
LGF User's Guide RSS Feeds

Help support Little Green Footballs!

Subscribe now for ad-free access!Register and sign in to a free LGF account before subscribing, and your ad-free access will be automatically enabled.

Donate with
PayPal
Cash.app
Recent PagesClick to refresh
The Pandemic Cost 7 Million Lives, but Talks to Prevent a Repeat Stall In late 2021, as the world reeled from the arrival of the highly contagious omicron variant of the coronavirus, representatives of almost 200 countries met - some online, some in-person in Geneva - hoping to forestall a future worldwide ...
Cheechako
5 days ago
Views: 152 • Comments: 0 • Rating: 1
Texas County at Center of Border Fight Is Overwhelmed by Migrant Deaths EAGLE PASS, Tex. - The undertaker lighted a cigarette and held it between his latex-gloved fingers as he stood over the bloated body bag lying in the bed of his battered pickup truck. The woman had been fished out ...
Cheechako
2 weeks ago
Views: 317 • Comments: 0 • Rating: 1