on facebook, how do i authenticate an application, using JavaScript?

Posted by GilShalit on Stack Overflow See other posts from Stack Overflow or by GilShalit
Published on 2011-01-05T14:50:27Z Indexed on 2011/01/05 14:54 UTC
Read the original article Hit count: 196

I can only find samples using php or curl.

I want to do something like

https://graph.facebook.com/<app_id>/accounts/test-users?
                                installed=true&permissions=read_stream

and the response is:

{
    "error": {
        "type": "OAuthException",
        "message": "An access token is required to request this resource."
    }
}

as well is should... so how do i get the access token in JavaScript (using the JavaScript SDK obviously).

thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about facebook