BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Twitter integration with bb (http://www.blackberryforums.com/developer-forum/251376-twitter-integration-bb.html)

xmncxzvt 07-19-2011 01:49 AM

Twitter integration with bb
 
hi,

I am using 1.4 version of twitter jar & i am getting Security exception on

t = ter.post(t);

here z my code:

Token token = new Token(TOKEN_ACCESS, TOKEN_SECRET);

Credential c = new Credential(USER_NAME, CONSUMER_KEY, CONSUMER_SECRET,token);

UserAccountManager m = UserAccountManager.getInstance(c);

try {

if(m.verifyCredential()){
Dialog.alert("You are now logged in");


Tweet t = new Tweet("Hi!!! This is my first tweet via Twitter API ME.");
TweetER ter = TweetER.getInstance(m);

t = ter.post(t);
Dialog.alert("Posted");
}
else
Dialog.alert("User name and/or password are invalid!");
} catch (IOException e) {
// TODO Auto-generated catch block
Dialog.alert(e.getMessage());
} catch (LimitExceededException e) {
// TODO Auto-generated catch block
Dialog.alert(e.getMessage());
}


any one who has succeeded in posting tweet through bb app?


All times are GMT -5. The time now is 02:26 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.