Comments (6)
make sure there are no spaces:
$img = $tweet->profile_image_url_https;
from footweetfetcher.
I give up :) its not want to work with.. $img = $tweet->profile_image_url_https; I am not sure what I doing wrong.. maybe missing something in FooTweetFetcher.php .. or something else.. I am not sure what..
from footweetfetcher.
try doing a print_r($tweet) to see what properties the tweet has first
from footweetfetcher.
yep.. I get a lot of properties.. and also profile avatar.. but I am not sure why I can not echo it...
stdClass Object ( [created_at] => Wed Dec 25 11:45:54 +0000 2013 [id] => 4.1581063240001E+17 [id_str] => 415810632400007169 [text] => interesting; about the Santa mask! RT @stevenkarwoski: I do love the Santa mask here, wrote an article about it http://t.co/Ky3VHQmQav [source] => Tweetbot for iOS [truncated] => [in_reply_to_status_id] => [in_reply_to_status_id_str] => [in_reply_to_user_id] => [in_reply_to_user_id_str] => [in_reply_to_screen_name] => [user] => stdClass Object ( [id] => 19663706 [id_str] => 19663706 [name] => @sweden / Jonas [screen_name] => sweden [location] => Sweden [description] => A new Swede every week / Curious, passionate, creative, interested in change & new perspectives. Husband. Dad. Friend. Market analysts. [url] => http://t.co/ep9XNsyHEw [entities] => stdClass Object ( [url] => stdClass Object ( [urls] => Array ( [0] => stdClass Object ( [url] => http://t.co/ep9XNsyHEw [expanded_url] => http://curatorsofsweden.com [display_url] => curatorsofsweden.com [indices] => Array ( [0] => 0 [1] => 22 ) ) ) ) [description] => stdClass Object ( [urls] => Array ( ) ) ) [protected] => [followers_count] => 68292 [friends_count] => 1955 [listed_count] => 1426 [created_at] => Wed Jan 28 17:33:09 +0000 2009 [favourites_count] => 7330 [utc_offset] => 3600 [time_zone] => Stockholm [geo_enabled] => 1 [verified] => [statuses_count] => 71967 [lang] => en [contributors_enabled] => [is_translator] => [profile_background_color] => FFFAE6 [profile_background_image_url] => http://abs.twimg.com/images/themes/theme1/bg.png [profile_background_image_url_https] => https://abs.twimg.com/images/themes/theme1/bg.png [profile_background_tile] => [profile_image_url] => http://pbs.twimg.com/profile_images/415032678056853504/m3yV0MCP_normal.png [profile_image_url_https] => https://pbs.twimg.com/profile_images/415032678056853504/m3yV0MCP_normal.png [profile_link_color] => 0071A6 [profile_sidebar_border_color] => C0DEED [profile_sidebar_fill_color] => DDEEF6 [profile_text_color] => 464646 [profile_use_background_image] => [default_profile] => [default_profile_image] => [following] => [follow_request_sent] => [notifications] => ) [geo] => [coordinates] => [place] => stdClass Object ( [id] => f01437d677d758ac [url] => https://api.twitter.com/1.1/geo/id/f01437d677d758ac.json [place_type] => city [name] => Lerum [full_name] => Lerum, Västra Götaland [country_code] => SE [country] => Sweden [contained_within] => Array ( ) [bounding_box] => stdClass Object ( [type] => Polygon [coordinates] => Array ( [0] => Array ( [0] => Array ( [0] => 12.1459138 [1] => 57.7275653 ) [1] => Array ( [0] => 12.4894497 [1] => 57.7275653 ) [2] => Array ( [0] => 12.4894497 [1] => 57.9790848 ) [3] => Array ( [0] => 12.1459138 [1] => 57.9790848 ) ) ) ) [attributes] => stdClass Object ( ) ) [contributors] => [retweet_count] => 0 [favorite_count] => 1 [entities] => stdClass Object ( [hashtags] => Array ( ) [symbols] => Array ( ) [urls] => Array ( [0] => stdClass Object ( [url] => http://t.co/Ky3VHQmQav [expanded_url] => http://www.swedishfishtofry.com/1/post/2013/12/santa-wears-a-mask-in-sweden-by-steven-karwoski.html [display_url] => swedishfishtofry.com/1/post/2013/12… [indices] => Array ( [0] => 112 [1] => 134 ) ) ) [user_mentions] => Array ( [0] => stdClass Object ( [screen_name] => stevenkarwoski [name] => swedishfishtofry [id] => 945705662 [id_str] => 945705662 [indices] => Array ( [0] => 38 [1] => 53 ) ) ) ) [favorited] => [retweeted] => [possibly_sensitive] => [lang] => en )
from footweetfetcher.
just as I thought. The property you are using is not at the root, rather try this:
$tweet->user->profile_image_url_https
from footweetfetcher.
Great man.. Thank you Thank you Thank you very very very much!!!!!
from footweetfetcher.
Related Issues (5)
- Username from theme options HOT 9
- Undefined variable HOT 3
- Adapt for wider use? HOT 1
- get_transient problem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from footweetfetcher.