Code Monkey home page Code Monkey logo

Comments (4)

samirph avatar samirph commented on May 18, 2024 1

I had the same issue. The scope was correct and the facebook app config had the correct permissions.
Still, it was a bit difficult to find that in here:

      FB.api('/me', dude => {
        console.log(`Good to see you, ${dude.name}.`)
      })

You should add an object with a attribute "fields" to get the fields I wanted like this:


FB.api(
        '/me',
        'GET',
        {'fields': 'email,name'},
        dude => {
          console.log(dude)
          console.log(`Good to see you, ${dude.name}.`)
        }
      )

Wouldn't work in my project otherwise.

from vue-facebook-signin-button.

ddo avatar ddo commented on May 18, 2024

add more scope and also set the facebook app permissions

from vue-facebook-signin-button.

volkanozyilmaz avatar volkanozyilmaz commented on May 18, 2024

Hey @phanan Could you update your doc with this sample

FB.api( '/me', 'GET', {'fields': 'email,name'}, dude => { console.log(dude) console.log(Good to see you, ${dude.name}.) } )

please. It takes time to find it here.

from vue-facebook-signin-button.

phanan avatar phanan commented on May 18, 2024

This has nothing to do with the plugin. You should know your away around FB's API.

from vue-facebook-signin-button.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.