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
New Contributor
Posts: 3
Registered: ‎01-27-2012
My Device: Bold

Facebook SDK , accessToken is null

Hi, my code is 

	
      String NEXT_URL = "http://www.facebook.com/connect/login_success.html;deviceside=true"; 
      String APPLICATION_ID = "XXXXXXXXX";
      String APPLICATION_SECRET = "XXXXXXXXXXXXXX";
      String[] PERMISSIONS = Facebook.Permissions.USER_DATA_PERMISSIONS;
      ApplicationSettings as = new ApplicationSettings(NEXT_URL, APPLICATION_ID, APPLICATION_SECRET, PERMISSIONS);
    
      Facebook fb = Facebook.getInstance(as);
 System.out.println(fb.getAccessToken()); 

 

I just want to ask, why my accessToken is null , and how can i solve this problem ? 

Please help me out. I want to connect my Blackberry device to facebook and post update status.