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
Post a Comment