When I do a preview of my stream on your website it shows the the users twitter avitar


#1

I can’t see the avatar url in the data returned :

data: Object
interaction: Object
id: "1e1b08d224a5a680e074cabf943aabea"
type: "twitter"
proto: Object
language: Object
tag: "en"
proto: Object
salience: Object
content: Object
sentiment: 3
proto: Object
proto: Object
twitter: Object
created_at: "Thu, 07 Jun 2012 10:40:01 +0000"
id: "210682517156667392"
in_reply_to_screen_name: "JaiBrooks1"
in_reply_to_user_id: "435525090"
mentions: Array[1]
source: "web"
text: "@JaiBrooks1 #followmeJaiBrooks pretty plz with a 20 scooped ice cream and a cherry on the bottom? :wink: 51"
user: Object
created_at: "Wed, 04 May 2011 09:02:56 +0000"
description: "BELIEBER, kenzette, swifty, macer, black star, beadlesator. luv the HUNGER GAMES! once a belieber always a belieber. MET THE JANOSKIANS 31/3/12"
followers_count: 580
friends_count: 1120
id: 292825031
id_str: "292825031"
lang: "en"
listed_count: 6
location: "swagstralia!!! Panem D2"
name: "Katniss Everdeen "
screen_name: "iwantjbhappy"
statuses_count: 6818
time_zone: "Melbourne"
url: "http://www.youtube.com/user/VIPTIA?feature=mhee"
utc_offset: 36000
proto: Object
proto: Object
proto: Object
hash: “75a77d83f388a5f328ce9a87592f4b7a”

Are you doing additional requests in order to get the picture or am I missing something?

Thanks

Simon


#2

The user's avatar URL is available in the ['interaction']['author']['avatar'] object.


#3

Hi,

Thanks for the answer, but the interactions object only contains an ID and a type.

id: "1e1b08d224a5a680e074cabf943aabea"
type: “twitter”

Here is the JSON as I get it back for a tweet:

{ hash: ‘75a77d83f388a5f328ce9a87592f4b7a’,
data:
{ interaction:
{ id: ‘1e1b0af31da9a700e074206eb146e49e’,
type: ‘twitter’ },
language: { tag: ‘en’ },
salience: { content: [Object] },
twitter:
{ id: ‘210743878633000962’,
retweet: [Object],
retweeted: [Object] } } }


#4

Please ensure your Interaction Data Source is switched on in your Data Sources page.


#5

Ahh lovely. Worked a treat.

Thanks!