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
Contributor
bb_Dev12
Posts: 19
Registered: ‎09-10-2012
My Carrier: BlackBerry

Re: Twitter is Integrated in BlackBerry

[ Edited ]

Can we post the tweet using TwitterImplementBB.zip?

 

There is a line of code -done=tw.doTweet(message, c); I think its for posting the tweet

but its giving me an exception -Error by posting tweet to friend.Read-only application cannot POST.

 

I need to know, how to post tweet using this code.

 

Thanks

Please use plain text.
Developer
pankajace12
Posts: 192
Registered: ‎04-30-2011
My Carrier: Airtel

Re: Twitter is Integrated in BlackBerry

try to put like:

 

http://google.com, test it.

 

Thanks

Please use plain text.
Contributor
bb_Dev12
Posts: 19
Registered: ‎09-10-2012
My Carrier: BlackBerry

Re: Twitter is Integrated in BlackBerry

[ Edited ]

pankajace12   First of all thank you for sharing this code. its really helpful.

 

I used callback url as - "https://www.google.co.in/" than doTweet(); called and exception came.

 

But when i used "http://google.com" , its doing nothing. Function  onAuthorize(final Token token) was not called


Can you plz let me know if this code post a tweet in twitter website ?

Becoz in login page, its written that its read only application.

 

Thank you for your help.

Please use plain text.
Contributor
bb_Dev12
Posts: 19
Registered: ‎09-10-2012
My Carrier: BlackBerry

Re: Twitter is Integrated in BlackBerry

I used CALLBACK_URL ="www.google.com"; than this page came, but tweet is not getting posted on the twitter sitetwitter1.jpg

Please use plain text.
Contributor
bb_Dev12
Posts: 19
Registered: ‎09-10-2012
My Carrier: BlackBerry

Re: Twitter is Integrated in BlackBerry

 

 

pankajace12 ,

Hi

  I have changed the callback url... dont know what should do else, please help?, Does It require any permissions?

 

Thank you.

 

Can anyone please help???

Please use plain text.
Developer
pankajace12
Posts: 192
Registered: ‎04-30-2011
My Carrier: Airtel

Re: Twitter is Integrated in BlackBerry

Hi bb_dev12,

 

Please find attached the jar file and Entire src code. 

 

Here you are to just put ur secret id and consumer id.

 

Thanks

Please use plain text.
Contributor
bb_Dev12
Posts: 19
Registered: ‎09-10-2012
My Carrier: BlackBerry

Re: Twitter is Integrated in BlackBerry

[ Edited ]

Thank you so much for all your help.

 

I am able to do tweet by the code (TwitterImplementBB.zip).

Now there are two situation:

1- if I set callback url as "http://google.com" etc. it redirects to this web page and tweet success.

                                                     AND

2- if I set callback url as "" (blank), than it redirects to the web page containng PIN no , stating :

     "Now return to your application again and enter this PIN"

 

     I am not able to understand where to enter this PIN, in case i am not intereseted to use callback_url.

     Do you have any idea regarding this?

      ( FYI I have added http://www.google.co.in as callback url in twitter to register my application.)   So can it be left as blank?

 

 

 

 

 

Please use plain text.
Developer
pankajace12
Posts: 192
Registered: ‎04-30-2011
My Carrier: Airtel

Re: Twitter is Integrated in BlackBerry

Hi,

 

BB_dev12,

 

See, this redirection comes only time. so, i have used this. i think its not a heavy task for user or programmer too. So i will suggest you, let ignore this. 

 

Thanks

Please use plain text.
Contributor
abang_adit
Posts: 27
Registered: ‎07-26-2012
My Carrier: i dont have a blackberry device

Re: Twitter is Integrated in BlackBerry

Hello,

I Try your code its very useful thanks :smileyhappy:

but i have some problem here

after i login , its redirecting to url callback but onAuthorize() its not invoked

please help me

thanks in advanced

best regards,
aditya eka putra (@abang_adit)
Please use plain text.
Contributor
abang_adit
Posts: 27
Registered: ‎07-26-2012
My Carrier: i dont have a blackberry device

Re: Twitter is Integrated in BlackBerry

hey my onAuthorize() problem already solved maybe the problem is url callback i put it has too large data to load,

my problem now is

when i running the apps on simulator os 5 (8520) its working fine but when i try it on OS7 simulator (9900)

after i login in the twitter login page the application is suddenly close :smileysad:

is there anybody here has some probelm with me ????

help me

best regards,
aditya eka putra (@abang_adit)
Please use plain text.