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


Transistor S8050 S8550 J201 2SC1815 2SC945 2SA733 S9012 S9014 KSP10 TO-92 picture

Transistor S8050 S8550 J201 2SC1815 2SC945 2SA733 S9012 S9014 KSP10 TO-92

$4.90



100PCS Transistor NSC TO-92 2N5460 picture

100PCS Transistor NSC TO-92 2N5460

$31.51



BLF188XR RF Power LDMOS Transistor High Frequency Microwave Tube 1Pc picture

BLF188XR RF Power LDMOS Transistor High Frequency Microwave Tube 1Pc

$95.20



10PCS Transistor TO-3PF 2SC5929 C5929 picture

10PCS Transistor TO-3PF 2SC5929 C5929

$36.94



TO-92 Assortment NPN PNP DIY kit 15 value 600pcs Transistor  picture

TO-92 Assortment NPN PNP DIY kit 15 value 600pcs Transistor

$14.40



US Stock 4pcs 2N5109 TO-39 RF/VHF/UHF Transistors picture

US Stock 4pcs 2N5109 TO-39 RF/VHF/UHF Transistors

$13.08







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