Having looked at this problem again, the answer is pretty simple.
Follow the instructions to create the application and install the SDK:
He tells you how to do it for iOS here https://developers.facebook.com/docs/ios/getting-started/
Be sure to follow the instructions for the letter and add the appropriate lines / values to the .plist project file.
The final piece of information you will need is an understanding of importing the header file of the SDK file into the AppDelegate.m file in the Xcode project and the applicationDidBecomeActive selector.
In your ApplicationDelegate.m project, copy the #import <FacebookSDK/FacebookSDK.h> file directly below your other import operations. Hint: they look the same and are closer to the top.
Now copy the following into your AppDelegate.m, replacing the dummy application id @ "123456789" with your facebook application id. Put this code directly above @end in the AppDelegate.m file.
-(void)applicationDidBecomeActive:(UIApplication *)application { [FBSettings setDefaultAppID: @"123456789"]; [FBAppEvents activateApp]; }
What is it. Now you can try to install the application on your development device and check the accuracy of its reporting by visiting the application toolbar on Facebook, scrolling down or find the section on the latest installations.
source share