javascript - Cant output params in fb js sdk -



javascript - Cant output params in fb js sdk -

hey guys new facebook js sdk ..i have been came through section fb.api.in fb.api have came section params..but when tried output params on console didnt works..

my code

var id = response.authresponse.userid; fb.api('/me/', { user_id : id }, function(response) { console.log(response.user_id); });

when seek code error response not defined when tried console.log(user_id) error has gone didnt outputs user_id..

hope guys can help me in doing ..any help appreciated ..thanks

javascript facebook facebook-graph-api

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -