I just can't plunge into deferred objects
dfd = new $.Deferred();
FB.api('/me/posts?fields=id,story&access_token='+accessToken,function(response){
dfd.resolve();
});
dfd.done(alert(dfd.isDeferred()));
In my opinion, .done should only work after the request is complete, and the callback sets the object as allowed, however the warning window launches a false message until the request is complete.
What am I missing?
source
share