Profile Image API returns page not found on mobile due to mobile.twitter.com redirect


#1

I’ve been pulling through a users twitter avatar using This URL redirects t the true path e.g. https://si0.twimg.com/profile_images/1757956058/196595_522454452825_289400851_1009412_1349512_n_normal.jpg

However, on a mobile the URL redirects to //mobile.twitter.com/api/users/profile_image?screen_name=duncanmcdougall which resolves to a 404 page rather than continue to redirect to the true image path.

Can you fix this please.


#2

I have the same problem. Any update on a fix for this?


#3

You should not rely on unpublished endpoints to retrieve data. Instead, use an endpoint that returns a User object, like [node:10320].