danny0085 has asked for the wisdom of the Perl Monks concerning the following question:

I try to update profiles picturs with perl twitter api

my $result = $nt->update_profile_image('tux.png');

but I get
HTTP/1.1 403 Forbidden There was a problem with your picture. Probably too big.

I tried with several images and the same result
PD: I also tried with a tiny image (<1kb) and the same. Maybe I am sending bad the parameters?

Replies are listed 'Best First'.
Re: perl twitter api
by afoken (Chancellor) on Apr 26, 2012 at 06:09 UTC
    There was a problem with your picture. Probably too big.

    Start by reading the error message. Try uploading a very tiny image, like the one generated by this script:

    #!/usr/bin/perl -w use MIME::Base64; open OUT,'>','tiny.gif' or die "ooops: $!"; binmode OUT; print OUT decode_base64('R0lGODlhAQABAPABAIor4v///yH5BAAAAAAALAAAAAABA +AEAAAICRAEAOw=='); close OUT;

    Read the API rules. Perhaps you have hit a usage limit.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re: perl twitter api
by Anonymous Monk on Apr 26, 2012 at 06:10 UTC
    Twitter api?