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