Get Facebook Events to RSS feed - json

How to get all events as Rss for a user from Facebook. I tried below link but it giving only one event not all.
https://developers.facebook.com/tools/explorer/?method=GET&path=643795265635061
I could not find any link to get all events for the user. Is there any way to get all events in RSS or Json format.
Thanks

You can no longer do this thanks to the wonderful people at Facebook:
Events, Groups, Pages and Instagram APIs will no longer be available to new developers
apps currently accessing Events and Groups APIs will lose access today
https://developers.facebook.com/blog/post/2018/04/04/facebook-api-platform-product-changes

Events can be exported in popular calendar formats (Apple iCal, Microsoft Outlook, Google Calendar) but unfortunately there is no public feed! To retrieve an event feed as JSON, you need to have an access_token. You can test it easily via Facebook's Graph Explorer:
https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=taakeofficial%2Fevents%2F
When implementing it programatically (or serving your own up-to-date feed), you'll need to use one of the Facebook SDKs (PHP, for a server) and add your access_token to the query:
https://graph.facebook.com/taakeofficial/events?access_token=ABC123

Related

Get Google Drive video view count from Apps Script API?

I have a series of videos uploaded to a specific Google Drive folder, and I'd like to get the view count for each video/file. Literally as simple as "file_id" "10 views".
From extensive research, it seems this is quite simply impossible within Google Apps Script today? Per this old answer, both the Drive API and the Drive Activity API only report edit or comment activity, while view activity is ignored. The Reports API does support this, but only for users with Admin access in an Enterprise account (not for us plebes who just want to know view counts on our own files).
And per this Apps Script documentation, it seems that onOpen() triggers don't run for views (which blocks a "view_count + 1 on open of this specific file" sort of analytics).
Before I give up, I figured I'd run it past this brilliant community: am I missing anything? Is there some way to get view count on videos stored and accessed through Google Drive?
Answer:
You are correct in your findings that you can not get video view count information through the Drive API. You must use the Admin SDK to obtain this information.
Feature Request:
You can however let Google know that this is a feature that is important for access to their APIs, and that you would like to request they implement it.
Google's Issue Tracker is a place for developers to report issues and make feature requests for their development services, I'd urge you to make a feature request there. The best component to file this under would be the Google Drive component, with the Feature Request template.

Integrating other user's personal Google calendar into site

For my website which advertises local events at my university with a particular emphasis on accessibility and being outdoors given the world situation, I have embedded my account's calendar so that users can see our events and save them etc. The goal I am trying to accomplish is to integrate users personal calendar into the website so that when they log in they can see their own calendar.
Google log in is integrated and functional on the site, however I cannot find any info about how to embed a user's personal calendar as all the info google provides on the topic is how to embed the site admin's calendar. The most simple and barebones way to do this would be an iframe which i've tried however it is protected by google from displaying.
Has anyone attempted anything similar or had any success with this?
In order to integrate someone else's calendar you can embed it, using the instructions in this link. However, for this option, you will need to have access to each user's calendar, meaning, they will have to have shared it with you.
Another option is to retrieve all the events from the users calendars and integrate them in your website. For this, you could benefit from using a service account.
Reference
Add a Google Calendar to your website;
Service accounts.

Building Roku channel with vimeo as a feed

I'm sorry for bothering you guys with something as simple as this appears will be for you. I am trying to help develop a public Roku channel for an awesome minister I know who has 100's of videos. (hoping Naz Vanof or someone who knows a lot about this can help)
I attempted to find information on how to use Vimeo as a json feed provider and didn't find any tutorials. (the online help at Vimeo was no help).
First is there something that needs to be done for each video uploaded to my Vimeo account to prepare them to be used as json? I tried using the provided URL for my Vimeo account on the Direct Publisher feed link and it wouldn't accept it.
I've been searching for two days on this subject and not really getting anywhere and the only place I could see any related content was here (Naz). The videos I am using I have permission for from the developer but they are downloaded from Youtube through the Keepvid online program to my computer then uploaded to Vimeo. Is that an issue?
Sorry for the lack of knowledge but I am excited to get my feet wet on this and have a high aptitude in other fields, I'm just a total newbee in this field. starting two days ago I went through all the tutorials on Roku and did all the prep for establishing the developer account, and learned how to side load and alter channel templates, now I just need to know how to get my URL link to connect and to organize videos on Vimeo. Later I will get deeper with the Brightscript app. But what they have for the template for Direct Publisher would be perfect to get started.
Thanks and sorry again for this base level question.
Direct Publisher accepts two types of feeds, as described in the Direct Publisher Feed Specifications: their own custom JSON format (which is not something Vimeo offers I imagine, based on how new Direct Publisher is) and MRSS feeds (which Vimeo might offer, not sure). If Vimeo doesn't offer either of those, you likely won't be able to use Direct Publisher, unless you create your own in between API layer which transforms what Vimeo offers to what Direct Publisher needs.
According to other sources Vimeo does offer JSON feeds. And I did purchase Vimeo Pro but still could not access my files. I was wondering if the type of encoding on Youtube where I had to get the downloads to upload to Vimeo would interfere with the Direct Publisher feed? They don't support Youtube links so I used a Keppvid program to download from Youtube then upload to Vimeo. Vimeo accepted those downloads no problem. But my URL wouldn't work on Direct Publisher. I talked to Vimeo and they said my account URL should have worked. I'm stuck.
You need to compare the Vimeo feed to Roku's feed specification and figure out what the difference is that is causing it to not work, then load the Vimeo feed into a text editor and alter it to make it compatible. Alternatively and preferably, you would write a script that would do the conversion on your own server so you could have it run once a day and then deliver the feed from your server to Roku's server instead of directly from Vimeo.
The problem with using Vimeo is that housing your video in an external xml document, vimeo uses Ampersand in their URL. Sample:
https://player.vimeo.com/external/213601353.hd.mp4?s=71a24afbe4d4792806a08391263kjhisihe69fe2&profile_id=xxx
This needs to be modified to:
https://player.vimeo.com/external/213601353.hd.mp4?s=71a24afbe4d4792806a0839126c484c175269fe2&profile_id=174
Once you make this change the xml URL will be parsed properly. The URL was having the ampersand stripped which is why it may not have been working. I have tested this with all of our vimeo videos and they work properly now.
Hope this helps.

Which VIMEO API to use for our needs - web based help "tutorials"

We have a web based system that we are looking at replacing our existing "help system" from uploading flash videos directly to our website to instead "embedding" content we upload to our vimeo account. We have setup a vimeo pro account and these videos need to be "private" i.e. not accessible to the general public. Which API version should I use? And do you have any sample code in say PHP I could take a peek at with the functionality we are after
The Advanced and Simple API's will no longer receive new features, and soon you will not be able to create new apps for them.
Vimeo has moved towards a unified API, which you can read about at http://developer.vimeo.com/api. Make sure to use the api through api.vimeo.com, not vimeo.com/api/rest/v2.
Vimeo has an official PHP library, with some very basic examples that you can see at http://github.com/vimeo/vimeo.php

Google Form API?

I would like to (programmatically) convert a text file with questions to a Google form. I want to specify the questions and the questiontypes and their options. Example: the questiontype scale should go from 1 to 7 and should have the label 'not important' for 1 and 'very important' for 7.
I was looking into the Google Spreadsheet API but did not see a solution.
(The Google form API at http://code.lancepollard.com/introducing-the-google-form-api is not an answer to this question)
Google released API for this: https://developers.google.com/apps-script/reference/forms/
This service allows scripts to create, access, and modify Google Forms.
Until Google satisfies this feature request (star the feature on Google's site if you want to vote for it), you could try a non-API approach.
iMacros allows you to record, modify and play back macros that control your web browser. My experiments with Google Drive showed that the basic version (without DirectScreen technology) doesn't record macros properly. I tried it with both the plugin for IE (basic and advanced click mode) and Chrome (the latter has limited iMacro support). FYI, I was able to get iMacros IE plug-in to create questions on mentimeter.com, but the macro recorder gets some input fields wrong (which requires hacking of the macro, double-checking the ATTR= of the TAG commands with the 'Inspect element' feature of Chrome, for example).
Assuming that you can get the TAG commands to produce clicks in the right places in Google Drive, the approach is that you basically write (ideally record) a macro, going through the steps you need to create the form as you would using a browser. Then the macro can be edited (you can use variables in iMacros, get the question/questiontype data from a CSV or user-input dialogs, etc.). Looping in iMacros is crude, however. There's no EOF for a CSV (you basically have to know how many lines are in the file and hard-code the loop in your macro).
There's a way to integrate iMacro calls with VB, etc., but I'm not sure if it's possible with the free versions. There's another angle where you generate code (Javascript) from a macro, and then modify it from there.
Of course, all of these things are more fragile than an API approach long-term. Google could change its presentation layer and it will break your macros.
Seems like Apps Script now has a REST API and SDK's for it. Through Apps Script you can generate Google Forms. This API was really hard to find by trying to google for it and I haven't yet tested it myself, but I am going to build something with it today (hopefully). So far everything looks good.
EDIT: Seems like the REST API I am using works very well for fully automated usage.
In March(2022) google released REST API for google form. API allows basic crud operation & also added support for registering watches on the form to notify whenever either form is updated or a new response is received.
As of now (March 2016), Google Forms APIs allow us to create forms and store them in Google Drive. However, Forms APIs do not allow one programmatically modify the form (such as modify content, add or delete questions, pre-filled data, etc). In other words, the form is static. In order to serve custom, external APIs are needed.