iTunes get Affiliate Token from code - ios

Everyone! :)
I would like to be able to tell from the App where the user came from.
I found this article about affiliate links:
https://www.apple.com/itunes/affiliates/resources/documentation/basic_affiliate_link_guidelines_for_the_phg_network.html
So it's possible to include affiliate token and campaign text in the iTunes link of the App.
However I would like to get these affiliate token and campaign text values from the code of the App.

You will not be able to access those values from within the app. They are not passed from the App Store in to the app that is installed. They are only available in the reporting dashboard.

Related

How to know app is installed from particular link

We have an AppStore link in our web application and user can install app from AppStore. Use case is like:
User browsing the website
There is Campaign page with AppStore link
User clicks on that link
Navigated to AppStore
User install the app
Now I need to decide the below items:
Number of download that refer from Campaign on Landing Page
Number of unique user of download that refer from Campaign on Landing Page
[I have explored Google Analytics Campaign Measurement but I guess that is targeted for MobileAd Network]
Please help me to find out a solution.
Thank you!
[Update]
Is Web Referrers of App Analytics relevant to this solution?
I don't think this is feasible.
Once the user clicks the link to the AppStore, you will never know if user installs or not. Because the App Store API would not notify you and shouldn't even do so (privacy & security issues)
The best you can do is count how many users clicked that link. But this does not correlate to app install.

How can My App Tweet the Contents a User Submits?

Note: I am posting this because I don't even know what to Google search. I know we're all about thorough research before asking these questions. Any help would be appreciated.
Scenario: User writes a text post from my app and when they submit it, the content is added to a Parse.com class (I know how to do this) and simultaneously it is tweeted from a designated twitter account (that does not belong to the user) let's say #MyCoolAppThatTweets.
In other words, I don't want the user via my app to be permanently logged into #MyCoolAppThatTweets twitter account, but have one-time access to send a tweet from it.
Another way to phrase this question would be: How can my app log into a specific twitter account whose credentials I can "bake" into the app without compromising the security of that twitter account.
I am already aware that normally, users of an iOS app wouldn't automatically want their content being tweeted. For the project I'm making, this is not going to be a concern (it's a secret).
If you need more information or if I need to post this elsewhere, please let me know!
From your question I am not sure if you are familiar with "Twitter part" of Parse.com and Twitter REST API. If not please start by reading this https://www.parse.com/docs/ios/guide#users-twitter-users (or take a look on official Twitter way by using their plugin called Fabric: https://dev.twitter.com/)
Since you mentioned PFUser I will describe you how to achieve it by using Parse.com API.
First your user must be logged in to Twitter account.
I suppose that your user is already logged in into your app as a PFUser so best way to log him into some Twitter account is by linking Twitter account with existing PFUser - https://www.parse.com/docs/ios/guide#users-linking.
After that you can post tweets through user's Twitter account (if permission was granted). I recommend doing that using Parse.com Twitter API calls https://www.parse.com/docs/ios/guide#users-login-amp-signup. To create API requests you need official Twitter REST API which can be obtained here https://dev.twitter.com/docs/api.

How to tweet with the app name, not on behalf of the owner of the app/developer

I'm using Twitter API for my website in PHP.
I have created a developer account "me" let's say.
I have then created an app named "myapp". I've generated tokens and keys with Read&Write permissions.
My problem : when I tweet via my website (using the API) and using my app tokens and keys, my tweets appear in https://twitter.com/me as if "me" were the author of the tweet, and the app name does not appear anywhere...
How could I tweet with my app name as the author ?
To be more clear, I would like to see the tweets posted (via the API using the tokens and keys of "myapp") in https://twitter.com/myapp and with "myapp" as the author of the tweet.
Thanks a lot for your help.
By definition, your app posts on behalf of an account that has granted permissions, so what you're seeing is "working as expected" from the outside. In order to have your app be an author, create an account specifically for it to tweet to.
The app technically still won't be the author, your dedicated account is, but you would (probably) set up that dedicated account to represent your app (URL if it's public, icon/photo, etc).
Note that you'll use the auth keys you get when attaching the app to the custom account instead of the ones that you're currently using for attaching it to your developer account.

google Shortener Url Tracking to developer account

I am creating new IOS App that uses google shortener if user log in using OAuth he can track created url but in my App we don't have google log in we preferred not have many log in's ,but i want to track
user created url with using only google Api key. user is not log in it can't map to user at least it can track by developer .Any help appreciated.
First check this link https://developers.google.com/url-shortener/v1/getting_started
in this you can found complete information about shorter api
Sorry it is not possible to add url's for developer account .

Retrieve facebook data in backend service

I'm currently working on an app (iOS 6) where the user will be signing in using their facebook account.
In regards to this I have a few questions:
a) Since the app asks the user for permission to access cetain data (like: basic profile info, friend list, access to post to wall etc), I assume that the app based on it's app id will be somehow authenticated to access this information as long as the user doesn't restrict access through their facebook account.
b) will it be possible for example via a service application to authenticate with the same app id as the mobile app, and hence be able to collect data from the facebook users who authenticated with the app?
The purpose of my question is, that I would like do some analysis on the users using the iphone app, but I don't want the app to first download the information from facebook, and then pass it on to my service for analysis.
If the above is possible, could anyone please guide me in the direction of what it is that I need to do? Perhaps links to tutorials that describes this setup, og simply tell me the right facebook terminology that I'm looking for to achive this.
Thanks in advance!
It's a bit late and you may have already picked a service. I have been using Parse.com
(tutorial site). They're very good. They have SDKs and sample code for many platforms a RESTful service for others.
They have recently been acquired by FaceBook, and already have strong links to Facebook's SDK.

Resources