Yortw / tweetmoasharp

TweetSharp is a fast, clean wrapper around the Twitter API.
Other
72 stars 22 forks source link

No Media being returned using ListTweetsOnUserTimeline #75

Closed christophermacdee closed 4 years ago

christophermacdee commented 5 years ago

Currently on v4.0.3 of the package and there are no Media being returned under the Entities for each tweet.

I can't update to latest package version as I have another package that restricts me updating my Newtonsoft.Json package. Is this due to a change in Twitter API?

Thanks, Chris MacDonald

Yortw commented 5 years ago

Hi,

Very sorry it's taken me so long to get back to you. I've just run a test and I definitely get some media appearing in the Entities.Media collection (for at least some tweets) when calling methods like ListTweetsOnHomeTimeline. From memory (and it's been a while since I worked on this), some media doesn't show up in the media collection (IIRC correctly animated gifs and images where more than one image was attached to a tweet). You should be able to find the other media types in the ExtendedEntities property of the tweet. Also make sure the IncludeEntities property of the service isn't set to false for some reason.

Also, I added a MergeMultiplePhotos property to JsonSerializer. If you create your own instance of the serializer, set that property to true and pass it to the TwitterService instance you're using, then it will put additional still images from ExtendedEntities into the normal Entities.Media collection, so there's a single source, but you may still need to use ExtendedEntities for video/animated gifs etc.

If you are still having problems, please provide the id of a tweet that has the issue and I'll see if I can debug based on that sample.

Thanks.

Yortw commented 5 years ago

PS: Are you not able to use a binding redirect to work around the dependency issue?

christophermacdee commented 5 years ago

Hi Troy,

Thanks for getting back in touch. We ended up using Juicer to manage multiple accounts and we created an API wrapper to use that instead. Sure it was probably a configuration issue on my end.

Many thanks, Chris

On Sat, Jan 5, 2019 at 4:06 AM Troy Willmot notifications@github.com wrote:

PS: Are you not able to use a binding redirect to work around the dependency issue?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Yortw/tweetmoasharp/issues/75#issuecomment-451625759, or mute the thread https://github.com/notifications/unsubscribe-auth/ArSXGOXiRHQgn5Ca1GYdvFUp0aOOWb5Iks5vACTEgaJpZM4Y6CLm .

Yortw commented 4 years ago

Probably the same as #79.