facebook-ios-sdk
How to customize FBLoginVIew?
The answer is to go over the FBLoginView subviews, find the button and the label and customize them. Here is the code: FBLoginView *loginview = [[FBLoginView alloc] initWithPermissions:[NSArray arrayWithObject:@”publish_actions”]]; loginview.frame = CGRectMake(4, 95, 271, 37); for (id obj in loginview.subviews) { if ([obj isKindOfClass:[UIButton class]]) { UIButton * loginButton = obj; UIImage *loginImage = [UIImage … Read more
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
ASP.NET Web API and Identity with Facebook login
I don’t know if you ever found a solution, but I’m trying to do something similar and I’m still putting the pieces of the puzzle together. I had tried to post this as a comment instead of an answer, as I do not provide a real solution, but it’s too long. Apparently all of the … 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