调用此方法 fbcmd 需要会话密钥吗?
我正在使用 fbcmd 工具进行 facebook 离线访问。
fbcmd auth XXXXXX 工作正常一段时间。
突然我收到以下错误
fbcmd [v1.0-beta5-dev1] ERROR: AUTH
[453] A session key is required for calling this method
有什么想法吗?
编辑:此错误仅在调用 rake 任务时发生
require "#{Rails.root}/config/environment.rb"
namespace :posts do
desc "delivers expired posts"
task :deliver do
postmessages = Postmessage.where(:expires_on=>(Time.zone.now-10.minutes)..(Time.zone.now))
unless postmessages.empty?
puts "Delivering posts..."
postmessages.each do |postmessage|
system("fbcmd auth 975NN1")
system("fbcmd POST '#{postmessage.craft_message}'")
end
p "Delivered posts"
else
p "No posts to deliver"
end
end
end
I am using fbcmd tool for facebook offline access.
fbcmd auth XXXXXX worked fine for a while.
Suddenly i am getting the following error
fbcmd [v1.0-beta5-dev1] ERROR: AUTH
[453] A session key is required for calling this method
Any ideas?
EDIT: This error occurs only when calling a rake task
require "#{Rails.root}/config/environment.rb"
namespace :posts do
desc "delivers expired posts"
task :deliver do
postmessages = Postmessage.where(:expires_on=>(Time.zone.now-10.minutes)..(Time.zone.now))
unless postmessages.empty?
puts "Delivering posts..."
postmessages.each do |postmessage|
system("fbcmd auth 975NN1")
system("fbcmd POST '#{postmessage.craft_message}'")
end
p "Delivered posts"
else
p "No posts to deliver"
end
end
end
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否更改了密码或从隐私设置中删除了该应用程序。如果它突然不工作,这很可能是原因。
Have you changed your password or removed teh application from your privacy settings. If it is not working suddenly this is most likely the cause.
你调用什么方法?您有有效的访问令牌吗?
What method are you calling? Do you have a valid access token?