BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-19-2011, 11:44 PM   #1
xmncxzvt
Thumbs Must Hurt
 
Join Date: Mar 2011
Model: 8900
PIN: N/A
Carrier: Torch
Posts: 59
Default Tiwtter integration

Please Login to Remove!

hello,

i have to integrate twitter in my bb app. I download twitter_api_me-1.4.jar & twitter_api_me-1.5.jar & add from properties as an external jar in eclipse

i got code from net to verify credentials & post tweet . I am using twitter_api_me-1.4.jar . I am using oAuth to verify credentials which means i use token in credentials not password as in xAuth jsut like this:-

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

then i use following statemnet:-


to verify credentials i use :-

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

To post tweet i use:-

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

Alas! it gives App Error 104 Uncaught: Securtiy Exception at this statement:-
t = ter.post(t);

any have any idea why it is giving this error on posting tweet statement even after verifying credentials??

Since this is my first experience to integrate twitter in bb app...i have no idea about its flow.. i explain what i mean..As in facebook its flow includes:-

1) First of all login page will be displayed
2) user will provide username & password
3) User status will be updated /at this step message will be posted on user wall

At first i thought that twitter flow must be like this as we cant give hardcoded username as in that case it will post tweet or update status of only one user BUT from net i got code in which it provie username in credential which means according to my thinking( i could be wrong also) that this will make my app dependent on only one user ...It will verify credentials of same user each time & post tweet on that user wall only which is bad approach



I have no idea whether twitter flow will just like this or not..
IF BLACKBERRY EXPERTS CAN GIVE SUGGESTION THEN PLEASE PROVIDE ME SOME DETAIL IN SHORT STATEMENT ABOUT TWITTER FLOW
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: Tiwtter integration
Thread Thread Starter Forum Replies Last Post
MDS Integration Service certificate problem Orinoko BES Admin Corner 0 09-09-2010 06:04 AM
BES 5.0 Exchange/Domino final documentation posted illy BES Admin Corner 9 05-12-2009 11:16 AM
PaperIQ Introduces Anoto Digital Pen Integration Kit Sith_Apprentice BlackBerry World 2012 0 05-15-2008 09:47 PM
Windows Live Integration Sith_Apprentice General BlackBerry Discussion 8 05-13-2008 06:49 AM


150mm/6

150mm/6" Semiconductor 15-Tray Wafer Cassette/Magazine for Robotic Inspection

$349.00



Peak, Atlas DCA55 Semiconductor Tester,  picture

Peak, Atlas DCA55 Semiconductor Tester,

$97.99



1 Reliance ELECTRIC 701819-AB MICRO SEMICONDUCTOR picture

1 Reliance ELECTRIC 701819-AB MICRO SEMICONDUCTOR

$224.00



50 PCS Toshiba AC121 VI Germanium Transistors

50 PCS Toshiba AC121 VI Germanium Transistors "Blue Dot" metal can " GT-1 "

$279.00



Ferraz Shawmut A50P125-4TA Semiconductor Fuse picture

Ferraz Shawmut A50P125-4TA Semiconductor Fuse

$199.99



(10-Pk) Bussmann Semiconductor Fuse Fast Acting 20 A FWC-A10F  picture

(10-Pk) Bussmann Semiconductor Fuse Fast Acting 20 A FWC-A10F

$270.95







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.