Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 209
Registered: ‎04-30-2011
My Device: BlackBerry Z10
My Carrier: Airtel

Re: Twitter is Integrated in BlackBerry

Hey Md. Aziz,

I am not getting any kind of error.

You can get the token value from ShowAuthBrowser class.

 

public void onAuthorize(final Token token) {

 
Thanks 

Developer
Posts: 139
Registered: ‎02-23-2012
My Device: Blackberry bold
My Carrier: Vodafone India

Re: Twitter is Integrated in BlackBerry

Thanks for your quick response.

Yes, I know this that in onAuthorize() you are fetching StoreToken that means you are getting which are has no value check this

token = "nothing";
secret = "nothing";
userId = "nothing";
username = "nothing";

Thats why I am asking you what is the difference between your running code and the code which I am using.

I am getting error message from onFail() method. Can you please figure out what values you had set for token and secret of StoreToken class, I thing this what the difference is.

warm regards
Mohammed Aziz
Developer
Posts: 209
Registered: ‎04-30-2011
My Device: BlackBerry Z10
My Carrier: Airtel

Re: Twitter is Integrated in BlackBerry

I do receive the token , and then store it into final Token myToken, After this,

final Token myToken = token;

I do store secret, userid and name.


_tokenValue = StoreToken.fetch();
_tokenValue.token = myToken.getToken();
_tokenValue.secret = myToken.getSecret();
_tokenValue.userId = myToken.getUserId();
_tokenValue.username = myToken.getUsername();

Developer
Posts: 139
Registered: ‎02-23-2012
My Device: Blackberry bold
My Carrier: Vodafone India

Re: Twitter is Integrated in BlackBerry

Good Morning Pankaj

How are you?

Now I need to ask you after getting the PIN fron authorize page where should I pass that PIN or how to use that PIN in your provided code?

BTW Congratulations on getting a new rank.......

Thank you
warm regards
Mohammed Aziz
Developer
Posts: 139
Registered: ‎02-23-2012
My Device: Blackberry bold
My Carrier: Vodafone India

Re: Twitter is Integrated in BlackBerry

Thank you for all your responses and time.

Eventually I got succeeded in integrating twitter with my app.

Now is there any way to post images on twitter?

Thank you once again.....
warm regards
Mohammed Aziz
Highlighted
Developer
Posts: 209
Registered: ‎04-30-2011
My Device: BlackBerry Z10
My Carrier: Airtel

Re: Twitter is Integrated in BlackBerry

Hi Mohammed

I have not test it for post images....
Developer
Posts: 209
Registered: ‎04-30-2011
My Device: BlackBerry Z10
My Carrier: Airtel

Re: Twitter is Integrated in BlackBerry

HI MohammedAziz,

If my code really help you. Then feel free to press kudo..

Pawan
Developer
Posts: 139
Registered: ‎02-23-2012
My Device: Blackberry bold
My Carrier: Vodafone India

Re: Twitter is Integrated in BlackBerry

Kudosssssss

Okay?


Thank you
warm regards
Mohammed Aziz
Developer
Posts: 209
Registered: ‎04-30-2011
My Device: BlackBerry Z10
My Carrier: Airtel

Re: Twitter is Integrated in BlackBerry

Actually, I means that press as solution.

So that next one developer may get help here.

Thanks 

Contributor
Posts: 23
Registered: ‎10-17-2011
My Device: 9700
My Carrier: NA

Re: Twitter is Integrated in BlackBerry

Hi Pawan,

                       Ur code is working fine but the problem i am facing with PIN , its giving PIN where to use that PIN Exactly.

i am getting it but i dnt kw where to use it because i am not getting any notification for blackberry smartphones 5.0 , please help me on this .

 

 

Regards

Anjali