The new Facebook graph / OAuth seems to be only for iFrame / connect applications? Is it possible to use the OAuth system for FBML applications?
FBML will probably vanish in 2011. Please check facebook developer roadmap and concentrate on developing iframe based applications (and later on also iframe based tabs)
Related
I have searched a lot these days trying to understand the recent changes happening to the Instagram API. I had in mind that there is some sort of an API that allows you to manage your account (posts/followers etc.) using an application other than the official mobile and web apps (connected via Oauth 2.0). Is there such a capability?
I'm trying to access authenticated data from Mobile apps via Asp.Net MVC5.
The backend is .NET (not Node.JS) and I'm using the C# SDK (not Javascript). Since custom auth (user\pwd) is not yet available for Mobile Apps I'm trying to connect with Facebook.
I've found this post but is very outdated now.
If you are trying to do both a mobile app clients AND the MVC client, then you might need to specify a list of OAuth URLS that are valid per:
https://developers.facebook.com/docs/facebook-login/security#surfacearea
You can set the list of valid callback URLs on the settings -> Advanced tab in the facebook app management.
I would like to work with Google's .NET API while using OAuth 2.0 flow for devices.
I didn't find any way to use GoogleWebAuthorizationBroker or Create UserCredentials object in .NET when working with OAuth 2.0 flow for devices.
Is there a way to make the above requirement work? or should I use only REST API?
Thanks,
Ronen
Assuming you refer to this flow: https://developers.google.com/accounts/docs/OAuth2ForDevices, it is not supported in the Google APIs Client Library for .NET. So you need to build it yourself though you may be able to reuse large parts of Google's stuff.
Notice that the "OAuth 2.0 flow for devices" is not a standardized OAuth 2.0 flow, so support is not ubiquitous. Also, the Google says elsewhere:
If your app will run on devices that do not have access to a system
browser, or devices with limited input capabilities (for example, if
your app will run on game consoles, video cameras, or printers), then
see Using OAuth 2.0 for Devices.
If that's really your use case you should pursue my suggestions, otherwise you should switch to https://developers.google.com/accounts/docs/OAuth2InstalledApp (see the flow chart on the right side there as well).
The .NET client library for Google APIs supports OAuth 2.0 and it supports several devices including Windows Phone 8.1 and Windows Store applications.
The OAuth 2.0 documentation (including snippets) is available at: https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth.
My obvious recommendation is to use the library, because it will refresh tokens for you automatically (using the stored refresh token) and it's a light OO library which will do a lot of "magics" for you (such as media upload).
By the way, our samples repository includes full sample for a universal app, take a look at Blogger.Sample for more details.
Per this announcement by Google this week: http://googleenterprise.blogspot.com/2013/11/third-party-apps-now-easier-to-find-and.html Google now supports OAuth 2 for App Marketplace apps, but the examples are all Javascript, we currently have a server side flow and I am wondering if this will still be supported and if there are any examples yet available?
Thanks!
The new Google Apps Marketplace experience fully supports using Java for your server-side authorization flow. You can use the Google APIs Client Library for Java to make authenticated calls like you would for any other Google APIs integration.
We're actively working on improving our documentation so any feedback would be appreciated.
Is it possible to create a facebook app using the Vaadin web toolkit?
It is possible. At least there is one http://apps.facebook.com/possessed/ (not maybe the most beautiful one, but working). See also discussion at the vaadin forum: http://vaadin.com/forum/-/message_boards/message/169189
Definetely possible. As you have an iframe for your app in facebook and you yourself host the application so there is no limit for that. You may also want to use restfb for easily interacting fb graph api
You can create a Facebook application using any language/framework/etc. The application is loaded in a Facebook Canvas (iframe), but your application isn't hosted on Facebook itself, rather it's hosted on an external app/web server of your choosing. So, as long as your server supports the language of your choosing, you are good to go.