简体   繁体   中英

Google+ API - issue getting posts on business page

So I am using java API to get public posts from a google+ business page.

` String businessPageId = "104451189002914239318"; `
`List<Activity> activities = plus.activities().list(businessPageId, "public").execute().getItems();  // no activities returned `

Even though there are public posts, the above call does not return any posts.

I did discover that , getting the Person for that page as

`String personId = plus.people().get(businessPageId).execute().getId();`

and using personId instead of businessPageId gets the posts.

What does the above call represent.? is it the page owner.?

Can anyone shed light what's going on here.?

It's two pages that have been merged together. If you visit https://plus.google.com/104451189002914239318 you will see it redirect to https://plus.google.com/108277438040092360159 . Use the second ID and you should be all set.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM