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
Trusted Contributor
Posts: 103
Registered: ‎11-07-2010
My Device: Not Specified

twitter integrating problem

Dear all,

 

i have used the twitter api me to integrate twitter into my application;

 

like this    

BrowserContentManager browserMngr = new BrowserContentManager(0);

            RenderingOptions rendOptions = browserMngr.getRenderingSession()
                    .getRenderingOptions();

            rendOptions.setProperty(

            RenderingOptions.CORE_OPTIONS_GUID,

            RenderingOptions.SHOW_IMAGES_IN_HTML,

            false);

            //

            add(browserMngr);

            //

            BrowserContentManagerOAuthDialogWrapper pageWrapper = new BrowserContentManagerOAuthDialogWrapper(
                    browserMngr);

            //

            pageWrapper.setConsumerKey(CONSUMER_KEY);

            pageWrapper.setConsumerSecret(CONSUMER_SECRET);

//            pageWrapper.setCallbackUrl(CALLBACK_URL);

            pageWrapper.setOAuthListener(this);

            try {

                pageWrapper.login();

            } catch (Exception e) {

                // TODO Auto-generated catch block

                System.out.println("error: " + e.getMessage());

            }

 

i registerd my app and got secrect and consumer keys.

also  i registerd a listner for twiiter like this public final class MyScreen extends MainScreen implements OAuthDialogListener

 

 

afer showing apge which request a user authorization for the app and proceeding with it no thing happens.

 

the listner down't get any notification about the autjorization process weather success,fail or denied.

 

could any one please help on this?

 

i spent  couple of days searching on this but without any reasults.

 

thanks alot

 

 

Trusted Contributor
Posts: 103
Registered: ‎11-07-2010
My Device: Not Specified

Re: twitter integrating problem

no help ?!