Reputation: 2687
Why does FB.api('/me/accounts' ...) return an empty array as response?
var access_token = FB.getAuthResponse()['accessToken']; // access_token is ok
FB.api('/me/accounts', 'get', {"access_token":access_token},
function(response) { /* response is an empty array... why? */ }
);
Upvotes: 1
Views: 1127
Reputation: 74014
Btw, you don´t need to add the Access Token when using FB.api. One important point of using the JavaScript SDK is that you don´t need to worry about Access Tokens.
Upvotes: 1