iOS 9 Facebook login simulator -canOpenURL: failed for URL: “fbauth2:///” – error: “(null)”

Why do I see console messages like ‘canOpenURL: failed for URL: “fb…://’ or ? This is an Xcode warning indicating the the canOpenURL: call returned false. As long as you have configured the LSApplicationQueriesSchemes entry in your plist as described above, you can ignore this warning.

Facebook SDK 3.1 – Error validating access token

The Facebook account on the device has become out-of-sync with the server as well as with the App’s/SDK’s cache. This can be solved by calling the ACAccountStore method renewCredentialsForAccount, which will update the OS’s understanding of the token state. In the next update of the SDK, the SDK will automatically call this API when it … Read more

Facebook share content only shares URL in iOS 9

I was having the same issue, and the workaround I’m using is to set the Share Dialog mode to use the native app. I’m using Obj-C, but should be pretty much the same in Swift: FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init]; dialog.fromViewController = viewController; dialog.shareContent = content; dialog.mode = FBSDKShareDialogModeNative; // if you don’t set … Read more

Facebook SDK 4.0 IOS Swift Log a user out programmatically

Ok, here is the thing for anyone needs assistance. I managed to log my users out using FBSDKLoginManager instance Apparently and i don’t know if is it documented or not FBSDKLoginManager watches FBSDKAccessToken.currentAccessToken() so let loginManager = FBSDKLoginManager() loginManager.logOut() // this is an instance function Logs the user out, what i misunderstood that logOut is … Read more

Facebook iOS8 SDK build module error for FBSDKCoreKit

FBSDKCoreKit can’t be built because of “include of non-modular header inside framework module” error in FBSDKAppLinkResolver.h header file: in #import <Bolts/BFAppLinkResolving.h> line. The solution from Swift compiler error: “non-modular header inside framework module” (switching CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES) did’t help me. My solution: Create in Bolts.framework file module map: Modules/module.modulemap (like in FBSDKCoreKit.framework) Put such code … Read more

The app references non-public selector in id (Facebook SDK iOS)

This problem happens because of the Facebook SDK for iOS. Application Loader forbids the use of the variable “id” from any FBGraphUser related class (maybe others variables too, didn’t test) – e.g. : id<FBGraphUser> friend id<FBGraphUserExtraFields>user Facebook is informed about this problem as of january 2013 : Bug Report The workaround for the moment is … Read more