使用google-api-PHP-client不会在用户流中显示Google+信息流 [英] Post in Google+ stream is not showing up in user's stream using google-api-PHP-client

查看:118
本文介绍了使用google-api-PHP-client不会在用户流中显示Google+信息流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试在用户的Google+信息流中发布信息,并且正在使用google-api PHP客户端进行尝试。到目前为止,我已经能够使用最新的google-api PHP客户端和示例脚本配置测试环境(请参阅 401在使用PHP客户端发布Google+ Moments时未经授权访问以获取更多信息)。它看起来像它发布,因为它返回一个数组与答案,但没有出现在用户流中。



答案数组是:

 数组(
[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

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

解决方案

应用活动不会在用户的流中呈现,而会在Google+的应用活动部分呈现: / p>

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



为防止流中出现垃圾邮件,用户必须在Google+中明确分享自己的信息流。您可以使用股票互动文章

I'm trying to post in a user's Google+ stream, and I'm trying it using the google-api PHP client. Until now, I've been able of configure a test environment using the latest google-api PHP client and an example script (See 401 Unauthorized access when posting Google+ Moments with PHP Client for more information). It looks like it posts, because it returns an array with the answer, but nothing shows up in the user stream.

The answer array is:

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 
) 

which looks correct. Does anyone know why this is happens and how to solve it? Thank you!

解决方案

App activities do not render in the user's stream but instead render in the app activities section of Google+ here:

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

To prevent spam in the stream, the user must explicitly share to their stream in Google+. You can do this using Shares and Interactive Posts.

这篇关于使用google-api-PHP-client不会在用户流中显示Google+信息流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆