Facebook fbml login-button does not work with perms

I recently ran into a problem when upgrading to new php and js sdk

before the login button below works fine, and a dialog box appears to give the user permission.

<fb:login-button perms="email,user_about_me,user_interests,user_location,publish_stream,read_stream,offline_access,publish_checkins">Connect Facebooks</fb:login-button>

Now the dialog will not appear, but if I select "perms" and use this button

<fb:login-button">Connect Facebook</fb:login-button>

a dialog box appears. any ideas?

+5
source share
1 answer

Update: The error that caused this problem has been resolved , so it’s best to use it <fb:login-button>, but change "perms" to "scope" to match the latest API changes:

<fb:login-button
    scope="email, user_about_me, user_interests, user_location,
    publish_stream, read_stream, offline_access, publish_checkins">
    Connect Facebooks
</fb:login-button>

: <fb:login-button>, , ( ) , FB.login() . , - :

<a id="fb_login_button" href="#" 
      onclick="FB.login(function(){ /* this is a callback function */ },
      {scope: 'email, user_about_me, user_interests, user_location,
       publish_stream, read_stream, offline_access, publish_checkins'});
       return false;">
    <img src="LOGIN_BUTTON_IMAGE.png" alt="Log In with Facebook">
</a>

( , <fb:login-button>).

( : inline onclick , , , )

+7

All Articles