I’m including the FaceBook JS SDK like this:
<script src="http://connect.facebook.net/en_US/all.js">
But eventually I get this error in FireBug:
FB.getSession incompatible with OAuth2. http://connect.facebook.net/en_US/all.js
I’m completely lost. I’ve been trying to figure out what’s going on since yesterday but no luck. Am I doing something wrong?
The Get Session function is no longer used. The FB.getAuthResponse method is a replacement for the FB.getSession method which was deprecated after the migration to OAuth 2.0.
https://developers.facebook.com/docs/reference/javascript/FB.getAuthResponse/