Facebook access token usage in Foursquare

261 views
Skip to first unread message

Venugopala Rao Moram

unread,
Jul 6, 2011, 3:07:03 PM7/6/11
to foursquare API
HI,
I'm planning to write mobile app using FourSquare V2 API and make use
of Facebook users.

Is it possible to retrieve data from Foursquare using Facebook auth
token provided Foursquare user mapped the user account with Facebook
user account?
If the user is not mapped the user account with Facebook account, is
it possible to map it from API?

Thanks,
Venu

Akshay Patil

unread,
Jul 7, 2011, 5:58:28 PM7/7/11
to foursqu...@googlegroups.com
Hi Venu,

You can't use facebook credentials to access foursquare, you'll need the user to specifically authenticate your application to access their foursquare information.

To find a facebook user on foursquare, you can use our /users/search endpoint: https://developer.foursquare.com/docs/users/search.html, but in general, you'll find out their userid if you just begin our authentication process with them anyways

~ak
--
Akshay Patil / Foursquare Platform Evangelist
@akdotcom / @foursquareapi


Venugopala Rao Moram

unread,
Jul 8, 2011, 4:49:48 PM7/8/11
to foursquare API
HI Akshay,
Thanks for the response. I thought the samething but hoping that
linked users (user who linked/mapped their foursquareid with
facebookid) can seamlessly access foursquare and facebook data with
the same token. For eg: if I login to facebook.com with my creds and
when I go to foursquare.com it automatically logs in. I thought if SSO
for this scenario works then my app should be able to fetch data from
both the sources with same token!
It looks like one has to login seperately to facebook and foursquare,
if they need to fetch data from both the sources even if that user
linked the accounts. Is this correct assumption?
Thanks,
Venu

On Jul 7, 2:58 pm, Akshay Patil <a...@foursquare.com> wrote:
> Hi Venu,
>
> You can't use facebook credentials to access foursquare, you'll need the
> user to specifically authenticate your application to access their
> foursquare information.
>
> To find a facebook user on foursquare, you can use our /users/search
> endpoint:https://developer.foursquare.com/docs/users/search.html, but in
> general, you'll find out their userid if you just begin our authentication
> process with them anyways
>
> ~ak
> --
> Akshay Patil / Foursquare Platform Evangelist
> @akdotcom / @foursquareapi
>
> On Wed, Jul 6, 2011 at 3:07 PM, Venugopala Rao Moram <mvgo...@gmail.com>wrote:
>
>
>
> > HI,
> >  I'm planning to write mobile app using FourSquare V2 API and make use
> > of Facebook users.
>
> > Is it possible to retrieve data from Foursquare using Facebook auth
> > token provided Foursquare user mapped the user account with Facebook
> > user account?
> > If the user is not mapped the user account with Facebook account, is
> > it possible to map it from API?
>
> > Thanks,
> > Venu
>
> > --
> > To post to this group, send email to foursqu...@googlegroups.com
>
> >http://groups.google.com/group/foursquare-api- Hide quoted text -
>
> - Show quoted text -

Akshay Patil

unread,
Jul 11, 2011, 4:03:30 PM7/11/11
to foursqu...@googlegroups.com
Correct. Linking accounts are not the same thing as SSO.


~ak
--
Akshay Patil / Foursquare Platform Evangelist
@akdotcom / @foursquareapi


Reply all
Reply to author
Forward
0 new messages