BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 07-19-2011, 11:44 PM   #1 (permalink)
Thumbs Must Hurt
Join Date: Mar 2011
Model: 8900
Carrier: Torch
Posts: 59
Post Thanks: 3
Thanked 1 Time in 1 Post
Default Tiwtter integration

Please Login to Remove!


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 :-

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 =;

Alas! it gives App Error 104 Uncaught: Securtiy Exception at this statement:-
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..
Closed Thread

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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
Preview: Shout Postcard Beta - With Facebook Integration - BerryReview Entropy666 BBF Reviews 4 11-16-2007 10:56 AM

1PC NEW BALLUFF sensor BES 516-325-G-E4-C-PU-05
1PC  NEW  BALLUFF sensor BES 516-325-G-E4-C-PU-05 pictureB&R Automation 7BP703.0 REV.C0 SYSTEM CPU MODULE
B&R Automation 7BP703.0  REV.C0  SYSTEM  CPU MODULE pictureWaring Commercial WFP14S12 Food Processor Reversible Shredding Disc
Waring Commercial WFP14S12 Food Processor Reversible Shredding Disc pictureCambro Camshelving® 5-Tier 21"W x 54"L x 84"H Premium Starter Unit
Cambro Camshelving® 5-Tier 21Cambro Camshelving® 5-Tier 21"W x 54"L x 64"H Premium Starter Unit
Cambro Camshelving® 5-Tier 21

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