Facebook Graph API - authorization types?

Posted by Alex Cook on Stack Overflow See other posts from Stack Overflow or by Alex Cook
Published on 2010-05-15T00:18:35Z Indexed on 2010/05/15 0:24 UTC
Read the original article Hit count: 652

I'm struggling with the new Facebook Graph API, perhaps someone here can help.

Here is what I want to do: provide a ‘login w/ FB’ button, throw to /authorize, get a code, throw to /access_token, get an access_token, and be able to hit https://graph.facebook.com/me for info about the user.

When I try to use type=client_cred in the /authorize call, I get an access_token that lets me hit URLs with userIDs or names, but not /me. I receive an error stating I need a valid token.

If I can't hit /me, how do I figure out who the current user is?

What exactly should I use in the type param if I want a website to access a users data? I've seen posts with type=web_server, etc, but I can't seem to find a sure fire way to do, what I think, is pretty simple...

Thanks ahead of time for any help thats provided...

© Stack Overflow or respective owner

Related posts about facebook

Related posts about facebook-api