如何从公开个人资料上的Google Plus api帖子中获得社区标签? [英] How can I get the community label from a Google Plus api post on my public profile?
问题描述
对于我的网站,我正在使用公开的Google+帖子填充我的博客页面.目前,我已经硬编码说公开共享",但是我想展示那些发布到公共社区以在Magikarp赞赏协会上显示共享"(例如).
For my website, I'm using my public Google+ posts to fill my blog page. Currently I have it hardcoded saying 'Shared Publicly' but I would like to show for the ones that are posted to a public community to show Shared on Magikarp Appreciation Society (as an example).
在我的网站上,javascript控制台中是对象中的帖子列表.它们都不具有与共享的内容有关的任何值的属性. http://master5o1.com/Posts
On my site, in the javascript console is the list of posts in object. None of them have a property that has any value relating to what it is shared on. http://master5o1.com/Posts
有人可以指出正确的方向来找到发布的内容吗?
Could someone point me in the right direction for finding what a post is posted to?
推荐答案
Google+ API仅提供对公开共享帖子的访问.我建议使用唯一的标签来标记您的博客文章,然后执行活动.使用该标签搜索API调用,以查找要在博客上显示的帖子.
The Google+ API provides access to publicly shared posts, only. I would recommend using a unique hashtag to mark your blog posts, and then performing an activities.search API call with that hashtag to find the posts you want to surface on your blog.
您还可以使用新的 Google+嵌入式帖子直接将特定帖子嵌入到您的网站中功能,该功能使您的读者可以通过您的博客直接在Google+信息上+1或发表评论.
You can also embed specific posts directly onto your website with the new Google+ Embedded Posts feature, which would allow your readers to +1 or comment directly on the Google+ post from your blog.
这篇关于如何从公开个人资料上的Google Plus api帖子中获得社区标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!