简体   繁体   English

Facebook API-发布到用户墙

[英]Facebook API - Posting to Users Wall

I am building a small app that authenticates a user with Facebook. 我正在构建一个小型应用程序,用于通过Facebook验证用户身份。 After the user is authenticated he can upload an image. 用户通过身份验证后,他可以上传图像。 Once this image is uploaded it has to be approved by our staff. 此图片上传后,必须得到我们工作人员的批准。 The image might be approved days later. 图片可能会在几天后获得批准。 My concern is in regards to the access token. 我关心的是访问令牌。 Once the image is approved I want to be able post to that users wall even if it's days later. 图片获得批准后,即使几天后,我也希望能够将其发布到该用户墙上。 What kind of issues should I consider? 我应该考虑什么样的问题?

Facebook is removing the old offline_access permission and thus normal access tokens will only live for 1 or 2 hours, you will see a "deprecate offline_access" migration (enabled by default) in the app setting's advanced tab (the removal will take place 2012 October 3 ). Facebook正在删除旧的offline_access权限,因此普通访问令牌只能使用1或2个小时,您会在应用设置的“高级”标签中看到“默认弃用offline_access”迁移(默认启用)(删除操作将于2012年10月3日进行) )。 They introducing a new endpoint that will let you extend the lifetime of the default short lived access tokens. 他们引入了一个新的终结点 ,可让您延长默认的短暂访问令牌的生存期。 If you want to be more future proof, you might want to migrate to this now. 如果您想成为将来的证明,则可能现在想迁移到此。

如果图片在60天后获得批准并且在此期间未得到授权使用,则FB访问令牌的当前有效期限为60天。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM