Facebook signin

82 views
Skip to first unread message

PDT

unread,
Oct 5, 2011, 12:22:40 PM10/5/11
to 8tracks public API
Is it possible to log people in via the Facebook connection 8tracks
offers? I have a few complaints from people wondering why facebook
does not work from my app when they create an 8tracks account.

If not, would it be possible to direct people to a sign up page
designed for mobile browsers that does not mention facebook connect?
Or better still, provide an API for account creation?

Thanks!

Paul

Remi Gabillet

unread,
Oct 5, 2011, 3:07:00 PM10/5/11
to 8tracks-p...@googlegroups.com
Hey Paul, you bring up a couple good points here.

1. Users who use FB on the site, cannot use FB on 3rd party apps to
log into their accounts.
2. There's no account creation on 3rd party apps.

For 1. Unfortunately we don't have a clear solution yet. The best way
would probably be to implement OAuth so that a user can go from your
app, to our site, log in there with FB or a password, then get return
a token that you can use. It'll take a little while before we get
there :/

For 2. you should be able to create a user account with the following
undocumented call:

curl --request POST -d
"user[login]=testlogin&user[email]=em...@emails.com&user[agree_to_terms]=1&user[password]=mypassword"
https://8tracks.com/users.json

SUCCESS

{"status":"201 Created","user_token":"593771;ab16d970eaccb842d40e0336b639d0b9b3389acd","current_user":{"id":593771,"login":"testlogin","popup_prefs":"ask","next_mix_prefs":"ask","slug":"testlogin","bio_html":null,"location":"","path":"/testlogin","avatar_urls":{"sq56":"/images/avatars/sq56.jpg","sq72":"/images/avatars/sq72.jpg","sq100":"/images/avatars/sq100.jpg","max200":"/images/avatars/max200.jpg"},"subscribed":null,"followed_by_current_user":false,"follows_count":0},"errors":null,"notices":null,"logged_in":true,"api_warning":"You
must use a valid API key. You can pass it as a parameter named
'api_key'.\nJust go to http://8tracks.com/developers to get one."}

Paul Tidwell

unread,
Oct 5, 2011, 3:51:04 PM10/5/11
to 8tracks-p...@googlegroups.com

I think the local account creation is a good choice for me then.  At least people won't get teased with the facebook option.

Also, I hope no spam bots writers are reading this forum.  Good thing API keys will be mandatory soon.

Levi Notik

unread,
Jul 5, 2012, 9:42:12 PM7/5/12
to 8tracks-p...@googlegroups.com
Still no public API for creating an account? Was evaluating using the API, but hard to take it seriously when there's no easy to create an account or log a user in with FB...

Remi - 8tracks

unread,
Jul 7, 2012, 2:23:12 AM7/7/12
to 8tracks-p...@googlegroups.com
Hi Levi, sorry for the delay but I've been hammered, I've never added
it to the doc but it's super easy to create a new user:

curl --header 'X-Api-Key: xxxxxx' --request POST -d
"user[login]=remi&user[password]=password&user[email]=re...@8tracks.com&user[agree_to_terms]=1"
https://8tracks.com/users.json

It will return the user object, just the like the "login" call.

As for taking the 8tracks API seriously, it's up to you. I maintain it
by myself but I make sure to listen to you guys and help out when I
can.

Remi
--
Rémi Gabillet
8tracks CTO & co-founder
Reply all
Reply to author
Forward
0 new messages