Twitter API Retweet with OAUTH.io

I'm trying to make a function to retweet a Tweet by its ID, Im using oauth.io set up and using this twitter document https://dev.twitter.com/docs/api/1.1/post/statuses/retweet/%3Aid to do the retweet, Why is it not working?

Below is the code im currently using but it's not working and i cannot debug it.

 $scope.retweet = function(){
        OAuth.popup('twitter', {
            cache: true
        })
        .done(function(result) {
          idstr = '506562675812630500';
          result.POST('/1.1/statuses/retweet/'+idstr+'.json')
                            .done(function(data) {
                                alert(data);
                            })
                            .fail(function( jqXHR, textStatus, errorThrown) {
                                alert(textStatus);
                             });
        })
        .fail(function (err) {

        });
}