Reputation: 5259
I am following this tutorial: Getting started and I have run the samples correctly.
I now want to add the mobile adds characteristic and I follow this tutorial: FB mobile install ads
In the step1 it says:
Set up your app to measure mobile app install ads
Step by step, and I comment what I have done already:
1.You need to integrate Facebook's latest SDK -->DONE with the tutorial getting started
2.For iOS 3.0 or greater, add the following to your UIApplicationDelegate applicationDidBecomeActive selector:
[FBSettings publishInstall:YOUR_APP_ID];-->DONE
I have added:
[FBSettings publishInstall:@"220............"]; in my appdelegate.m and imported the <FacebookSDK/FacebookSDK.h>
and then comes the problem:
3. You can confirm that your app is correctly configured in the App Dashboard, or go directly there at https://developers.facebook.com/apps/YOUR_APP_ID. You should see a field in the "Summary" section labeled "Last Mobile Install Reported," with a time stamp for the last time your app reported an install.
This is what I suppose to see:
and this is what I see:
How am I supposed to know that I have setup this correctly and my fb mobile install ads will play normally?
EDIT:
I have added both the URLScheme:
and the linker flag:
And the native ios info:
Still the problem remains:( I do not see that my app is being installed from my phone..
This doesn't work only if I set the campaign and the ad right? Because I~ haven't created the ad yet, i just want to make sure that I will pay FB and my ad is going take users to my app.
Upvotes: 1
Views: 2394
Reputation: 23
Are you trying to launch app on the simulator? I've had the same problem, until I've loaded the build onto real device.
Upvotes: 0
Reputation: 2113
Okay, you still haven't set everything up correctly, so I'm just going to walk you through the process quickly.
The first you need to do is go to your project, and select your app's target >> Build Settings and search for "Other Linker Flags". There you will add" -lsqlite3.0", like the picture shows below.
Next, you need to navigate back to the Summary tab, and scroll down to "Linked Frameworks and Libraries", and add the Social, Accounts, and AdSupport framework. Also, change them from required to optional for older devices. Also add the FacebookSDK framework. You should have something like this:
Lastly, you need to do what seems to be giving you the hardest time. Navigate to your .plist file in your project navigator. In there, you need to modify your plist to reflect something like this:
Be sure that you're being VERY precise with capitalizations and such. I say that because I notice that you put "id" instead of "ID" in your question.
The last thing you have to do is simply import the FacebookSDK framework into your file when you are ready to use it.
#import <FacebookSDK/FacebookSDK.h>
One last extra tip. I always add a bundle called "FacebookSDKResources.bundle" because I find that I often times end up using it. The bundle can be found in FacebookSDK >> FacebookSDK.framework >> Resources. Add that bundle to your project the same way you added the FacebookSDK.faramework file itself, and you should be all ready to go!
Upvotes: 6