3pillarlabs / socialauth

Java Library for authentication, getting profile, contacts and updating status on Google, Yahoo, Facebook, Twitter, LinkedIn, and many more providers.
https://3pillarlabs.github.io/socialauth/
MIT License
249 stars 141 forks source link

twitter upload image does not works #91

Open vickyagrl opened 8 years ago

vickyagrl commented 8 years ago

Getting error while upload image with status in twitter.

org.brickred.socialauth.exception.SocialAuthException: java.net.ConnectException: Connection timed out: connect at org.brickred.socialauth.util.HttpUtil.doHttpRequest(HttpUtil.java:337) at org.brickred.socialauth.util.OAuthConsumer.uploadImage(OAuthConsumer.java:634) at org.brickred.socialauth.oauthstrategy.OAuth1.uploadImage(OAuth1.java:203) at org.brickred.socialauth.provider.TwitterImpl.uploadImage(TwitterImpl.java:511)

tokajac commented 8 years ago

Hello, works here, once manager object is properly initialized and connected on callback, pseudocode: provider.uploadImage( statusMsg, imageName, new java.io.FileInputStream( imagePathOnServer ) ) Does updateStatus() works? Might check twitter app settings in back-office and/or local firewall permissions Regards

vickyagrl commented 7 years ago

update status and upload image both works but only for single image upload. it does not support multiple file uploads. Is there any plan to add new upload api which allows multiple file uploads for single tweet message?