Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8737517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:32:26+00:00 2026-06-13T10:32:26+00:00

I’m looking at integrating support for tracking Facebook’s new mobile app ads. I’ve read

  • 0

I’m looking at integrating support for tracking Facebook’s new mobile app ads.

I’ve read the tutorial here:
https://developers.facebook.com/docs/tutorials/mobile-app-ads/

It says:

Include the following code to be executed when your app opens for the first time by user

[FBSettings publishInstall:appId];

So the first question is – where do I put this so that it only invokes the call if the install was driven from Facebook? I don’t want FB to get credit for someone who found my app themselves on the app store.

Do I need to manually track whether or not I’ve called the publishInstall before for this specific user? (The preamble sentence implies this – but the SDK documentation for publishInstall implies otherwise).

And even more confusing is that the SDK FBSettings reference includes shouldAutoPublishInstall which defaults to YES. This would suggest that I don’t need to do anything other than have the SDK integrated. So why does the tutorial not mention this as an option?

I assume that the appId is the associated Facebook appId (as opposed to the App Store App ID). This is also not clear from the documentation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:32:28+00:00Added an answer on June 13, 2026 at 10:32 am

    I browsed the sources of facebook iOS SDK, and it seems that guide is wrong.

    You are right, that autoPublishInstall is set to YES by default, which means we don’t need to invoke [FBSettings publishInstall:appId]; manually. AppId is indeed the facebook app id.

    When you invoke openActiveSessionWith.... method, it initializes FBSession with
    initWithAppID:permissions:defaultAudience:urlSchemeSuffix:tokenCacheStrategy: which contains in the end [FBSettings autoPublishInstall:self.appID];

    + (void)autoPublishInstall:(NSString *)appID {
        if ([FBSettings shouldAutoPublishInstall]) {
            dispatch_once(&g_publishInstallOnceToken, ^{
                // dispatch_once is great, but not re-entrant.  Inside publishInstall we use FBRequest, which will
                // cause this function to get invoked a second time.  By scheduling the work, we can sidestep the problem.
                [[FBSettings class] performSelector:@selector(publishInstall:) withObject:appID afterDelay:FBPublishDelay];
            });
       }
    }
    

    So technically it should report the install out of the box (if I’m not missing something). I’m going to play with it a little more today to see if it works as expected and update answer with results.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an app with both english and french support. The app requests
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am using Paperclip to handle profile photo uploads in my app. They upload
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.