circledByCount returns NULL (Google+ API) - api

I need to find out number of people who circled my Google+ account using Google API+.
Well, currently my Google+ account is circled by 84 peoples.
I tried using this people->get API to retrieve my profile.
https://developers.google.com/+/api/latest/people/get
All data are fine except this "circledByCount". It just returns NULL.
Does it require special permission to show up?
Btw, I'm using "login" and "email" scope to retrieve the data.
Thanks

It now works for people too (as well as pages). See this post:
https://plus.google.com/+GerwinSturm/posts/CcVdibqsqNC
But it is still limited: it only counts public followers, regardless of what permissions (scopes) you may have.

You cannot get the circle by count for people it's only for pages
Check here
And here for the Nov 2012 release notes on the feature:

Looking at the matter, I have found that in the call in before "circlesByCount" showed, it has changed and now this field does not appear. I think now these data are provided by the Google Domains API, but whenever I try to test the API, it returns "Error 403 forbidden" and in the documentation "You do not have permission", so I'm not entirely sure.

I was getting this information via API up until 12/13/2013. Its been MIA since then.

Related

Google+ HTTP API returns less activities than supposed to

I've been using Google Plus HTTP API for several weeks now and I'm experiencing a strange issue.
When I try to retrieve public activities from this community: https://plus.google.com/communities/115653528125420367824, I always get 4 results, no more. I've tried increasing the maxResult parameter of the request but it doesn't change anything...
And when I use the nextPageToken to retrieve the missing activities, the "items" field of the response is empty.
You can try it yourself with the Google APIs Explorer here: https://developers.google.com/apis-explorer/#p/plus/v1/plus.activities.list?userId=115653528125420367824&collection=public you will see that only 4 activites are returned and the next page of result is empty.
This is really strange and happened recently, it used to work fine. Maybe it is caused by the fact that the content of some activities of this community contains a stringified JSON object. What do you think?
The activities methods are only supported for retrieving posts by users and Google+ Pages. They are not supported for use with Communities and should not be expected to work correctly. There is definitely no guarantee that this behavior while it might have worked or currently works in some cases today will continue to work in the future.

Google+ Company pages

I am trying to access my company pages in Google+ via its API. However, I can find an endpoint that would return my company page?
I've looked at this endpoint, but I don't see a way of listing all of my companies.
https://www.googleapis.com/plus/v1/people/me
Any ideas?
Instead of the "me", you should be able to use the 21 digit code you'll find in the URL if you look at a page's profile.
You cannot currently determine what pages are owned or managed by a user. You may wish to star this bug to indicate your interest in having this implemented.

Unable to access a post's insights for someone else's page

When I access this resource:
https://graph.facebook.com/xxx_yyy/insights
I get this response:
{
"data": [
],
"paging": {
"previous": "https://graph.facebook.com/xxx_yyy/insights?format=json&since=-86400&until=0",
"next": "https://graph.facebook.com/xxx_yyy/insights?format=json&since=0&until=86400"
}
}
The insights data is empty. "xxx_yyy" is a valid post id I got from the feed.
I have the read_insights permission.
I have the offline_access permission.
I'm an admin on the page.
The page has more than 30 likes.
What's causing the API to return an empty insights array?
There are a few requirements for you to get data back from the Facebook Insights graph API call. These don't appear to be clearly documented anywhere, but this is what I have found by trial and error.
The post must be from the page itself, posts from other people won't return insights data
Look at the id in the From object within the post response from facebook, if that is different than the page_id, you won't get metrics.
It's good to note that I haven't unequivocally proved this point, just some anecdotal testing seems to point in this direction
The post must be quite old, I was able to dig up something on one of their Ads FAQs that post insights won't be available for 12-15 hours after the end of the day they were posted on.
"Page post metrics will be available 12 to 15 hours after the end of the day the post was made. Metrics are logged on Pacific Standard Time." Page Post Metrics FAQ -Ads and Business Solutions
I have yet to determine the exact age that posts need to be precisely, but my guess is 36 hours would be a safe general bet. That being said, Facebook Insights data has been known to fall behind from time to time, so I would assume that the timing with which you can attain data will be variable.
FB documentation on page post insights is available primarily in this Facebook blog post
Invalid ID is a key. xxx_yyy in the question means ID must be a combination of appID (xxx part) and postID (yyy part).
So, here is the right Url for post-related metrics:
https://graph.facebook.com/[appID]_[postID]/insights
You must use PAGE token not USER token.
connect to app with manage_pages and read_insights permission
run api https://graph.facebook.com/me/accounts?access_token=USERTOKEN
this expression lists all pages with access token for each page, that you save and use the expression for the post insights
then run expr.
https://graph.facebook.com/xxx_yyy/insights?access_token=PAGETOKEN

Facebook graph API not returning all mentions

I was having this problem with multiple searches, but here is one of them:
This is the post:
https://www.facebook.com/stefsasu/posts/207104452699707
that should appear in this search:
http://graph.facebook.com/search?q=mccain%20chips&type=post&locale=en_US
Am I doing something wrong?
Even if I delete the locale, the post still isn't there...
This search:
http://graph.facebook.com/search?q=mccain%20chips&type=post&locale=en_US
will not yield all the comments in Facebook that contain "mcCain chips" but rather search facebook for Applications\Pages that contain the search term. This is equivalent for searching in the little search-box on the top of FB's pages.
If you want to search in the comments of a specific user (e.g. Jake) you should fetch https://graph.facebook.com/me/feed?access_token=
and parse the results.
If you want to parse over all of Jake's feed you need to have an access token (which you will get if Jake or one of his friend will install your app, assuming the friend has granted the appropriate permissions).
Click the links on this page for deeper insights on the Graph API:
http://developers.facebook.com/docs/reference/api/
You can search over all PUBLIC objects only...Stefan Sasu account is not public...

Table blocked on YQL?

I'm trying to retrieve a user timeline from Twitter using YQL's community Twitter table. The full REST url is
https://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20twitter.status.timeline.home%20WHERE%20oauth_consumer_key%20%3D%20'kt9wDTrDREjXzRhBMpw'%20AND%20oauth_consumer_secret%20%3D%20'zNnA76G3NhZSeaJdRv7munbyutlcqK8k0hazf6JrEo'%20AND%20oauth_token%20%3D%20'195tuy9661-yJFEsgA0VPCwg6gsNHtuy2y2Kq2LwTdKe4BRYa4j'%20AND%20oauth_token_secret%20%3D%20'myWfyDTtOHscMmJy6tuyU1XDyiZJiIIRkK7sIPvT2ngI'&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
(keys have been mangled to protect the guilty)
The response I get is:
The current table
'twitter.status.timeline.user' has
been blocked. It exceeded the allotted
quotas of either time or instructions
As I seem to be doing the querying correctly, I'm at a bit of a loss as to why I should get this response, particularly since it works as it should through the YQL console. The only thing I can think of is that I need to authorize my query somehow with an API key, or oAuth credentials, but I haven't been able to find a comprehensible example of how to do this.
Can anyone possibly point me in the right direction on this? YQL's community tables seem to offer a marvelous way to do very complicated things with ease, so I'd hate to fall at the last hurdle so to speak.
According to the twitter docs the call to this API endpoint is supposed to return the last tweets from the authorized user, right? Not from any kind of user. Just checking that this is really what you want to achieve.
From: http://dev.twitter.com/doc/get/statuses/home_timeline
Returns the 20 most recent statuses,
including retweets if they exist,
posted by the authenticating user and
the user's they follow. This is the
same timeline seen by a user when they
login to twitter.com.
This is the definition of the datatable that you are using. I am a bit confused about the #id parameter in the example of that datatable because I don't see it being used anywhere.
www.datatables.org/twitter/twitter.status.timeline.home.xml
The error message you get sounds like an internal YQL error message and not like something that comes from Twitter, doesn't it?
Sorry for not being able to provide answer right now but maybe raising other related questions can help somebody else or you to figure it out. If I crack this later I will add to this again.