to.uri.st blog RSS

Everything about the open tourist attraction database.

Follow to.uri.st on Twitter

Archive

Apr
13th
Mon
permalink

Facebook integration

It’s been a bank holiday weekend of visiting family and friends, and of Facebook integration. Now I’m not a big Facebook user, but I appreciate that a lot of people are and that it’s a great way to virally spread the news, whatever that news might be.

So I’ve been adding Javascript integration into the site so that you can select to publish your attraction amends to your Facebook feed. I’m still working out some kinks so it’s not live yet.

It’s taken quite a while, the Facebook documentation is notoriously bad, missing a number of key points that’d saved me hours. For example, no where does it say that you can’t run your code from a site with “localhost” as a hostname, as soon as I switched the code to run from another hostname, it started working. I’m not sure why the documentation doesn’t mention this, or why this limitation is in place, surely most developers start out writing code on a “localhost” server.