使用google_api_client gem在用户的Feed上看不到Google +时刻

我正在尝试使用google api客户端发布到用户的流,我使用下面提到的代码

require 'google/api_client' require 'google/api_client/client_secrets' require 'google/api_client/auth/installed_app' client = Google::APIClient.new client.authorization.client_id = CLIENT_ID client.authorization.client_secret = CLIENT_SECRET client.authorization.access_token = USER_ACCESS_TOKEN plus = client.discovered_api('plus', 'v1') moment = { :type => 'http://schemas.google.com/AddActivity', :target => { :id => Time.now.to_i.to_s, :description => 'well this is it', :name => 'Well this is it' } } req_opts = { :api_method => plus.moments.insert, :parameters => { :collection => 'vault', :userId => 'me', }, :body_object => moment } response = client.execute!(req_opts).body 

执行上面的代码后,我收到如下响应

  {"kind"=>"plus#moment", "type"=>"http://schemas.google.com/AddActivity", "target"=>{"kind"=>"plus#itemScope", "id"=>"1422863753", "description"=>"well this is it", "name"=>"Well this is it"}} 

但是当我转到用户的个人资料时,我无法在个人资料中看到此活动。

注意:片刻方法不会直接写入用户的Google+信息流。 相反,它们会写入用户的配置文件,而不一定是其他人可以查看,具体取决于用户的首选共享设置。

管理Google中的应用活动

要查找可见时刻,请查看有关页面的个人资料,然后查找“使用Google+登录的应用”部分。

在此处输入图像描述