Post media in tweet show pic.twitter

media-upload
php

#1

Dear,

I try to post tweet with image attached. I upload the image and post tweet but in tweet created only show text and link to image (pic.twitter.com/) I need to display image in tweet

Thanks

postfields = array(
        'status' => $tweetmsg,
        'media_ids' => $media_id,

    );
    try {
        $twitter = new TwitterAPIExchange($settings);
        $response = $twitter->buildOauth($url_media, $requestMethod)
                ->setPostfields($postfields)
                ->performRequest();