How do I send IDFA to Google Analytics from a Facebook ad click? - ios

I am currently trying to get mobile app install attribution from Facebook ads. The goal here is something like this,
Create a Facebook ad that pings Google Analytics of the ad click.
(Example URL : https://click.google-analytics.com/redirect?tid=UA-324109-49&url=https%3A%2F%2Fitunes.apple.com%2Fnl%2Fapp%2Fdrogisterij.net-mobiel%2Fid506652686&aid=com.drogisterijnet.drogisterijnet&idfa=%{idfa})&cs=GAUC&cm=link&cn=Presentation
The ad is clicked and goes to Google Analytics and sends a hit for metrics in the URL params.
After sending the hit the user visits the destination in the App store where I can link the attribute the click of the ad to the installation through the IDFA (since IDFA is captured on install).
There is a Google Developer page that helps create this sort of redirect link here: https://developers.google.com/analytics/devguides/collection/ios/v3/campaigns#url-builder
My issue is I do not know the macro used to get IDFA from the Facebook App .
Is it the same macro as the above link idfa=%{idfa}? I can not find any information on this other than where Facebook says
"The Facebook SDK for iOS only accesses IDFAs in the following scenarios: 1) if your app serves ads within the app through Facebook’s Audience Network, or 2) if your app logs app installs or other mobile App Events in order to attribute those events to your ad campaigns."
Link to above quote.
https://developers.facebook.com/docs/ios/troubleshooting#IDFA
Am I going about this the wrong way or should I just be using a different macro?

In short, you cannot. This is not something supported in Facebook ads.

Related

is there alternative way to open facebook on flutter app than Web view?

i have flutter facebook downloader app which have facebook web view function and copy past feature to downloadvideos from facebook. unfortunatly Google sent message to change this feature.
is there any alternative way to let the user login to facebook on my app and to get access facebook ?
email warning which is sent from google is here i attached ..
*> We are writing to follow up again on our below e-mails. We see that
your “Downloader for Facebook” app remains available in the Google
Play store, despite violating Google Play’s policies against webview
apps and against apps that allow or encourage users to download
copyrighted content without authorization, and despite not having our
client’s permission to provide a webview of the Facebook website from
within your app.
Accordingly, we request that you confirm your intent to comply with
our clients’ requests to (1) remove your app copy/paste download
functionality in the future.*
any help is appreciated. Thank you.

iOS - How to get Facebook Campaign information when is installed from Ad

We are running an install campaign on Facebook and, when user installs the app due to tapping on an Ad, I would like to fetch the campaign information from within iOS app and send to our server; like that, we can associate that data to a user in our database and see the lifetime value of campaigns (we offer subscriptions). What I'm looking for is something similar to what we can do when running Search Ads, where we can fetch attribution details via ADClient.shared().requestAttributionDetails.
Looking at Facebook docs, I can't find anything pointing me in the right direction. Is there a Facebook iOS SDK api I'm missing?

How to get Google Accounts Chooser in Ionic 3 iOS

I used Ionic Google Plus plugin to develop this.
https://ionicframework.com/docs/native/google-plus
However I could not find a way to get the Google Accounts Chooser like in Android.
In other native apps that feature is there.
But when used with Cordova Google Plus Plugin it just loads a SafariViewController with the Google Login screen. I tried trySilentLogin() function as well. But it just saves the login state after the first login. I want the user to select a logged in Google Account using the Google Account Chooser without entering passwords.
If it's not possible using Cordova Google Plus plugin what are the other alternatives to implement this?
I found out the problem of why account is not shown in google accounts chooser (at least after upgrading the ios sdk to SFAuthenticationSession, I don't know if it happened from same reason before upgrade):
The google sso authentication accounts are saved in safari data and if you clear safari cache then the accounts are removed. This can be easily reproduced by logging in, in one app (such as yelp, tripadvisor and others) and then you WILL see accounts in other apps on google login. Then clean safari cache and offline data and then you will not see the accounts in other apps on google login. Facebook solved it using custom scheme redirect in a "open in app" button displayed in the SFAuthenticationSession.
When the user logs out, if we call GIDSignIn.sharedInstance()?.signOut(). Next time, then the email selection screen will appear.
It works for us

facebook SDK, invite friends

I am developing an app, and users will be able to log in with Facebook. They only can start using the app if a minimum of their Facebook friend are already using the app. If not, they have to wait until the minimum required number of friend use the app in order to use it. I want to allow them to invite their Facebook friends to join.
Also, I would like to know how I can make it happen?
Do I HAVE TO create a facebook canvas or is there any other ways I can make it works?
Thank you for your help.
https://developers.facebook.com/docs/apps/faq#invite_to_app
Games on Canvas: App Request
Other Apps/Games: Send Dialog or Message Dialog
You can't access invitable_friends without enabling facebook canvas in your app's settings, but maybe app requests safisfy your needs? It will list friends (user needs to authorise reading friends list by app) and allow user to send them a notification in their mobile facebook app which will open an app or take user to app's page in App Store if they haven't installed your app yet.
Remember to enable deep linking, facebook SSO and provide App Store ID in platform settings for this work.
https://developers.facebook.com/docs/games/requests/

Tracking Facebook Ad Users

So we use Facebook Ads for Mobile to get users for our iOS app.
I've been looking through the documentation and I can't seem to find a way to know WHEN the user who has come into the app is a facebook user. Facebook can send app insights and I assume that means that somehow the SDK knows if the user is a converted Facebook user or not.
Is there any native API call that I can use to determine if the user is in fact a facebook app install?
I would also be cool if there was a third party service that did as long as it is reported INSIDE the app wether they were from Facebook or not.
Any help would be appreciated.
32 {'action.type': 'mobile_app_install', 'application':APPLICATION_ID} Number of times users install the app through a mobile app install ad if there is an iOS/Android version
check this link: https://developers.facebook.com/docs/reference/ads-api/tracking-specs/
Suprising I did not think apple would allow facebook to access information that would also facebook to know whether the user actually installed the app or not as It just redirect's the user to the app in the app store.

Resources