how to view current user's facebook birthday notifications on graph api - ruby

So I am currently making a Birthday App.
and when I use the Koala Facebook api graph I cannot get ahold of the current user's birthday connections. I can get all other notifications and some birthday announcements in the feed. Can anyone help?

You can only get the birthday of the authorized user, with the user_birthday permission. You can NOT get the birthdays of his friends, friend permissions have been removed.
Meaning, a birthday App would only make sense between authorized users.

Related

Outlook / Exchange API (Microsoft Graph?)

I am making a quick program that can check another users Outlook calendar and book an appointment. The booking part is fine, but I am looking at a way to return other users calendar information, without having to link a calendar to Outlook first.
I was thinking that there would be an API or a way to access this information either via 365 or the exchange server. There is this (https://learn.microsoft.com/en-us/previous-versions/office/office-365-api/?redirectedfrom=MSDN#Getevents) but it doesn't seem to do what I am after and is also deprecated with an end date within a year
I have read about Microsoft Graph but in reading it refers to 'users calendar', can this do calendars for a specific user that isn't me?
GET /me/calendar/calendarView?startDateTime={start_datetime}&endDateTime={end_datetime}
If so, does anyone know how?
Thank you
You can access user's calendar by calling the following endpoint
GET /users/{id | userPrincipalName}/calendarView?startDateTime={start_datetime}&endDateTime={end_datetime}
Resource:
List calendarView

Invite guardians from the same domain to Google Classroom

I'm trying to invite a guardian to a Classroom course using Api Explorer. The student and the guardian's emails are in the same domain (as in the case that a school teacher has a son attending his school). The requests returns OK, but the invitation email never comes. I've tried with the same student with emails from other domains and everything runs fine. I've found nothing in documentation about this, neither in Classroom nor Admin Console.

Slack API get user join to the team date

Is there a way to get user join date to the team via Slack API? The best would be to have all the users and their join dates in the same JSON. Searched through https://api.slack.com/methods , but was not able to find such a method.
Its in the API method team.accessLogs. There you get the property date_first, which is the date when that user first logged into Slack.
This method is for payed teams only. But you can track that information yourself with a small app that listens to team_join event.

Is it possible to update multiple calendars using google calendar api

I want to allow users of my site to schedule an appointment with other users. Once both users agree on the date and time it will update both their calendars to show this (assuming they are authenticated).
Is this possible or is the Calendar api simply for updating one calendar as an authorized user?
Thanks in advance!
As long as the user / users you are updating calendars for have both authenticated your application yes you can add events to their calendars.
A few things to note I the beginning. There is a difference between a calendar list and a calendar. Calendar list is the list on the left hand side of all of the calendars a user has. A user can have more then one calendar so be sure to ask the users which calendar they will want to add the event to.

How to get parameters from link sent to Facebook Notifications

Not sure how to ask this question. I have implemented a ConnectInterceptor. However, I don't think it will have the parameters that are in the link sent to a user in their Facebook notifications.
Here is the scenario. A user is logged into our application (Facebook Flash app, iOS app, Android etc. Doesn't matter) The user has connected their Facebook account to their login. Now they go to a page that shows all their friends on Facebook where they can send an invite to that friend to join our app (signup). In that invite that we send to the friend's notifications has the userID (our app) and a gift/productID in the link that will take the user to our app in Facebook where they can join. When they join, it will connect their Facebook account to our app, and at that time we have to give free chips to the user that invited the Facebook Friend (hence the userID in the link) and give any gift to the new user (hence the gift/productID) in the link sent to their notifications.
So I need access to the userID and gift/productID when creating the new user in our app. New user is created in a ConnectionSignUp implementation. But that has execute(Connection) which will definitely not have the user and gift IDs in the call.
Basically, in our app we have players inviting Facebook friends to join the game, and if they do the player inviting will get free chips and the new player might get a gift or free chips, but only when the new player signs up/links their Facebook account in our app.
So I thought an interceptor would be able to get it from the
void postConnect(Connection<T> tConnection, WebRequest webRequest) call.
Will that work, or is there another way to implement this use case that we need.
Thanks
Mark
See comments for answer. Interceptors is the way to go

Resources