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
PIN: N/A
Carrier: Torch
Posts: 59
Post Thanks: 3
Thanked 1 Time in 1 Post
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


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

New lot of 2pcs ZIP-20 Sockets - 20-pin Zigzag inline package - Amiga 3000
$1.0
New lot of 2pcs ZIP-20 Sockets - 20-pin Zigzag inline package - Amiga 3000 pictureOriginal Noches Latinas UR3 Amiga Parala La Palma Vagina Mastrubator + Cream Gif
$29.99
Original Noches Latinas UR3 Amiga Parala La Palma Vagina Mastrubator + Cream Gif picture1x MC68882FN25A MOTOROLA Mac Amiga HCMOS Coprocessor FPU 25MHz 32bit PLCC68 NEW
$32.2
1x MC68882FN25A MOTOROLA Mac Amiga HCMOS Coprocessor FPU 25MHz 32bit PLCC68 NEW pictureCSG/AMIGA 391077-01 PLCC
$14.2
CSG/AMIGA 391077-01 PLCC pictureAmiga Vinyl Banner Sign Garage WorkShop Many Size Logo Dealer
$22.99
Amiga Vinyl Banner Sign Garage WorkShop Many Size  Logo Dealer picture






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