Got 403 error while posting in my account

media
php

#1
$code = $tmhOAuth->request( 'POST','https://api.twitter.com/1.1/statuses/update_with_media.json',
       array(
            'media[]'  => "@{$image};type=image/jpeg;filename={$image}",
            'status'   => $status,
       ),
        true, // use auth
        true  // multipart
    );

here is my request code in which if some time status is large then i get 403 error and if status is small then i got 200 success code
how can i solve this?


#2

Can you be more specific about what large/small are, and provide self-contained sample code via a gist we can try with?


#3

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.