我有一个在服务器上运行的应用程序.在该服务器上是后台任务,它将在少数社交网络(Facebook,Twitter,G +)上发布状态更新.它必须完全是服务器端的.
在Twitter API中,我可以使用OAuth标头来授权API请求.OAuth HTTP标头使用使用者密钥,使用者密钥,访问令牌和访问令牌密钥来创建标头.有了这个,我就可以发布/更新/删除推文而无需用户交互.
我怎么能为Facebook做这个?我找到了获得长期access_token(2个月)的解决方案,但我们不想每60天重新生成一次access_token.我们想用它来管理我们的Facebook页面 - 发布状态更新,但完全是服务器端.
我能为Facebook做到这一点吗?谢谢你的回答.PS:我搜索了stackoverflow一百次,但没有解决我的问题.
谢谢.
我对Google API有疑问.我的目标是从服务器向我们的Google+公司页面发布状态.所以它必须是服务器端,完全.
我从Google文档中看到了数百页,但我根本不理解.
当我尝试执行"plusDomains.activities.insert"操作(通过API Explorer)时,我收到错误:
{
"error": {
"errors": [
{
"domain": "plusDomains",
"reason": "forbiddenScope",
"message": "Access to the Google+ Domains API is not allowed as the user has consented to incompatible scopes. See: https://developers.google.com/+/domains/authentication/."
}
],
"code": 403,
"message": "Access to the Google+ Domains API is not allowed as the user has consented to incompatible scopes. See: https://developers.google.com/+/domains/authentication/."
}
}
Run Code Online (Sandbox Code Playgroud)
这个错误的原因是什么?我必须使用哪些用户?在开发者控制台中,我有3个用户和1个完整管理员(我的G-Apps帐户).我应该设置什么作为客户端ID和谷歌凭证对象?
非常感谢任何建议.