themattharris / tmhOAuth

An OAuth 1.0A library written in PHP
Apache License 2.0
857 stars 335 forks source link

Getting an image of original tweet author #188

Open Flovinskas opened 8 years ago

Flovinskas commented 8 years ago

Dear Matt,

I use a plugin that uses your library for displaying twitter feed, however I miss one very important thing: an image of original tweet author when retweeting.

The way the request is made is this:

$output = json_decode($tmhOAuth->response['response'],true);

foreach($output['statuses'] as $tweet){
     ...
        if ($HTTPSimg=="yes") {
        $img=$tweet['user']['profile_image_url_https'];
    } else {
        $img=$tweet['user']['profile_image_url'];
    }
     ...
}

So that it always outputs an image of my twitter account, even though on retweets I would like to display profile images of original authors.

I am new to github, but if there is any information that I should have provided please ask.

Any help or guidance is much appreciated.