Comments on: Create Custom Twitter Feed Widget using PHP https://www.codexworld.com/create-custom-twitter-widget-using-php/ Web & Mobile App Development Company Tue, 10 Jul 2018 19:53:59 +0000 hourly 1 By: Milan Svehla https://www.codexworld.com/create-custom-twitter-widget-using-php/comment-page-1/#comment-44503 Sat, 08 Apr 2017 16:15:47 +0000 https://www.codexworld.com/?p=712#comment-44503 Thanks Dave for advice with images. You can then echo the images for each tweet like this:

if (isset($result->entities->media)) {
    foreach ($result->entities->media as $media) {
        $media_url = $media->media_url; // Or $media->media_url_https for the SSL version.
    }
}
]]>
By: dave https://www.codexworld.com/create-custom-twitter-widget-using-php/comment-page-1/#comment-41569 Mon, 27 Feb 2017 03:43:56 +0000 https://www.codexworld.com/?p=712#comment-41569 just to follow up, images come through ok if you add these two parameters: ‘include_entities’ => true and ‘tweet_mode’ => ‘extended’, and change “$latestTweet = $tweet->text;” to “full_text”.

i’ve realized the images i was referring to are the “summary cards” that twitter transforms the included URL into, with the thumbnail, title, and description from the linked website.

any idea how to create the cards for the link? instead of just altering the URL into an anchor tag?

]]>
By: dave https://www.codexworld.com/create-custom-twitter-widget-using-php/comment-page-1/#comment-41559 Mon, 27 Feb 2017 00:15:21 +0000 https://www.codexworld.com/?p=712#comment-41559 Hello, great resource here, works well, easy to configure and adapt,
however it doesn’t show images from tweets,
I looked through the data that is returned and I don’t see the image URLs in the ‘twitterData’ object.
Is there a trick to retrieving the tweet images?
thank you.

]]>
By: Lukas https://www.codexworld.com/create-custom-twitter-widget-using-php/comment-page-1/#comment-27760 Wed, 08 Jun 2016 18:40:40 +0000 https://www.codexworld.com/?p=712#comment-27760 Hi! Super script!
One question. How can I add pictures from tweets to this script?

Thank you!

]]>
By: Brad https://www.codexworld.com/create-custom-twitter-widget-using-php/comment-page-1/#comment-24418 Thu, 24 Mar 2016 16:08:51 +0000 https://www.codexworld.com/?p=712#comment-24418 Nevermind. Figured it out.

]]>
By: Brad https://www.codexworld.com/create-custom-twitter-widget-using-php/comment-page-1/#comment-24410 Thu, 24 Mar 2016 15:06:48 +0000 https://www.codexworld.com/?p=712#comment-24410 Is there any way to exclude retweets in this?

]]>