Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an image of original tweet author #188

Open
Flovinskas opened this issue Feb 4, 2016 · 0 comments
Open

Getting an image of original tweet author #188

Flovinskas opened this issue Feb 4, 2016 · 0 comments

Comments

@Flovinskas
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant