How to embed google drive video only on my website - c#

i want to ask about the idea of embedding google drive video to my website.
To give more details, i have videos on my google drive account, i want to share these videos to my website, so my website users can see them after login to my website.
i tried "any one with the link" but actually if anyone get the link then they can view the video which is not my goal, im also avoiding using the option of specific people as i want my website users to view it only.
is this applicable ? maybe using APIs ?
my project is asp.net

Perhaps using something such as Google Sign-In and storing the video on something such as Google Cloud Storage may work better for your needs.
https://developers.google.com/identity/sign-in/web/
https://cloud.google.com/storage/docs/?hl=en_US&_ga=2.45789092.-1485116680.1546457475
There is documentation available for .net on the google cloud.
https://cloud.google.com/dotnet/

Related

How do I upload file to google drive?

I have checked out tons of links for upload file directly in Google Drive.
I have created a sample application and it's working as expected, but the problem is it's requires the user to login with Google account.
I want to make an web application, where the user who's selecting file can directly upload it to example#gmail.com Google drive. So user don't have to signing with own google account.
How can I achieve a goal?
It's a great help if you have a sample code for this.
Thanks in Advance
As you said, Google Drive needs an account to authenticate and know where to upload the file.
If you want to upload it to a shared place, then create an account for that purpose and use those credentials to log in.
But for your case, if it's not a requirement to use google drive but just a cloud file storage, SmartFile is a lot better for that kind of programs, I'm using it in my own projects and works like a charm, check the Developer account, it gives you 100Gb of space and 200Gb of monthly traffic, and uses a very clean REST api (I have no relatinoship with them, just a happy user).
https://www.smartfile.com/

Is it possible to use google analytics in server?

I have a URLShortener application and I want to use Google Analytics for shorted urls. But I use Response.Redirect() method and I can't use local script of google analytics.
I want to know is it possible to have something like google analytics script in server and run it?
There is the Microsoft Silverlight Analytics Framework which also supports Google Analytics.
I would assume that they do this in C# code, which should be adaptable to be used inside server-side code, too.
Yes, it is possible to use google analytics in server. You need to have a Google Analytics account, as explained here.
After setting up your account they will give you a unique tracking code along with a javascript code which you have to put in your website or master page which you want to track. This javascript code will do all magic for you and you can watch this information from your GA account.
You can even integrate this chart with your website, using the Google chart facility through
Google Analytics Easy Dashboard Javascript Library (more information here).
From this tutorial you can setup your website to catch GA data into your site and display in your own webpage through Google charts.
Sure, it's technically possible. All GA does is set some variables and makes an HTTP request to the GA server, which can be done with JS or by grabbing a gif from the server.
The main issue is that you won't get a lot of the data that you would expect like browser, location, OS version, etc. because the client making the request would be your own server.
It would probably be best to add some event tracking data to the redirected location and track that with GA event tracking, that way you could get a more accurate dataset.
If you do want to continue down the path of most resistance though, this is a pretty good write up of how you'd go about it. http://automateeverything.tumblr.com/post/20500736298/google-analytics-without-javascript-or-cookies It's not C# specific, but you should be able to abstract it.

Background app to monitor Facebook

I'm building an aggregator for Twitter and Facebook. Via my website users should be able to grant the app access to their Facebook and Twitter profile.
Then, my C# app will, at regular intervals, check the networks (or stream from) for new posts/likes/tweets related to that user and store the result in a database. I will not use Facebook and Twitter as an identity provider for my website.
Now my question: what library should I use best to accomplish the connection with the social networks? Can I use dotnetopenauth for this? Or are there better solutions?
I should also be able to extend the library and add whatever social network later on.
It is probably a very basic question, but I get confused due to all the possible libraries and options. I tweaked a small and simple OAuth class to connect to Twitter, but this was only capably of OAuth 1.0...
Yes, DotNetOpenAuth can help you with this. But you might want to double check the Facebook terms of service, as I thought they forbade any persistence of the data you download from them.
It is indeed possible to do so with DotNetOpenAuth, I know this because I am working on something similar. Already have it working like a charm with Twitter, working on the Facebook link at the moment. Seems like Facebook is going to give me more trouble then I expected at first.

Query facebook wall of a specific profile

I need to post on a website the wall notifications of a Facebook group, the group and the website belong to the same entity.
I've looked at many of the options available, but I would apreciate if someone with a bit Facebook developing experience told me what is the best path (most straighforward).
The website is not intented to interact with Facebook in any other way, there would exist no Facebook login button, and this one wall would be the only one being consulted.
I've looked at the possibility of grabbing an rss feed from the wall, but that option doesn't seem to exist.
The website is being done with asp.net (c#).
And Social Plug-ins are Exactly for that purpose. For your requirement you can use Live Stream Plugin. Look Here: http://developers.facebook.com/docs/reference/plugins/live-stream/enter link description here
Similar to your choice of getting an RSS feed of the group activity, you can use the Graph API to get the activity as JSON objects, at which point you can render them to your page.

Creating a hook into my facebook app from another site

new to facebook dev and I have read the basics to get a site up and running using the canvas setup. Nice and simple, I have also got the integration with users working ok (i.e. the signed_request).
I was wondering how it works with "sending/posting" data from one site that is anonymous (my own external to facebook) to the facebook site.
The flow I'm after is a user is looking at some content my site A (my own external site) and then clicks the "share on facebook" button (or whatever), which sends the user (and the data they were looking at) to the site B (my facebook app) to which they authenticate and then (and this is the part I dont get) can see that content on their personalised homepage within site B.
So is there a way to POST some kind of data to the facebook site? Or do I need to do something else here?
Thanks a lot.
You use the facebook API located here:
http://github.com/facebook/csharp-sdk
The .zip download includes the api that you can compile, as well as a sample project that uses it.
Reference: http://developers.facebook.com/blog/post/395/
EDIT
Here is some more info regarding the facebook graph api. I think you'll find everything you need in here: http://developers.facebook.com/docs/reference/api/

Categories