Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

facebook

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

like image 270
Tara Singh Avatar asked Oct 14 '10 19:10

Tara Singh


2 Answers

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]

like image 195
Anthony Avatar answered Oct 18 '22 11:10

Anthony


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.

like image 43
serg Avatar answered Oct 18 '22 10:10

serg