How can I get the community label from a Google Plus api post on my public profile?

三世轮回 提交于 2019-12-13 04:32:48

问题


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).

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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/18762248/how-can-i-get-the-community-label-from-a-google-plus-api-post-on-my-public-profi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!