Microsoft Graph Api GET events showing details of private meetings in meeting room calendars - rest

To collect data on the occupancy of rooms I am querying MS Graph API using the List Events endpoint
https://learn.microsoft.com/en-us/graph/api/calendar-list-events?view=graph-rest-1.0&tabs=http
The issue is that I need the number of occupants in a room and the time of a meeting however it seems to return information about Private events showing the name of the events plus the attendees. For privacy reasons, this data cannot be handed out around the organization. I have tried using getschedule API endpoint but this seems to not show enough data. i.e. doesn't show the number of attendees
Does anyone know if I am missing something with List Events on how to not look into details of Private Events?
https://graph.microsoft.com/v1.0/users/{UPN}/events$select=subject,body,bodyPreview,organizer,attendees,start,end,location

Related

How to get list of all subscribers in ManyChat API

I want to start using ManyChat API. I see on their help page here https://api.manychat.com/swagger many functions to find users by name or id etc (getinfo, findbyname... ).
But I need a list of all subscribers (names and email addresses)
which function do I need?
Thanks!

Is it possible (again) to collect event data from Facebook API?

I run an event platform and am looking for a way to retrieve event data (name, date, location, description, etc.) from different events (festivals) on Facebook.
We were working on a connection when the Cambridge Analytica thing happened. Since then my developers have not found a new way to retrieve info, but I'm a bit skeptical.
As of now, it is not possible to get Page Events (which you want to get, i assume):
This is a restricted edge. You cannot request access at this time.
Source: https://developers.facebook.com/docs/graph-api/reference/page/events/

How do I fetch the facebook events of a particular location

I would like to fetch all the facebook events by passing a latitude or longitude or a place, As FQL support is no more, I've tried the following query
search?q=*&type=events&center=37.76,-122.427&distance=1000
But the results I get are from syria, India, USA, Hungary and all, why I'm not getting the events from only that location I've specified. Is there any legal issues in fetching the public events from facebook, How many number of eevnns I can fetch at a time??
There is no way to directly search for events in a specific area. The center and distance parameters are only available for Places, as you can read in the docs: https://developers.facebook.com/docs/graph-api/using-graph-api#search
More information:
https://www.facebook.com/help/community/question/?id=10201749749651827
How can I query public facebook events by location/city?
About "how many events can i fetch", those are the API rate limits: https://developers.facebook.com/docs/graph-api/advanced/rate-limiting
API results usually have a limit of 25 entries for one API call. But you can set it higher:
/search?type=event&q=test&limit=100
Legal issues depend on what you want to do with the data, impossible to say without knowing the details for your App.

Facebook analytics redacted

I am sending various events from my Unity iOS game to Facebook analytics and logging them. I can see all the events being registered properly. Till few days back I was able to see breakdown of events into sections like country, gender, region,etc. But now in place of details like how many downloads per country the breakdown is showing Redacted.
Has anyone faced this problem? What can be the cause of this?
This is most likely because the user count for the date range you're querying has dropped below 100 users. Demographic data is redacted below that level to protect user identity. For some reports (page likes, household income etc) the redaction level is slightly higher at 1000 users.

Facebook Graph API Data Incorrect

Small problem here. I have an event created on Facebook and am using the Graph API to get the number of attendees.
I get the list of attendees with PHP from https://graph.facebook.com/EVENTID/attending?access_token=TOKENHERE and it returns a list of names.
However, the number of attendees is about 6 people lower than what is shown on the Facebook event page. Why would these numbers not match? Is there something in particular I'm supposed to do in the code to get the entire list?
As answered in the comments:
This discrepancy is probably down to a number of the attendees having opted out of Facebook Platform, which means their data isn't passed to apps via the API. Can't be 100% sure without the Event ID, but its a likely reason. – Simon Cross
From the Graph API, the people who have not joined the event will not show up under /{eventid}/attending, you need to add in the users who are returned in /{eventid}/not_replied. The not_replied set seems to be a special set in the GraphAPI.. and if you look at the docs, there is a mention of only people who have joined the event.