This Quickstart shows how to integrate Facebook Analytics into a new or existing Swift or Objective-C app.
Please log in to Facebook to create apps or register as a developer.
sudo gem install cocoapods
info.plistand choose Open As Source Code.
App events are the key actions that people take as they use your app, such as launching your app, viewing content or making a purchase.
You can log app events for any meaningful actions people take in your app. There are many pre-defined events such as completed registration, viewed content, searched, added to cart, spent credits and more.
In this step, you add code to your project that appears as a custom event in the dashboard.a. Add the following code to the
viewDidLoad()function in the
AppEventsLogger.log("My custom event.");
b. Build the project and then run the project in the Simulator.
c. See the results in the Dashboard.
The demo app does not have an Event Debugging link. This link is only available in apps that you create.