0

I am just starting out looking at Facebook applications. I am planning to make an app – where should post photos to users walls or photo albums. It happens typically days after they have installed the app.

I have read that there exists different tokens. User tokens which expires after some time and App tokens, which does not expire. I have made some experiments – and must admit I am a bit confused. I tried getting tokens for 2 different users. The user tokens were different (of course). However, the App tokens was not? My questions are.

  • Is the App token always the same for all users?
  • Must I also get a user token from a user of my app when I have an App token?

EDIT: Since I posted this yesterday – I have realized that I need to make my questions clearer.

  • Is the App Token only to be used with access to information about the application itself – or is it e.g. used to achieve a non-expiring possibility to post to a user’s own wall?
  • If I want to be able to post a photo to a users wall long after he has been using my app last. Should I when use an App Token or a User Token?
4

1 回答 1

0

用户令牌

普通用户访问令牌将在 2 小时后过期。但是您可以将其延长至 2 个月。看这里

应用访问令牌

私有给应用程序的管理员,不要公开它。而且它永远不会过期。通常,在应用程序开发中不需要它(仅适用于某些 API)。你可以从这里得到它

还有一个page access token管理页面的工具。

你必须经历一次:访问令牌和类型

于 2013-01-17T13:26:15.440 回答