Track social interaction of shared content - ios

Let's say I have an iOS app where users upload videos. They sign in to the app via Facebook (keeping this question simple). Every uploaded video has a Share button. When the user clicks it, the video will be posted on their Facebook timeline as an embedded video.
As the app owner, is it possible to track how many views, likes, comments, average viewing time, geographic location etc. that shared post is generating for this user? I'd like to know which user is popular.
I've done some reading and it looks like Google Analytics (GA) may be what I'm looking for. Link here. Is this the right tool for my needs?
Once the video has been shared (assuming the URL is custom-crafted that has my Google Analytics Id, Campaign Id etc), how does GA track this data? The Like button is part of the Facebook website. The video is embedded in a container. How does GA communicate with Facebook?
I'd like to track the same when a user shares a link on their Twitter and track the retweets, sharing on Google+ etc. Is this really possible?

Related

Can I get a YouTube user's session data from the YouTube API?

I am a teacher and I have a YouTube channel with videos for my students. Every time one of my students see a video, I would love to know how he interacted with it: where he has paused it , where he has rewinded it, etc. This would help me in knowing the parts of the video that are difficult to understand.
My question is: is it possible to get all this data from a user's session? Specifically, can I get these detailed raw data from YouTube APIs?
From what I have explored so far, it seems that it is not possible, as YouTube APIs only seem to send "aggregated" data (example: total number of views of a video) or "properties" (example: title of the video).
I would really just need a Yes/No answer to my question, just to know if I am not waisting my time in exploring the APIs as a solution to my problem.
Thank you.
Yes and no,
But here is a more detailed explanation.
The YouTube Analytics api will give you analytics data on your own YouTube channel, but it wont be user specific you cant track who exactly did something. You may however be able to get some basic information about each video and what was clicked and how much was viewed. video reports But its not going to be user specific you wont know what Mike did as opposed to what Jane did.
The YouTube Data api will allow you to manage your own YouTube Channel for example upload videos and see subscriptions. It will also let you search for public videos on YouTube.
If you do want user specific then What you are looking for is session data related to user activity. Something like this is not publicly available. Google couldn't share your students activity without the students permission due to GDPR not to mention the fact that tracking anyone under the age of 13 would also be against some GDPR laws if i remember correctly.
Even Google analytics doesn't offer websites a decent way of tracking individual users activity on their websites. You can do it but you have to add additional tracking data to your website, and notify users that you are doing it.
SO your answer is yes kind of

Can I use Posts, Comments etc. from a Video in my App

I am currently developing an app where I want to combine some social networks. Youtube is one of those. I have some questions regarding the policies.
Is it allowed to show, posts, comments, pictures (comment photos, profile picture, post pictures, etc.), videos, like count, share count and everything the graph api provides me, commercially. Of course, only with the permission of the site owner. If not, what is allowed?
Am I allowed that the user can Like and Share posts/comments?
Can I place own adverts in my app? (not as video. The advert from youtube will be shown anyway)
I want you to answer my questions in a honest way.
You can find YouTube's and YouTube's API terms of service linked below:
YouTube's Terms of Service
YouTube's API Terms of Service

Any way to display all spotify playlists from a specific user (ios)

So, I'm creating an iPhone app for a magazine and they want to be able to share playlists with the users in a similar style to the Urban Outfitters iPhone app. The main difference being the way its displayed and using the companies Spotify account.
I registered the app with Spotify, and I was wondering if there would be a way to complete something like the screenshots shown below.
The goals here being:
grab all the playlists from 'user'
display them in a table (similar to screen one taking the playlist title and image)
and then on click show the full playlist while staying in the app
(the person using the app won't have access to anything like editing the playlists, this is just for listening the companies pre made playlists)
they would also like users to be able to listen to the playlists without leaving the app
It seems like you are asking two questions:
How do I grab a Spotify user's playlists?
How do I create a specific UI
Spotify Playlist Data
To get a list of playlists for a specific Spotify user, use the API endpoint:
GET https://api.spotify.com/v1/users/{user_id}/playlists
This will return JSON formatted data that you can parse to get the data you are interested in. Once you have the list of playlists, you can get playlist specific data by hitting the API endpoint:
GET https://api.spotify.com/v1/users/{user_id}/playlists/{playlist_id}
For more information, check out Spotify's API documentation
UI
Once you have the data retrieved from these API endpoints you'll be able to populate your tableviews quite easily.
Edit: I just saw your edit about playing music, you should check out the Spotify SDK - it looks like it can handle playing tracks.

How would I tweet a video link from iOS App which look like twitter site?

I am using TwitterKit framework for login with Twitter and getting user details. That part of my App is done. Now, I want to tweet a video link from my iOS App.
Here is the story:
User signs up using Twitter in our server.
User take a video from his/her iPhone. We upload that video to Amazon.
User wants to share this video to Twitter (Tweet that video link).
How would I achieve that. My question is not focused on just how to upload a video link. A tweet made by user should look like this:
The image has been taken from here which explains that you will have to upload video to twitter. Will I have to upload a video to Twitter to get such a view ? Do I have any other alternative to make focus on the tweet that it's a video link?
Also, I came to know that I can do that somehow using Twitter card. Exploring for that. If anyone have idea about Twitter card, please post an answer.

Does the Youtube API return list of users that have watched my video?

I'd like to create a Youtube app that rewards users after they have watched a certain number of my Youtube-channel's videos - or that rewards "experience points" based on the amount of time spent watching my channel.
Can I query the Youtube API to see if an authenticated user has watched a specific video associated with the app?
Seems like I can query against "likes" and "dislikes" - but curious if anyone has tracked "watch-time" or just "watched" in general.
My hesitation here is that I don't want access to a user's full history - I'd like a very unobtrusive approach to connecting authenticated users to specific video content.
I'm not seeing an API endpoint for querying or notifying if an associated Youtube video has been seen. Any help you can provide would be very helpful!
Considering user privacy I don't think you can acces this information. If you search through the API, you'll find that Youtube does come with insights, like viewcount and even demographic information.
It might be a solution to embed your videos in your app and then track which users watch that specific video within the app.
Inside your app catch the the onStateChange event to log that a user viewed a video. It will only work for video they view from inside your app.

Resources