spring-attic / spring-social

Allows you to connect your applications with SaaS providers such as Facebook and Twitter.
http://projects.spring.io/spring-social
Apache License 2.0
619 stars 351 forks source link

I used spring social twitter upload picture to twitter, why the display is not correct on twitter? #119

Closed liuyifan closed 10 years ago

liuyifan commented 10 years ago

I used the spring social twitter api to upload picture to twitter, like this:

  TimelineOperations timelineOperations = twitter.timelineOperations();
  TweetData tweetData = new TweetData(message.getMessage());
  tweetData.withMedia(new UrlResource(new URL(timeline.getPhotoUrl())));
  timelineOperations.updateStatus(tweetData);

This operation returns 200, and I can see the uploaded pictures and message on twitter timeline, but the picture has become below this:

a49kvneb 6a r xvcl u v1

I do not know why, my english is not very good, I do not know whether it can be understood, but please help me, thank you!