Google+流中的帖子未使用google-api-PHP-client显示在用户的信息流中

时间:2013-04-05 09:24:56

标签: google-api google-plus google-api-php-client

我正在尝试在用户的Google+信息流中发帖,而我正在尝试使用google-api PHP客户端。到目前为止,我已经能够使用最新的google-api PHP客户端和示例脚本配置测试环境(有关详细信息,请参阅401 Unauthorized access when posting Google+ Moments with PHP Client)。它看起来像是帖子,因为它返回一个带有答案的数组,但没有任何内容显示在用户流中。

答案数组是:

Array ( 
    [kind] => plus#moment 
    [type] => http://schemas.google.com/AddActivity 
    [target] => Array ( 
        [kind] => plus#itemScope 
        [url] => https://developers.google.com/+/plugins/snippet/examples/thing 
    ) 
    [result] => Array ( 
        [kind] => plus#itemScope 
    ) 
    [id] => xxxxxxxxx 
) 

看起来是正确的。有谁知道为什么会发生这种情况以及如何解决它?谢谢!

1 个答案:

答案 0 :(得分:4)

应用活动不会在用户的信息流中呈现,而是在Google+的应用活动部分进行渲染:

https://plus.google.com/apps/

要防止流中的垃圾邮件,用户必须明确分享到他们在Google+中的信息流。您可以使用SharesInteractive Posts执行此操作。