Embed Facebook in an Xcode Project

I'm going to embed the facebook app in my project, but I ran into some obstacles. First I read the link that developer.facebook.com posted: enter image description here

I really don't know how to use the GitHub repository and add it to my application project, so I hope I can help with this,

Then, while I continued the rest, I found something that I might need, as well as: enter image description here

So, all that I have now, I just need to go through this first part, then I can continue, so I hope someone can help me get through this first part, thanks

(sorry, if I had to publish photos, I just need to be specific, and sometimes I have problems reading textbooks)

+3
2

git, sdk : https://github.com/facebook/facebook-ios-sdk .

readme , :

Facebook , :

yourProjectNameAppDelegate.h yourProjectNameAppDelegate.m.

#import "FBConnect/FBConnect.h" yourProjectNameAppDelegate.h. Facebook* facebok;, .

yourProjectNameAppDelegate.m application:didFinishLaunchingWithOptions:, :

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
   facebook = [[Facebook alloc] initWithAppId:@"YOUR_APP_ID"];
   [facebook authorize:permissions delegate:self];

}

.

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url{
    return [facebook handleOpenUrl:url];
}

objective-c, facebook. . iTunes screencast.

+5

github, http://help.github.com/, , , git clone, , .

- github, .

, ?

, facebook.

+1

All Articles