did you get the xAuth permissions from the twitter?
-- *Thanks & Regards* *Zahid Naqvi | Senior Software Engineer* -------------------------------------------------------------- * G1-11, I.T.Park, M.I.A. (Extn.) Udaipur - 313003 Rajasthan India (M) *+91-9799966000* | (R) *+91-141-2608333* *[email protected] | [email protected] On Thu, Sep 16, 2010 at 1:02 AM, Ernandes Jr. <[email protected]> wrote: > Your code looks OK! Either your problem is related to your keys our your > environment. Have you tryied to run you code on a real device? > > > On Wed, Sep 15, 2010 at 6:30 AM, vinod <[email protected]> wrote: > >> Hi, >> Hi, >> >> I imported the libraries: >> >> xauth-encoders.jar >> kxml2-min-2.3.0.jar, >> mobile-ju-framework-1.0.jar >> twitter_api_me-1.3.jar >> >> >> After using Ernandes library i am receiving errors as below >> I used single access token here >> verification of credentials are successfull. but failed to Tweet and >> received below errors >> >> In WTK 3.0 >> javax.microedition.io.ConnectionNotFoundException: ConnectionNotFound >> error in socket::open : error = 10060 >> >> In WTK 2.5.2 >> java.lang.SecurityException: Invalid / expired Token >> >> Source is as follows: >> >> Token token = new Token("token_access", "token_secret"); >> Credential c = new Credential("[email protected]", >> "8oHIBK7T90Ye7GjIF6SToA", >> "4Ebm4f7bie2AAYyN75DxwSUYeg8x0SBlL0IyKIXzaw", token); >> UserAccountManager m = UserAccountManager.getInstance(c); >> try { >> if (m.verifyCredential()) { >> System.out.println("Consumer or token keys are success"); >> Tweet t = new Tweet("Hi!!! This is my first tweet via Twitter API >> ME."); >> TweetER ter = TweetER.getInstance(m); >> t = ter.post(t); >> >> } else { >> System.out.println("Consumer or token keys are invalid!"); >> } >> } catch (Exception ex) { >> System.out.println("Exception here1="+ex); >> } >> >> If i use normal credentials my application is not able to validate >> credentials itself >> >> In WTK 3.0 >> >> javax.microedition.io.ConnectionNotFoundException: ConnectionNotFound >> error in socket::open : error = 10060 >> >> In WTK 2.5.2 >> >> Credentials unsucessfull >> >> Also when i am not able to import Equifax cert >> Please help to authentication, post and receive tweets using my >> application. >> >> Regards, >> Basu >> >> -- >> Twitter developer documentation and resources: http://dev.twitter.com/doc >> API updates via Twitter: http://twitter.com/twitterapi >> Issues/Enhancements Tracker: >> http://code.google.com/p/twitter-api/issues/list >> Change your membership to this group: >> http://groups.google.com/group/twitter-development-talk?hl=en >> > > > > -- > Ernandes Jr. > --------------------- > "ALL programs are poems. However, > NOT all programmers are poets." > > -- > Twitter developer documentation and resources: http://dev.twitter.com/doc > API updates via Twitter: http://twitter.com/twitterapi > Issues/Enhancements Tracker: > http://code.google.com/p/twitter-api/issues/list > Change your membership to this group: > http://groups.google.com/group/twitter-development-talk?hl=en > -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en
