FB.Auth.setAuthResponse is compatible only with the OAuth2 problem

Loading my facebook page in a tab shows the following error:

 FB.Auth.setAuthResponse only compatible with OAuth2.

I use the oauth parameter as follows:

FB.init({
    appId: fbAppId,
    status: true,
    cookie: true,
    xfbml: false,
    oauth: true
});

Am I doing something wrong?

+5
source share
5 answers

remove the parameters from your JDK, including:

script src="http://connect.facebook.net/en_US/all.js"
+1
source
  • Log in to the Facebook account that is responsible for the application.
  • Go to https://developers.facebook.com/apps/ and click on the appropriate application.
  • In the left menu in the "Settings" section, click "Advanced" and view the options in the "Migrations" section.

"Encrypted Access Token" "Enabled" , , . , , .

0

Facebook (, JavaScript) . Add To Timeline - , JS. , . , XFBML.

0

outh 2 add oauth = 1 js-

<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/tr_TR/all.js#**oauth=1**&xfbml=1&appId=164442023647373";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
0

ow.fbAsyncInit = function() {
    FB.init({
        appId   : '<s:property value="app_id" />',
        status  : true, // check login status
        cookie  : true, // enable cookies to allow the server to access the session
        xfbml   : true,  // parse XFBML
        oauth   : true
    });

:

response.session.access_token
response.session.uid

:

response.authResponse.accessToken
response.authResponse.userId
0
source

All Articles