Social share integration with app and reporting to web service - ios

I'm developing an app for a client, which enables social sharing of client's product via twitter and facebook.
I successfully implemented sharing feature in twitter and facebook, and also I have to implemented report feature for these sharing in web service. To do this, I think these steps are sufficient:
1) Keep user's uniqueid for each platform in NSUserDefaults
2) Whenever user successfully shared content, Open NSUrlConnection to my web service and notified with user's unique id and shared content id.
3) Therefore, in web service, I can keep track of shared contents.
Is this really a good approach? Or, should I follow another approach?

I would use an analytics framework for something like this. I've used Flurry and Google Analytics for stuff like this. They both already have SDKs built that will connect to their web services. They are very easy to integrate.
Flurry is my personal favorite.

Related

Link Icloud with rails web allication

As like oAuth we can synchronise users authentication information with third party applications or websites, I want to integrate iCloud calendar service with my rails application. From where on button click user is asked to provide their iCloud credentials and after verifying user my rails app should allow that user to access his iCalendar events(Dynamic event generation).
I already tried to add iCloud calendar account with chronofy but it's not recognising my APP-SPECIFIC-PASSWORD.
So is this possible, preferably with some kind of oAuth setup as we do it with Google Calendar? or are their any API which can carry out my task, if so where can I find documentation on the API?
Apple do not provide a public OAuth mechanism for iCloud so its not possible to access their API directly

My app got rejected because lacking " significant account-specific functionality from Google"

I made an app using firebase and I have implemented Google account based logIn system to my app because I thought it would good and also helps me for Firebase Invites but my app got rejected by the apple app review team and they are telling that I have to implement "significant account-specific functionality from Google".
My app is like a social networking app something similar to Facebook. Users in the app can invite friends, share content with friends to achieve this I used the Firebase features like real-time database, Storage, Firebase Invites etc... I really don't know what else I should implement to eligible for "significant account-specific functionality from Google."
I have sent an email for help but they haven't responded yet.
Using firebase is perfectly fine in iOS.
1.1 LEGAL: PRIVACY - DATA COLLECTION AND STORAGE - significant account-based features
Read section ii) https://developer.apple.com/app-store/review/guidelines/#data-collection-and-storage
If your core app functionality is not related to a specific social
network (e.g. Facebook, WeChat, Weibo, Twitter, etc.), you must
provide access without a login or via another mechanism.
Since your app is not using any specific social network feature ( facebook,twitter - which demands a login ) you must allow users to provide functionality without login.
You might want to appeal to Appeal board with explanation why user must login in order to use the app ( give examples and screenshots of specific functionality which cannot be used without login ).
If your appeal is rejected you don't have any option but to redesign the app to follow what apple is suggesting. What we have done in past is provide a basic flow without login but once it reaches point where login is must we force user to login ( something like anonymous user).
After 3-4 rejections I found the solution for this problem. I have have implemented a feature called Firebase Invites and for that they must sign in with their Google Account.
According to Appstore guidelines we even can't use third party login for sending invitations. In that situation, I have convinced them that "with this Firebase Invites I can able to see my friends in my Google Account and send them invitations personally". With that answer (they called me by phone) it seems they have convinced and accepted my app.
I had the same rejection this week because I have a Facebook login.
My app was already live, and this is rejection for an update.
There is a change in their guideline. This is new on Sep 1, 2016:
If your core app functionality is not related to a specific social network (e.g. Facebook, WeChat, Weibo, Twitter, etc.), you must provide access without a login or via another mechanism. Pulling basic profile information, sharing to the social network, or inviting friends to use the app are not considered core app functionality.
In essence, they are killing many apps that simply use social networks for single sign on.
A solution right now is to implement your own login account mechanism.

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.

Is it safe to use Google Analytics in a private/secure Rails App?

I built a private/secure web app in Rails and have some beta users on it. I would like to use some type of analytics to track concurrent users on the site, time on site, frequency, and what features/parts of the app they are using.
Google Analytics would be great but I am hesitant to use it because I'm not sure how private the information is and if it would compromise the security of my web app - passwords and other sensitive information is submitted via forms, stored in the database, and viewed by the users.
I'm curious what are other private, web-based apps using.
Thanks.
If you need details on how Google Analytics handle your data you should read the Google Privacy Center page.
The short answer is that I wouldn't worry about using Google Analytics in your app.

Social authentication and publishing library for iOS

Is there an open source or commercial library that makes authentication and publishing to multiple social networks easier? We are developing an iPhone app and it will be used by Facebook, Twitter and Linkedin users and in the future Google will be added to the list of providers so we want to save ourselves from developing for each of these networks.
I think ShareKit is what you're looking for:
http://getsharekit.com/
The website doesn't mention any LinkedIn support yet, but it looks like someone has submitted a pull request here:
https://github.com/ideashower/ShareKit/pull/271

Resources