What’s a quick way to detect Facebook API version at runtime?
I’m not trying to do anything fancy with it, just to understand if the page I’m looking at happens to be using an ancient FB version somehow (debugging something related to FB init process). The specific API I’m referring to is the Like button.
The Facebook API isn’t versioned – it’s updated daily and with the biggest changes happening once a week.
There are also occasional updates to the supported SDKs, but they all call the same API, and unless the problem you’re encountering is specific to the SDK itself, using a specific SDK shouldn’t affect your app.
If it’s the Javascript SDK – the SDK is loaded directly (at
connect.facebook.net/en_US/all.js) from Facebook, and is updated from Facebook’s side daily