How to create google calender event from php backend - google-calendar-api

I want to create a google calender event whenever a user in my php site put an entry request.
Is it possible to create the event automatically from the server. If how to create it. Please help me to do.

Yes, look into Calendar API v3: https://developers.google.com/google-apps/calendar/
There are client libraries for php in the downloads section.

Related

Create calendar Event in Google App maker

I'm really a beginner with Appmaker. How can I create events from a specific calendar instead of the default calendar? I've try several thing but I need little help.
Google posted some example code for the Advanced Calendar Service in Apps Script here. It looks like it lists out the user's calendars, and then you can select a Calendar ID to create the event on.
Remember that you'll need to turn on the Advanced Calendar service in your App's settings.

Embedding website in Google Calendar

I have a question regarding google calendar. i am new to it so not sure if i am asking correct question.
I want to integrate google calendar appointments with one of my application. what i want to do is
I should be able to integrate a web application with in google
calendar. Basically there should be some sort of button on appointment window which will take user to a webpage
Whenever user creates an appointment user should be able to set some
custom props on appointment
Webapp should be able to set location with in google calendar
As soon as user saves appointment all of the relevant information
should be saved in database.
i want to know if its possible at all. actually i want to achieve something similar like outlook addins.
First of all try reading the Get Started with the Calendar API:
The Calendar API lets you display, create and modify calendar events as well as work with many other calendar-related objects, such as calendars or access controls. This document describes how to use RESTful calls and client libraries for various programming languages (Java, PHP, .NET, JavaScript, NodeJs, Ruby, Python, Go, Android, iOS).
All your question is possible and will all depend on your implementation. You might want to check this tutorial - Google Calendar API with JavaScript, this will help you develop a web application to create or display Calendar data.
Hope this helps.

Debugging FullCalendar to Google Calendar integration

I was asked to implement FullCalendar for our company's web application to pull in a calendar from Google Calendar. I have imported and referenced the JS and CSS files to where I am getting the calendar to appear to appear on the page configured the way that we want, however, there no events showing up.
I saw on the FullCalendar site a note, "If you need to detect errors with the Google API ... You'll need to use the FullCalendar's googleCalendarError callback ..." But there was no examples and no documentation on how to perform this. I Googled for examples and found no code examples of how to do this so that I could debug what was happening and why the calendar appears structurally, but with no calendar data. Any help would be appreciated. Thanks.
Update: After playing with the gcal.html demo example that comes with FullCalendar, I was able to get my calendar to work and show event information in gcal.html. However, in my MVC .net application there is a JS error stating "Failed to load resource: the server responded with a status of 404 ()" and it shows my MVC view page address on my local machine appended with the google calendar id, along with start and end dates. I am wondering where I go from here to get my calendar to appear in my MVC .net web application view page and pull event information from Google.

How do you activate Google Maps JavaScript API v3 service?

The tutorial doesn't say how to activate the Javascript API v3 service. It just says do it. My Google Developers Console screen doesn't match the screen they show in the written (probably out of date) tutorial.
There is no "Service" category for me to choose. I have a "Terms of service" category which, when chosen, allows me to read the terms for this particular API but there is no action to be taken in that window. I have an API key and I have entered the code in my web page and placed my API key in it.
I get the following error message when loading the web page: "This page was unable to display a Google Maps element. The provided Google API key is invalid or this site is not authorized to use it. Error Code: InvalidKeyOrUnauthorizedURLMapError" and I think it may be because I have not been able to "activate" API v3 for this project.
I have tried the following:
Regenerating a key and using it immediately so I know it isn't that the key is over 24 hours old
Double checked my referrals
Accurately entered the name of the site where I am trying to make this work.
You need to activate API from the Developer Console
click the 4^ and then click the "Enable API" blue button
I wasted my time just because of confusion so i am answering here with updated screenshots to help in a better way.

Renaming a facebook page tab

I have created a facebook application to add a page tab in any facebook page.
for this i have a pagetab name in facebook integration of application's setting part.
Suppose i have added the name as "MyFbTab"
Now the problem is when someone add my application to his page then a tab will be added with name MyFbTab , but i want to ask user for a name and then the tab created with the name entered .
I am using facebook js sdk for this
So please help regarding to fb js sdk
I have found a method for this in php sdk but want to do this in js sdk
regards
You can use the API to change the name given to an installed page tab, see here:
https://developers.facebook.com/docs/reference/api/page/#tabs
Short version, make a POST request to
/PAGE_ID/tabs/APP_ID?custom_name=MyPageTabName&access_token=PAGE_ACCESS_TOKEN
{edit}
In the Javascript SDK you won't be able to do this directly because the Javascrtipt SDK will be using the user's access token and you'll need to make that call with the page access token you retrieved from the user's /accounts connection earlier.
OAuthException "(#210) Subject must be a page." has an example of someone using Jquery to take the page access token and make the API call that way. In their case they're using it to install a tab rather than edit an existing one, but it's almost exactly the same for your problem

Resources