Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

com.facebook.sdk.core error 8

Tags:

This is more informative than anything. I couldn't for the life of me find anything on error code 8 when trying to access the login prompt (aka safari) when debugging my ios app. After I hit the log into facebook button in my app it would attempt to open safari then dump me back to the login page to my app. The error was being caused by the permissions array. I had the the permission "public_profile" spelled "public profile" which was throwing an error obviously. So make sure your permission are type corrected if you get the com.facebook.sdk.core error 8.

Hope that helps someone.

like image 269
blackops Avatar asked Jul 28 '15 18:07

blackops


People also ask

What does SDK mean in Facebook?

The Facebook SDK is a set of software components that developers can include in their mobile app to understand how people use the app, run optimized marketing campaigns and enable Facebook login and social sharing. This course helps you understand the purpose of the Facebook SDK and App Events for Android and iOS.

Why is Facebook SDK important?

Facebook Android SDK enables mobile developers build Facebook apps for Android. It includes features like tracking analytics, data trends, insights on the traffic on your app. User behaviour on how people interact with your app. It also helps track ads engagements, which ads are working which aren't.


2 Answers

Make sure your permissions are typed correctly

   func loginButton(loginButton: FBSDKLoginButton!, didCompleteWithResult result: FBSDKLoginManagerLoginResult!, error: NSError!) {              if error == nil {                 println("login complete")                 self.performSegueWithIdentifier("showLogin", sender: self)              }else{                  println(error.localizedDescription)     //com.facebook.sdk.core error 8.             }         } 
like image 74
blackops Avatar answered Sep 20 '22 17:09

blackops


In my case this error was caused by improper bundle id set in facebook settings of the app itself. Facebook "bundle id" is case sensitive, in my Info.plist I had uppercase product name, but in fb settings - lowercase.

like image 22
Wladek Surala Avatar answered Sep 18 '22 17:09

Wladek Surala