Get facebook friends that also use spotify - ios

I'm building an iOS app using the Spotify API that requires communication with my Spotify friends. I've come to realize that it's really facebook friends that also use Spotify and that to do that, you need to authenticate with facebook in order to get any sort of info like that. So the next few things I'm trying to figure out, but am getting stuck with are:
With the Spotify SDK, is there a way to tell if it's connected with your facebook account (since it's not required). And if so, do you have to do a separate authentication? I'm guessing yes.
With the facebook open graph api, is there a way to get a list of your friends that also use Spotify. I know that you can get friends using that have authenticated your app, but haven't found a way to find out about others. Not sure if it's possible.
Based on what I've read here that what I'm trying to do isn't going to be possible. Or if it is a huge pain. Anyone have any thoughts?

Nope. However, with CocoaLibSpotify, if the user logs in with an email address you can be sure it's a Facebook account since vanilla Spotify usernames aren't email addresses.
Nope. You could look at each friend's public listens using the Facebook API, though, but that isn't ideal.

Related

App requests in Facebook without re-logging and use session in Social Framework

I've successfully connected in Facebook using Social Framework, also able to get list of my friends. However, I need to invite friend to use my app, I have been reading some articles and stackoverflow, that this need to use Facebook SDK.
Now, I able to achieve this using Facebook SDK. but then I need to re-logging (show pop up or direct to FB app). What I want is, to use session or outhToken that I have while I connected using Social Framework and use it in Facebook SDK. what I know, I have outhToken already. how to use this maybe to pass in FBSession or whatever class object to show app request ?
below is sample of app request.
For those who stumbled this question,
Facebook now remove graph API to grab friends that doesn't install the app. hence we cannot invite friends who doesn't install app.
even using Facebook SDK. if anyone has better solution or any updates on this, please share.

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.

Can we add Twitter permissions on demand in an iOS app?

We are making an iOS app that has two points of integration with Twitter:
1. User can use Twitter account to login (or FB account or just email/password)
2. User can share his freshly done work to twitter (just post a tweet)
So for some users we need a read/write access to twitter, but for some only minimal permission for loggin in would be enough and I wouldn't like to scare users away by asking for a write permission on the first login, when they might not even realize the app can share their work to Twitter.
Is it somehow possible to request only login permissions on first start and tweeting permission only on a first Tweeting need?
P.S.
We are not going to use the built-in iOS sharing sheets, because they are good only for sharing to either FB OR Twitter OR elsewhere. We want to offer sharing to Twitter, Facebook, Email and maybe somewhere else simultaneously, in a foursquare app style
I'm not familiar with the recent changes, but I believe that the permission is the one you set in https://dev.twitter.com/apps. So no, you can't do it. I don't think you can do that on facebook as well.
(sidebar: twitter's documentation now is complete mess. I can't find any useful information there)

Facebook API and iOS

I have a question as I have been looking for the answer on google, but I don't know how to phrase it correctly :P.
I am writing a little app for iOS using Facebook API. I would like apps to communicate between each other, not a lot, just a little bit of data, between users who use that app. Does Facebook support something like that or do I have to implement my own server side in order to have such behavior?
Facebook doesn't support anything like that. You will have to develop your own backend for something such as that. Each of the App's Users who log into Facebook, create a corresponding User in your backend database, storing the Facebook ID of that person. Now you're building your own database where you can handle relationships, and communicate with each other.

Integration With Facebook

I've never used the FaceBook SDK before so I'm not sure what I should be using or whether what I'm thinking of can actually be done. But I want to try to integrate some Facebook functionality with my ASP.NET MVC3 application.
What I need to do:
I want to be able to access someone's Facebook account (granted their permission) and allow them to send out invitations to my website. But, when a friend clicks on the link in the invitation message (whether a wall post, PM... whatever), follows through and registers on the site, I want to be able to track that (maybe by appending the ID or username of the this user to the invitation link, and then extract it from the query string when the invited person/friend registers).
Questions:
From what I've read so far and according to this link, what I think I should be using is the Facebook Connect API. Am I right?
Is what I'm trying to achieve actually doable? Basically, can I append the username to the invitation link? Is Facebook okey with that?
Do you have any good resources other than the Facebook Developer Wiki? Share them please!
P.S: I do not want users to login to my website using their Facebook account. I have my own Membership system. I just want to allow them to invite their friends to register at my website and track that. More requirements might arise but for now that is all what I need.
Your help is appreciated!
EDIT:
Ok I went ahead and created some test app using the Developer FB app to do some experiments. One thing I do not understand though...
Canvas Page: The base URL of your app on Facebook.
Canvas URL: Facebook pulls the content for your app's canvas pages from this base URL.
So what exactly is the Canvas URL? From what I understand, it's a URL to a resource (page?) on my website which Facebook can display inside the Canvas Page, is that correct?
yes
Yes
Facebook documentation + facebook developers forum, that should be all for you. Also, as you are using asp.net mvc, facebooksdk discussion will help you also if you use that library. I will stringly recommend to use that library.
Also, it seems, you are a beginner on facebook api with c#. If so, you can consider my blog post for beginners on facebook open graph api tutorial in c#. There also some other related posts also.Hope you may like them.
Let me know if you wanted to know something else also specifically.
Yes
Yes
Nope. The Developer Wiki has its issues but the Facebook Docs usually solve your problems.

Resources