Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

Android Facebook SDK crashes app - why?

android facebook error crash app sdk

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 JakeWelton


    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 152 posts

Posted 15 August 2013 - 06:07 AM

Hello all,


Okay so i'm trying to implement the Facebook SDK into my Android app. Problem is, when i use the code explained within the Facebook documentation, my app just crashes with no error messages.


Heres the code im currently using (from the Facebook documentation):

// start Facebook Login
        Session.openActiveSession(this, true, new Session.StatusCallback() 
			  // callback when session changes state
			  public void call(Session session, SessionState state, Exception exception) 
			    if (session.isOpened()) 
			    	// make request to the /me API
			    	Request.executeMeRequestAsync(session, new Request.GraphUserCallback() 
			    		// callback after Graph API response with user object
			    		public void onCompleted(GraphUser user, Response response) 
			    			if (user != null) 

Does anyone know why it might be crashing?? from what i can see im not needing to specify a app id atm so im not sure if thats something to do with it??


If no-one knows the answer, is someone able to offer some methods of debugging this problem as the logcat is not being very helpful at all.




"Before you judge someone, walk a mile in their shoes; after that, who cares?! Their a mile away and you've got their shoes!"

#2 BlackRabbit


    CodeCall Legend

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3871 posts

Posted 18 August 2013 - 04:08 AM

Well, in my experience you do need to send identification to facebook in order to develop.

Is it all of your program?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download