Tara Singh
Tara Singh

Reputation: 1841

Is it possible to create a desktop app using facebook oauth 2.0 authentication without requiring a browser interaction?

Is it possible to have a client app which can authenticate using Facebook but without requiring browser(I mean no embedded browser in the code)?? User inputs the username/password and allow access to app using the client app only.

Any Suggestions will be of great help.

Thanks, Tara Singh

Edit: I have created app in Python which requires browser interaction. Now I want to get rid of that and do it using my client app only. Any Links/Tutorials??

Thanks Again

Upvotes: 13

Views: 8500

Answers (6)

Martijn Mellens
Martijn Mellens

Reputation: 545

Yes and no,

I've had the same problem with my server. It was console only, so I had to make a solution. First I've logged in using the lobo java webbrowser. I've transfered the cookies of lobo to my server.

Upvotes: 0

Stephen J
Stephen J

Reputation: 2397

Apparently now you can, if you're a beta tester for their newest feature: https://developers.facebook.com/docs/authentication/devices/ Reminds me of PIN's on Wifi

Upvotes: 0

hB0
hB0

Reputation: 2037

Some good links in this regard: http://developers.facebook.com/blog/post/289/

https://developers.google.com/identity-toolkit/ https://developers.google.com/accounts/docs/OpenID

http://facebooktoolkit.codeplex.com/ http://csharpsdk.org/

http://blogs.msdn.com/b/appfabric/

Upvotes: 1

Anthony
Anthony

Reputation: 363

I know this is an old question and it's answered but I thought 'horse mouth GET'. From Facebook: https://developers.facebook.com/docs/authentication/...

Our OAuth 2.0 implementation does not include explicit desktop app support. However, if your desktop app can embed a web browser (most desktop frameworks such as .NET, AIR and Cocoa support embedding browsers), you can use the client-side flow with one modification: a specific redirect_uri. Rather than requiring desktop apps to host a web server and populate the Site URL in the Developer App, we provide a specific URL you can use with desktop apps: https://www.facebook.com/connect/login_success.html...[cont]

Upvotes: 13

serg
serg

Reputation: 111325

Actually the answer is absolutely not.

In order to authorize your app a user has to enter their facebook username and facebook password on facebook site and you need web browser for this. There is no way to skip this step (you can't ask what their username and password are and then exchange it automatically for access token). You can read more about this here.

Upvotes: 8

KevinDTimm
KevinDTimm

Reputation: 14376

absolutely yes, but, we'll need to know which programming language you want to use before we can give much advice.

For example, it's possible using httpclient for java and python to encapsulate all the functionality you need, others can chime in with libraries that they use for C, C++, perl, etc.

[edit]
search for httpclient and how it's used with python. if you run wireshark on your system, you will be able to watch the data interchange (if you don't understand the http protocol completely) and then implement that in your code.
[/edit]

Upvotes: 1

Related Questions