Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook: How to separate debug and prod mode events?

I'm using the Facebook SDK to track ads mobile install and followed this tutorial: mobile ads install

So far, events in DashBoard / Insight are not separated for debug / prod mode.

Do I have to create 2 appIDs to separate the debug and prod events in DashBoard/Insight ?

like image 865
james075 Avatar asked Mar 31 '14 15:03

james075


People also ask

Does Facebook have a separate events app?

Facebook just launched Events, a standalone app to help navigate Facebook Events more easily. Facebook Events is a great way for the social media network to help you keep track of the important dates in your life.

What is a conversion schema Facebook?

A Conversions Schema is framework in your app to remotely manage and set conversion events and conversion values.

What happened facebook event app?

Facebook, the most famous social networking app across the globe is leaving no stone unturned. It recently revamped its Events app and renamed it Facebook Local. Facebook has launched this app as a competitor to the local event and business listing services like Yelp which are already prevalent in the market.


1 Answers

My guess is to you use the DEBUG preprocessor macro (or create a new one if needed), to set the correct Facebook's appId for you build. You can use the method FBSettings setDefaultAppID: from Facebook SDK to reach this, without hardcode the appId in the Info.plist.

Let me write a simple example:

// 1 - Set the app id on compile time, based in macro you choosed
#if DEBUG
  kFacebookAppID = @"your app id for debug";
#else
  kFacebookAppID = @"your app id for production";
#endif


// After then, you can set the id in your app delegate initialization
[FBSettings setDefaultAppID:kFacebookAppID];

I hope this help you.

like image 133
Jan Cássio Avatar answered Sep 26 '22 22:09

Jan Cássio