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
Developer
pravipravi
Posts: 38
Registered: ‎06-03-2009
My Device: 9800

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.

 

 

Developer
pravipravi
Posts: 38
Registered: ‎06-03-2009
My Device: 9800

Re: FaceBook SDK Problem

[ Edited ]

I could post messages to facebook now.

 

Contributor
BBSuperApps
Posts: 35
Registered: ‎07-15-2010
My Device: 8300

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!

Contributor
BBSuperApps
Posts: 35
Registered: ‎07-15-2010
My Device: 8300

Re: FaceBook SDK Problem

BTW my issue is the "unable to refresh access token"