I don't know if this is the right place to ask but I'm building a website/app using ReactJS as frontend and Django REST as backend (may or may not be relevant...), and I'm looking for a way for users to upload videos and view them on my website.
The app is expected to have around 100 users (being able to view the videos), and maybe around 50 hosted videos. This is just a rough indication.
What's generally the way to go? Do you store it locally? Or do you use a video hosting platform? Youtube?
I'm assuming that the 50 videos would be uploaded by you (or an admin) and that the users of your website won't be able to upload new videos. In this case YouTube could be a good option. I believe it has a 50 video per day upload limit, which should be more than enough for your website. Given the scale of your project, either solution works and it is more of a personal preference in my opinion.
Related
Q: I'm making a website for a friend in django and I was wondering should I use a CDN (like AWS) to store images or should I just store them on the same server as the website itself?
The website in question is a website for his parents' company and I doubt it would have more than a couple of tenths of visits per day. However, there would be quite a few pictures. Homepage would have 3-4 images, a portfolio page would have around 10-15 projects with a main picture and upon clicking on each project a new page would open which would have ~8 pictures of the project itself.
Let's say that at any given time there would be about 100 pictures on the website.
Since I don't have much experience with web-dev I'm not sure which approach is better or should I say, CDN is a better approach but I'm unsure if it's needed in this case.
I need a list of videos uploaded via share dialogue by the user using my app. I can't see any app-specific data added to the video in graph API, however, uploaded videos on Facebook does have the tag of my app when they get added to the feed. I want to track videos uploaded by the user using my app's share dialogue. Can anyone point me in the right direction to achieve this?
This is not a supported feature by the Facebook API. So there is no way to get this done without help from the Facebook team.
I am trying to build an application with ColdFusion.
I've been reading documentation and trying things out for days and for the life of my I can't seem to figure out how to display my own data to users from Google's APIs using OAuth2.
For example, I want to be able to display some of my stats to users with the Google Analytics API. How many unique hits, page views my site gets and from what countries. The data is private, however, so there isn't a way to do so. Or YouTube just changed their API so video tags can no longer be seen unless logged in. I want to be able to show my video tags so they can search for related things on my own site, but I can't pull them because I'm unsure of how to do this.
I know how to display and manipulate public data, but when it comes to private data, I'm at a complete loss. OAuth2 is kicking my butt!
Is there anybody that can please, please help me with OAuth2 so that I can allow my users to see my private Google data without there being any kind of log in process for them? Examples using ColdFusion would be so much appreciated.
The answer is more or less what I said at How to retrieve my own private playlist through YouTube API?
You'd want to use the OAuth 2 for Installed Applications flow, and generate new access tokens via your refresh token when your old access token expires. I'm not familiar with any libraries for doing OAuth 2 in Cold Fusion, though.
Should I hot link to Facebook images when using their API or copy them to my server?
What does Facebook want me to do?
Policy 2.2 states:
"You may cache data you receive through use of the Facebook API in
order to improve your application’s user experience, but you should
try to keep the data up to date. This permission does not give you any
rights to such data."
You are free to cache the data on your side if you would like, but there was a post in their forum about this which stated hot-linking would be better. If its just profile pictures, and not album photos, just use the graph address photo.
Sure you can link to facebook images:
http://graph.facebook.com/4/picture
Keeping images on your server has considerable overhead and also it is very difficult to up to time.
The only drawback of linking to facebook images is slightly delay while user load your page
I'm doing a job for Company A. I've just built their website in Django but now they want to add a social photo management aspect to the site (in that other people can upload).
The only way I know of doing this (having done it before) is through Flickr. You can set up a group and have it so anybody can add photos to it. And pull out the latest with RSS. But let's be honest, Facebook is far more popular and my client wants this feature heavily used by his clientèle.
They have a Facebook page and the power to open it up so anybody can add their photos to it... But how can I pull those photos back to the website?
Facebook's query language can do this (like the RSS sends data to you from Flickr) for users of FB pages, and there are some Javascripts for making them viewable and interactive on external web pages.
For example:
http://www.codeofaninja.com/2011/06/display-facebook-photos-to-your-website.html
http://www.alexanderinteractive.com/blog/2012/03/display-facebook-photos-on-your-website-with-galleria/
Good luck!
Terry
I'm not sure if this will help, but I recall that the Flock Web Browser had the capability of loading a stream of new videos/photos on the top of the brower's media stream bar - perhaps you can sneak a peek into the inner workings it uses to accomplish this task.
I know that you can start reading the RSS feed of a Facebook Page itself now, perhaps just a little parsing is all you need: http://www.allfacebook.com/facebook-pages-rss-2010-01