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
pankajace12
Posts: 206
Registered: ‎04-30-2011
My Device: BlackBerry Z10

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 

Please use plain text.
Developer
MohammedAziz
Posts: 139
Registered: ‎02-23-2012
My Device: Blackberry bold

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
Please use plain text.
Developer
pankajace12
Posts: 206
Registered: ‎04-30-2011
My Device: BlackBerry Z10

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();

Please use plain text.
Developer
MohammedAziz
Posts: 139
Registered: ‎02-23-2012
My Device: Blackberry bold

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
Please use plain text.
Developer
MohammedAziz
Posts: 139
Registered: ‎02-23-2012
My Device: Blackberry bold

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
Please use plain text.
Developer
pankajace12
Posts: 206
Registered: ‎04-30-2011
My Device: BlackBerry Z10

Re: Twitter is Integrated in BlackBerry

Hi Mohammed

I have not test it for post images....
Please use plain text.
Developer
pankajace12
Posts: 206
Registered: ‎04-30-2011
My Device: BlackBerry Z10

Re: Twitter is Integrated in BlackBerry

HI MohammedAziz,

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

Pawan
Please use plain text.
Developer
MohammedAziz
Posts: 139
Registered: ‎02-23-2012
My Device: Blackberry bold

Re: Twitter is Integrated in BlackBerry

Kudosssssss

Okay?


Thank you
warm regards
Mohammed Aziz
Please use plain text.
Developer
pankajace12
Posts: 206
Registered: ‎04-30-2011
My Device: BlackBerry Z10

Re: Twitter is Integrated in BlackBerry

Actually, I means that press as solution.

So that next one developer may get help here.

Thanks 

Please use plain text.
Contributor
amma12345
Posts: 23
Registered: ‎10-17-2011
My Device: 9700

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

Please use plain text.