How do you pass an apostrophe through a URL?

Had the same problem, encodeURIComponent didn’t encode single quote. The trick is to do the replacement of ‘ with %27, after the encoding: var trackArtistTitle = encodeURIComponent(“Johnny Vegas – Who’s Ready Fo’r Ice Cre’am”) // result: Johnny%20Vegas%20-%20Who’s%20Ready%20Fo’r%20Ice%20Cre’am trackArtistTitle = trackArtistTitle.replace(/’/g, ‘%27’) // result: Johnny%20Vegas%20-%20Who%27s%20Ready%20Fo%27r%20Ice%20Cre%27am This way, trackArtistTitle will be properly decoded on server i.e. with … Read more

Allowing multiple domains for 1 Facebook App (like Tumblr)

I ran into this same issue. I figured that Tumblr must have some sort of partnership in place with Facebook to get this special treatment ( ip whitelist? special api? ) — so I contacted my former Partnerships Rep at Facebook to enquire. I got to speak with a platform engineer at Facebook about this, … Read more

Loading external javascript in google chrome extension

The issue is that the JavaScript inside the content scripts runs in its own sandboxed environment and only has access to other JavaScript that was loaded in one of two ways: Via the manifest: { “name”: “My extension”, … “content_scripts”: [ { “js”: [“https://connect.facebook.net/en_US/all.js”] } ], … } Or using Programmatic injection: /* in background.html … Read more

Error Invalid Scopes: offline_access, publish_stream, when I try to connect with Facebook API

The permissions offline_access and publish_stream are deprecated, thus cannot be requested anymore. publish_stream can be replaced by publish_actions, offline_access is gone. See https://developers.facebook.com/docs/facebook-login/permissions/v2.4#reference https://developers.facebook.com/docs/apps/changelog

Can you get a public Facebook page’s feed using Graph API without asking a user to allow?

If you’re anything like me your clients won’t want a standard Facebook likebox plugin, they’ll want it all styled and customised their own way. You don’t need to spend all day going round the official documentation wondering if any of it applies to you for something simple like this, it’s quite easy. The confusion arises … Read more