Posts

Showing posts from July, 2015

Facebook sdk integration using SWIFT in iPhone application

To integrate the Facebook SDK using swift language, follow the below steps:
Download the latest Facebook sdk at https://developers.facebook.com/docs/ios/getting-started.Create a application at Facebook, made necessary changes at plist file. All guided documentation is available at https://developers.facebook.com/docs/ios/getting-startedAdd FacebookSDK.Framework to your project.Create a bridging header by follow the below steps (Bridging header is useful when you want to access objective-c code in your swift language).Create a new Objective-C header file by clicking File->New.Give it a name (BridgingHeader.h).Write the import statement in your bridge header file.#import <FacebookSDK/FacebookSDK.h> Goto build settings for your target, find "Swift Compiler – Code Generation" section.Set “Objective-C Bridging Header” to <#PROJECT_NAME>/Bridging-Header.h.“Install Objective-C Compatibility Header”, should be set to “Yes”.Open  AppDelegate.swift and write the below co…