How do I install the Facebook SDK for iOS?
The download from the facebook developer website is failing, every time.
So, I got it from github: https://github.com/facebook/facebook-ios-sdk
But, I don't know what script to run, file to execute, thing to build, or...anything, to get to the next step in the process, which is to add the built facebook sdk to my xcode project. Anything I try to run (eg sh build_all.sh, etc.) doesn't work.
In your AppDelegate.m add: #import <FacebookSDK/FacebookSDK.h>
. And replace function in your AppDelegate.m.
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { // Call FBAppCall's handleOpenURL:sourceApplication to handle Facebook app responses BOOL wasHandled = [FBAppCall handleOpenURL:url sourceApplication:sourceApplication]; // You can add your app-specific url handling code here if needed return wasHandled; }
Slightly older thread but to provide a clue: there's a bug report on Facebook DEV as more people are facing the same issue. Let's hope they'll fix it asap.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.