fbsdk - FB Login API version 2.10 request callback function is not working -


fb.api('/me?fields=name,gender,picture,email,id,link', function(response) {     console.log(response); } 

after logged facebook popup screen, i'm trying logged-in name , other details. sending request doesn't enter callback function. facebook login scope parameters email , public profile.

what problem , how can solve this?

enter image description here

i tried these 2 methods:

fb.api('/me', { fields: 'last_name' }, function(response) fb.api('/me', 'post', { fields: name }, function(response) 

it sending request api , returning response it's not coming callback function. how can response?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -