Ok, so I\'ve got a \"completed\" iOS phonegap/cordova project, using version 3.4 in xcode 5. I know I need to integrate the facebook sdk in order to track the installs for m
Having looked at this issue again, the answer is pretty simple.
Follow the instructions for creating an app and installing the SDK:
It tells you exactly how to do this for iOS here https://developers.facebook.com/docs/ios/getting-started/
Make sure to follow the instructions to the letter and that you add the relevant rows/values to your project's .plist file.
The final piece of information you'll need is understanding the import of the Facebook SDK header file into the AppDelegate.m file in your Xcode project and the applicationDidBecomeActive selector.
In your project's ApplicationDelegate.m file copy #import directly below your other import statements. Hint: they look similar and are near the top.
Now copy the following into your AppDelegate.m replacing the dummy app id @"123456789" with your facebook app id. Place this code directly above @end in your AppDelegate.m file.
-(void)applicationDidBecomeActive:(UIApplication *)application
{
[FBSettings setDefaultAppID: @"123456789"];
[FBAppEvents activateApp];
}
That's it. Now you can try an install of your app onto your development device and check it's reporting correctly by visiting your app dashboard on Facebook, scrolling down to the bottom, or finding the section about latest installs.