How to include scope parameters in Fb login button

user3230561

I have been trying to add scope parameters using the below code.

When i add scope the button is not rendered. If i remove the scope then the button is rendered.

<div class="fb-login-button" data-max-rows="1" data-size="medium" data-show-faces="false" data-auto-logout-link="false" ></div>


<div class="fb-login-button" data-max-rows="1" data-size="medium" data-show-faces="false" data-auto-logout-link="false" scope="email,username" ></div>

fb login also makes use of javascript in such fashion.

Is there a way i can add the scope directly to the button without calling the scope in js.

 FB.login(function(response) {
                 testAPI();
 }, {scope: 'email,user_likes,username,publish_stream'});
Fabio Antunes

Instead of scope try data-scope:

<div class="fb-login-button" data-max-rows="1" data-size="medium" data-show-faces="false" data-auto-logout-link="false" data-scope="email,user_birthday" ></div>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

how to trigger FB.login() on page load?

From Dev

how to include a template with parameters in EJS?

From Dev

How to include command line parameters in the injection process?

From Dev

how to login facebook api ver 1.0 using fb sdk 3.14.1?

From Dev

How do I specify (no scope) for GitHub login

From Dev

Facebook Login through Graph API by not using FB Button

From Dev

Transform Facebook fb:login-button into SDK javascript login

From Dev

How to implement login with FB using FBSDKLoginManager?

From Dev

How to open fb and instagram app by tapping on button in Swift

From Dev

how to include parameters in label of Jmeter summary report

From Dev

Email scope is not working which is used in FB Login

From Dev

How to include named parameters in F# documentation

From Dev

How to pass the parameters to include in URL?

From Dev

Scala: How to apply implicit parameters to the different scope?

From Dev

How to Re-using Layouts with <include/> with parameters?

From Dev

How to integrate FB login with my own server

From Dev

AWS Cognito and FB login

From Dev

Trigger fb:login-button with other button Javascript

From Dev

How to include login information in an sql server mail?

From Dev

How to display FB-Login Button in JSF page?

From Dev

How to get FB login API_KEY and secret for business page?

From Dev

How properly generate fb keyhash to make login works on .apk file

From Dev

FB Login Function in Coffeescript

From Dev

How to include HTML in button text

From Dev

Facebook Login through Graph API by not using FB Button

From Dev

How to disable fb login based on some condition in hybridauth

From Dev

How to integrate FB login with my own server

From Dev

how to set authorization scope using Google login button

From Dev

Login with FB button Framework7

Related Related

  1. 1

    how to trigger FB.login() on page load?

  2. 2

    how to include a template with parameters in EJS?

  3. 3

    How to include command line parameters in the injection process?

  4. 4

    how to login facebook api ver 1.0 using fb sdk 3.14.1?

  5. 5

    How do I specify (no scope) for GitHub login

  6. 6

    Facebook Login through Graph API by not using FB Button

  7. 7

    Transform Facebook fb:login-button into SDK javascript login

  8. 8

    How to implement login with FB using FBSDKLoginManager?

  9. 9

    How to open fb and instagram app by tapping on button in Swift

  10. 10

    how to include parameters in label of Jmeter summary report

  11. 11

    Email scope is not working which is used in FB Login

  12. 12

    How to include named parameters in F# documentation

  13. 13

    How to pass the parameters to include in URL?

  14. 14

    Scala: How to apply implicit parameters to the different scope?

  15. 15

    How to Re-using Layouts with <include/> with parameters?

  16. 16

    How to integrate FB login with my own server

  17. 17

    AWS Cognito and FB login

  18. 18

    Trigger fb:login-button with other button Javascript

  19. 19

    How to include login information in an sql server mail?

  20. 20

    How to display FB-Login Button in JSF page?

  21. 21

    How to get FB login API_KEY and secret for business page?

  22. 22

    How properly generate fb keyhash to make login works on .apk file

  23. 23

    FB Login Function in Coffeescript

  24. 24

    How to include HTML in button text

  25. 25

    Facebook Login through Graph API by not using FB Button

  26. 26

    How to disable fb login based on some condition in hybridauth

  27. 27

    How to integrate FB login with my own server

  28. 28

    how to set authorization scope using Google login button

  29. 29

    Login with FB button Framework7

HotTag

Archive