Sync Facebook events from specific page to Google Calendar - google-calendar-api

Someone must have done this before, I'm trying to sync facebook events from one specific page (so not from my whole account) to a public Google Calendar. I'm assuming I'm going to need the Facebook API for this, but I'm not sure where and how to get started.
Could anyone please push me in the right direction, thanks!

Related

Is there a way for someone to add an event from my app to my Google Calendar? (e.g., similar to Calendly?)

I am somewhat new to this, and I've been building an app on low code platform Bubble.io. I've recently been trying to learn the Google Calendar API to integrate a new function into my app.
Here's what I'm trying to enable: a Calendly-esque function where a user of the app can connect their Google Calender. The user can then send a url to non-users of the app to book time with the user on the user's Google Calendar.
Here's my question: how can someone book time on another persons calendar without making the calendar public? From what I've been researching the calendar has to be public to book without authorizaton, but Calendly manages to do this without making a calendar public.
Thank you in advance to anyone who takes time to read / respond!
if you're still trying to solve this, yes this is possible. Two ways I know this can be done:
Nylas, which would also allow you to integrate with Microsoft/Outlook calendars using the same API calls https://www.nylas.com/
Google Calendar API https://developers.google.com/calendar
Both of these will require you to set up OAuth functions, and might require some custom javascript actions (but also might not). When I tried to set up Nylas using Bubble several months ago, it was not possible to create a Bubble OAuth flow using the API Connector with Nylas. Instead, I had to create a custom flow and it was quite confusing to set up, but eventually worked to do what you've described.

Google Calendar: limit API access to a single calendar?

I'd like for my app to add/delete/update events on a user's Google Calendar. The app only needs to delete and update events that the app itself has added.
Have I understood it correctly, that in order for this to work, the users have to give the app full access to their Google Calendars, meaning that the app could potentially read and delete private events on any calendar?
Or, is there a way to limit the access that a user gives to the app, for example, allowing the app to create a single calendar and only giving it access to events on that one calendar?
I've read through the relevant Google Calendar API, and I'm not seeing that this is possible. However, giving full access seems crazy and unnecessary!
It seems that this isn't possible. Google, why!?
What I ended up doing was skipping the API and using a calendar subscription. Limited use since the user needs to be able to set up a subscription and, especially, because Google takes up to a day to update subscribed calendars.

Gathering data from google analitycs to my own admin panel

I'm starting with google analitycs.
Before I'll start implementing this into my pages I'm wondering if I'm able to get informations like average time at site, where my user came from, which devices they are using etc.
I would like to get those information from my VueJS front SPA application by async HTTP GET call and display those there. Is it possible?
If yes I would be very thankful if you provide some links to google API where I can find it or some tutorial.
Since Universal GA you can't access users' origin data outside GA in your application. Before that you had all this juicy information inside a cookie, inside __utma, __utmz etc (more info here).
The information you're asking about (time on site, pages visited, etc) can be retrieved from GA afterwards if you make use of the userid feature.

Missing meeting organizer display name when getting events from Google Calendar API v3

When querying events via the Google Calendar API (V3), I am unable to see the display name of the organizer of the event. The email field is populated however there is no display name.
From previous research I can only find mentions that in order to get the display name to populate, the GSuite user must also activate Google+ on the user's account. Is this seriously the only way to do it? Or are there any other API calls I can use to maybe retrieve this data?
Any help would be appreciated, Thanks!
You can check Daimto's answer from this SO post.
Display name is only added via the web view if it is a gmail account
and google has some way of knowing what the users name is. This might
also work if the user organizer has said user in their google contacts
google might be able to grab it that way as well.

2 way sync Google Calendar with Fullcalendar

I've been able to programmatically develop a 2 way sync between my Fullcalendar and my Google Calendar using php and javascript. My fullcalendar displays events from a Mysql database as well as events from Google calendar.
The problem I am having is that my when my mysql fullcalendar events load into my Google calendar, I then see the mysql events 2x on my fullcalendar...one from mysql and then the one coming back from Google. I need to continue displaying the event created by mysql and discontinue displaying the google events....but only the google events that originated from mysql.
In essense I need to filter out the Google Calendar events that originated from my database, but display google calendar events that were entered manually into the Google Calendar.
When I send the mysql events to google, I currentlty store the returned google calendar id, $gcal_id = $createdEvent->getId() into mysql. My intent is to read the google api callback and filter out the gCal$uid's that match the id's I stored in mysql.
I cannot figure out how to access the gCal$uid values found in the google api callback, and then compare them to an array of id's pulled from the database.
Any ideas or code snippets would be greatly appreciated.
Thank you.
I attacked the problem from a different angle and was able to solve the problem of duplicate entries appearing on my fullcalendar.
As the calendar loads each event, i compare the events id, (minus the #google), to the gcal ids I stored in the database in FullCalendar's "eventAfterRender". If I get a match I use FullCalendar's 'removeEvents' to remove the duplicate event from the Calendar.
I'm having inconsistant results. The process will work several times in a row then all of a sudden stop working. I'm still troubleshooting although it's difficult due to the lack of documentation for PHP.
Anyways, the incoming to FullCalendar from Google Calendar is a breeze compared to the outgoing to google calendar.
For the incoming you need to provide instructions to the user on how to attain their Public or Private XML feedk. The steps to get the Public XML are detailed here http://arshaw.com/fullcalendar/docs/google_calendar/
To get the Private XML just don't make your calendar public and then click the XML button in the Private section.
There are some other steps but they are all detailed in the link the provided.
I'll provide more detailed info on the outgoing sync to google once I get it all worked out
BTW- why can't you send me a private message. Is there something I need to change in my stackoverflow settings?

Resources