Skip to content

Filtered Stream - Cannot get username nor image url from user #174

Answered by ethielknd
ethielknd asked this question in Q&A
Discussion options

You must be logged in to vote

Solved, instead of using

UserFields: []twitter.UserField{twitter.UserFieldUserName, twitter.UserFieldProfileImageURL},

With

Expansions:  []twitter.Expansion{twitter.ExpansionAuthorID},

I can get the username. So the options should be

twitter.TweetSearchStreamOpts{
  Expansions:  []twitter.Expansion{twitter.ExpansionAuthorID},
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ethielknd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant