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
Highlighted
Trusted Contributor
Posts: 182
Registered: ‎09-22-2011
My Device: 9700
My Carrier: airtel
Accepted Solution

Blackberry twitter api

Hi everyone.First of all thank you all.I have got immense support from this platform.I have build an BB app where i need to show the twitter update of a particular twitter account.Is there anyway to accomplish this.Do i need to know the password of that twitter account to implement this

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Blackberry twitter api

Sorry only replying because no-one else has.

 

Short answer, and I have never done it, is you need to know a Twitter secret and a twitter key that I believe you get when you sign up as a developer on twitter.  I have never done it, however I have used other people's secret's and keys when coding twitter integration for them.

 

Regarding the API to use, the best one from my reviews is Twitter API Me 1.4, though I have never used that code, I have something I developed myself that just Tweets.  Remember there is a license associated with that code. 

New Contributor
Posts: 4
Registered: ‎10-06-2011
My Device: I use the simulator
My Carrier: Brazil

Re: Blackberry twitter api

Hi,

 

Twitter API ME is perfect for BB apps that wish to integrate into Twitter's services. Regarding its license, you may use it for free and as long as you do not change its code, you may use it to create proprietary apps.

 

http://kenai.com/projects/twitterapime/

 

Regards,

--
Ernandes Jr.
---------------------
"ALL programs are poems. However,
NOT all programmers are poets."
Contributor
Posts: 36
Registered: ‎06-15-2011
My Device: 8900
My Carrier: Airtel

Re: Blackberry twitter api

 

Hello,

       i m also using Project Kenai for Twitter Development in Blackberry, But I hv got a problem related to user Login.

      Only the developer can use this service, this is nt for public

     Because in this we hv to provide consumer_Key & consumer_Key_Secret which is private and unique for single user

 

 

    if any one know's about the twitter Login without pass credentials than plese help me

 

    thanks

 

New Contributor
Posts: 4
Registered: ‎10-06-2011
My Device: I use the simulator
My Carrier: Brazil

Re: Blackberry twitter api

Read this

 

http://kenai.com/projects/twitterapime/pages/Home#AuthMethods

--
Ernandes Jr.
---------------------
"ALL programs are poems. However,
NOT all programmers are poets."
Contributor
Posts: 36
Registered: ‎06-15-2011
My Device: 8900
My Carrier: Airtel

Re: Blackberry twitter api

I read the link you provide me http://kenai.com/projects/twitterapime/pages/Home#AuthMethods

 

but if i get xAuth Token My consumer_key & consumer_secret_key problem will nt solved

 

 

I create a Credential object by user_name & password . we don't need any consumer_Key & consumer_secret_Key like

Credential c = new Credential("user_name", "user_password");
and put Credential object to UserAccountManager.getInstance(c);
to get UserAccount
but it gives null.

else
correct method to obtain User Account is
Credential c = new Credential("Usere_name", "Consumer_Key", "Consumer_Secret_key", token);
and put Credential object to UserAccountManager.getInstance(c);
to get UserAccount
it gives UserAccount

*** this method is only for developer , this is nt for public


so the question is how to get UserAccount without need of "ConsumerKey & consumer_Secret_Key"


I am using eclipse 3.5 environment for BB

thanks

New Contributor
Posts: 4
Registered: ‎10-06-2011
My Device: I use the simulator
My Carrier: Brazil

Re: Blackberry twitter api

Long story short: the first method you tried is deprecated, so forget it. The second one is to used during development phase, but it only allows you to connect with your account. xAuth allows to connect with any user, but you must require xAuth permission for your app to Twitter before it starts to work. The preferable method do use is OAuth.

 

Currently, all authentication methods provided by Twitter requires consumer and secret key: there is no way out!

--
Ernandes Jr.
---------------------
"ALL programs are poems. However,
NOT all programmers are poets."
Contributor
Posts: 36
Registered: ‎06-15-2011
My Device: 8900
My Carrier: Airtel

Re: Blackberry twitter api

thanks for the reply,

 

one more que is..

suppose if I hv xAuth token provide by the Twitter

 

 

so I can do login operation

 

plese help me ...

New Contributor
Posts: 4
Registered: ‎10-06-2011
My Device: I use the simulator
My Carrier: Brazil

Re: Blackberry twitter api

Do not go xAuth, but OAuth.

 

http://kenai.com/projects/twitterapime/pages/Home#AuthOAuth

 

It is much better. You do not need to request anything to Twitter. Grab your keys and have fun.

 

There is a sample Blackberry app that show how to authenticate using OAuth. It is pretty easy.

 

http://kenai.com/projects/twitterapime/downloads/directory/Miscellaneous

 

From now on, everybody should go OAuth.

 

Regards,

--
Ernandes Jr.
---------------------
"ALL programs are poems. However,
NOT all programmers are poets."
Developer
Posts: 202
Registered: ‎04-19-2011
My Device: Blackberry Bold 9780
My Carrier: TAM

Re: Blackberry twitter api

Sorry for post in  this thread,

I have a problem with using twitter me api 1.8

I have tried it, and success to redirect to callback url but public void onAuthorize(Token token) is not invoked?

Can u solve my problem? thanx