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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
pravipravi
Posts: 38
Registered: ‎06-03-2009
My Carrier: Verizone

Re: FaceBook SDK Problem

Hi I could fix the issue ..

 

I changed java compiler to 1.4conf.JPG

 

and in code

UiApplication.getUiApplication().invokeLater(new Runnable() 
		{
			public void run() 
			{
				try 
				{
					user = faceBook.getCurrentUser();
				} 
				catch (FacebookException e) 
				{
					e.printStackTrace();
				}
				
				if(user != null)
				{
					publishPostresult = user.publishPost(messageText, url, picture, "", "", "", "");
				}
				if ((publishPostresult != null) && !publishPostresult.trim().equals("")) 
				{
					GLCustomDialogBox dialogBox = new GLCustomDialogBox("Publish Post Success.", GLStringConstants.DIALOG_OK);
					UiApplication.getUiApplication().pushModalScreen(dialogBox);
				}
				else 
				{
					GLCustomDialogBox dialogBox = new GLCustomDialogBox("Publish Post Failed.", GLStringConstants.DIALOG_OK);
					UiApplication.getUiApplication().pushModalScreen(dialogBox);
				}
			}
		});

 Now i am able to post I did following changes at Eclipse project specific settings.

 

 

Please use plain text.
Developer
pravipravi
Posts: 38
Registered: ‎06-03-2009
My Carrier: Verizone

Re: FaceBook SDK Problem

[ Edited ]

I could post messages to facebook now.

 

Please use plain text.
Contributor
BBSuperApps
Posts: 35
Registered: ‎07-15-2010
My Carrier: movistar

Re: FaceBook SDK Problem

Hi pravipravi!

 

Could you explain me in a more detailed way the solution?

I am not being able to to pass the "install" nor the "allow" screen. This is with my app and with Strawberry...

I tried cheanging the compiler and your without success.

 

Thanks!

Please use plain text.
Contributor
BBSuperApps
Posts: 35
Registered: ‎07-15-2010
My Carrier: movistar

Re: FaceBook SDK Problem

BTW my issue is the "unable to refresh access token"
Please use plain text.