Skip to content

Getting an image of original tweet author #188

@Flovinskas

Description

@Flovinskas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions