0

So, Facebook has 2 types of access tokens: Application and User access token.

Is it possible to use the Application access token for open graph?

4

1 回答 1

1

Facebook has more than two types of access tokens, there are at least 3 since you forgot to mention the Page Access Token.

According to the App Access Token documentation:

Authenticating as an Application allows your application to obtain an App Access Token. This is useful to make requests to the Graph API to modify the parameters of your app, create and manage test users, or read your application's insights for example.

As you can see, it depends what it is you want to ask the fb graph. If you want for example to get the feed of a public page then an app token will suffice, on the other hand if you want to get the feed of a user then you'll have to use a user token.

When you browser through the Graph API documentation, for every object you get a list of fields and connections, and the 3rd column of the tables is titled as Permissions, in that cell you'll have info of what access token is needed if any.

I.e., if you check out the User object you can see:

  • id: No access_token required
  • updated_time: Requires access_token
  • installed: Requires app access_token

Hope this clarifies things for you.

于 2012-04-06T09:08:02.920 回答