I'd like to implement YouTube OAuth 2.0 on my application. I'd also like the user to have access to Google+ features at the same time.
Can someone (maybe even someone from the YouTube API team) tell me if I am reading the content on this link correctly?
https://developers.google.com/youtube/v3/guides/authentication
It looks like if I implement one of the recommended client libraries (thinking of implementing the one called "Google APIs Client Library for PHP"), the user will also have access to Google+ social network features.
Is this correct? I want to make sure I'm seeing this right before I go through the trouble.
Yes, the PHP client library supports all of Google's REST APIs including YouTube and Google+. Make sure you get the latest one and keep it updated.
Related
I am working on web application which will help to schedule the post in social sites like facebook, twitter and google plus. As far as I researched in the internet, it seems Google is not providing any api for writing streams neither at Personal profile nor at Google Pages. And it has provided the api access only to limited apps like hootsuite, buffer.
My question is, Is there any third party (even paid) APIs which will provide me this functionality ? Or, by any chance is it possible to request google for api access similar to the one, it provided for apps like hootsuite,buffer ?
The Buffer API does allow you to schedule tweets automatically. It doesn't seem to support programmatically scheduling updates for other social media platforms, which is what I'm currently trying to do.
I am trying to use the API to Get a list of documents on a Google Drive then if I need to download a selected file that I query for. I cannot for the life of me figure out OAUTH and how to do this. I have a client ID , client secret key, but the documentation sucks.
I am trying to use :
https://developers.google.com/drive/v2/reference/files/list
Can you you use OAUTH with out having a use give permissions?
Can you you use OAUTH with out having a use give permissions?
No. That would defeat the purpose of OAuth.
My suggestion is start by ignoring Drive completely. Focus on understanding OAuth first.
Use the Oauth playground https://developers.google.com/oauthplayground/ and this page https://developers.google.com/accounts/docs/OAuth2 as your ONLY documentation. Everything you need to know is on those two links.
Once you have grasped Oauth, then use the Try It Now feature of https://developers.google.com/drive/v2/reference/files/list
to see how the Oauth token is used in your drive requests.
I've seen this question earlier on your website, but it didn't quite help me out yet...
Here is what I'm trying to achieve:
I have a Content Management System (PHP) that is installed on the server of the various websites of my customers. Whenever a user posts a new message on his website, a shorter version of this message is sent to social media sites. Right now, this is possible with twitter (using the OAuth library). But I would want it to work with facebook too....
When I create an app in Facebook i HAVE to assign ONE return URL. But because the to-be-used CMS system can be anywhere, it's quite useless to me?
Or is there a way to make this work?
Best regars, Robert
I'm not sure your exact need for the return URL here. However, having the CMS communicate with Facebook from the server side would be performed with the Graph API with the OpenGraph protocol. This sounds like what you are doing with Twitter's OAuth.
You can then code your CMS to use your API credentials and never leave the CMS server. There is even a PHP SDK available for Facebook which sounds like it would integrate well for you.
If the CMS is at a different URL for each individual, then they each need to create an app on their Facebook profile to add the communication in this method. Because Facebook requires the basename of the URL to be the same by design, for security. This is typically performed by enabling the end-user to configure their own "app" in their profile for communication and is very commonly done with Wordpress applications for the same purpose.
I'm looking for a solution to create and configure Facebook Apps via the Facebook APIs.
It doens't matter if its Graph API / FQL or REST API but I couldn't find any way to do this.
You didn't find because this is not possible.
Facebook decided not to support app management and creation using the API, in order to avoid applications created or edited by bots.
Only a few actions are possible using the API:
Migration (like migrating to OAuth2, ...)
Restriction (Geographical, age...)
User ban (add/remove)
Test User Creation/edition/deletion
See http://developers.facebook.com/docs/reference/api/application/ for more info.
You'll notice one of the first sentence: "To create, administer or delete applications developers must go to the Developer Application."
You can use the Legacy REST API to set (and get) application properties:
https://developers.facebook.com/docs/reference/rest/admin.setAppProperties/
But no create API exists, and probably never will due to dirty spammers...
I can't find any mention on how to do this with twitter api. I'd like to do it without buying this commercial software:
http://www.webdesigndev.com/photoshop/how-to-brand-your-tweets-with-your-url-and-why-you-should
I mean not just having my appname but putting any name I want at any time.
I think it's chosen when you create the application for the twitter API: http://dev.twitter.com/apps/new
Currently this can only be done if your application implements OAuth authentication to Twitter. In the past, non-OAuth apps were able to send a source parameter, but that has been discontinued for any new apps.
From Twitter's API FAQ
If you would like tweets from your
application to receive a source
parameter, please register an
application and implement OAuth
authentication. We will automatically
include your application as the source
for any tweets sent from your
application.
Also, check out this similar SO question.