javascript - Facebook events request with dynamically captured access_token returns empty data -


why following javascript return empty data?

        fb.getloginstatus(function(response) {                       if (response.status === 'connected') {                           var accesstoken = response.authresponse.accesstoken;                             console.log("accesstoken:", accesstoken);                           //maincall(accesstoken);              fb.api('/me/events/',                   'get',                     {                         "pretty":"1",                         "limit":100,                         "access_token": accesstoken                     },                       function(response) {                       newvue(response); // small vue.js template                        console.log(response);                         });                     }              } ); 

if separately access token, hardcode call fb.api array of 100 results expected.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -