我一直在递交我的申请无法获取Facebook的Open Graph的动作用轨和考拉宝石
你的Open Graph的行动未能就任何您所提交的平台发布之后得到这个消息的批准。在重新提交之前,通过向测试用户发布操作,确保操作正常。
我有一个测试用户,我自己的帐户,测试人员测试和它的工作原理所有的时间..
背景。 用户has_many:authorization_providers,例如Facebook,微博,gplus等 在Facebook的行动,我取的的oauth_token
def facebook
begin provider = authorization_providers.where(provider: 'facebook').first
@facebook ||= Koala::Facebook::API.new(provider.oauth_token)
block_given? ? yield(@facebook) : @facebook
rescue Koala::Facebook::APIError => e #Koala::Facebook::APIError
return nil
end
@facebook
end
在这次行动中,我得到许可
def facebook_publish_actions
if facebook
begin
permissions = facebook.get_connection("me", "permissions")
publish_actions_permission = permissions.find { |permission| permission["permission"] == "publish_actions" }
publish_actions_permission_granted = publish_actions_permission && publish_actions_permission["status"] == "granted"
return publish_actions_permission_granted
rescue
return false
end
else
return false
end
end
实际的发布从sidekiq工人完成其中'share_on_facebook'和'录音'是来自分区的记录
user.facebook.put_wall_post(share_on_facebook.message,
{
"name" => "#{recording.title}",
"link" => "http://www.digiramp.com/users/#{recording.user.slug}/recordings/#{recording.id}",
"caption" => "#{user.name} recomended a recording",
"description" => "#{recording.comment}",
"picture" => "#{recording.get_artwork}"
})
在facebook开发者页面上我有cre ated one story for the app'推荐一首歌'
以上所有的作品。 任何人都愿意帮助我,我会授予所有必需的权限。
现在你可以去http://digiramp.com并注册Facebook。 我会将您添加为我的项目的测试人员,您应该可以发布。
编辑:
我不要通过ID:FbRecordingCommentWorker.perform_async(@share_on_facebook.id)
请在digiramp.com上注册并与我联系https://digiramp.com/users/max-groenlund。 然后,您可以提供我您的fb用户名,而无需在此发布 然后我可以让您成为我的fb应用程序的测试人员 然后您可以发布 – Max 2015-01-16 11:28:08