tags:

views:

42

answers:

2

Hi,

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 imputs the username/pwd 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

A: 

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]

KevinDTimm
I want to use Python. I tried creating one but there i am invoking browser, and now want to modify it to eliminate that. Can u point me to any Tutorial/link.
Tara Singh
tutorial or link, no. see my edit above for more.
KevinDTimm
Sure, Thanks for your Suggestions.
Tara Singh
A: 

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.

serg
Why do you need a web browser to do this? Why can't I build an app that behaves exactly like a web browser in regards to the POST/GET and response codes and not implement a UI? A web browser isn't magical, it's a program like any other. The UI is irrelevant. Embed the correct protocols, implement no UI and, as far as any website knows, it's a browser.
KevinDTimm
@KevinDTimm So then your answer is - it is possible to do it without a browser, only you need to implement your own browser :) Sure, it is possible in such case. Also if you care about legal issues it is against facebook tos to ask users for their facebook passwords.
serg
No, not your own browser - not even close, think - wget. And, in regards to TOS - that's the implementers problem - I only answered what it was possible to do technically. I have no knowledge of what their TOS are (and it wasn't part of the question)
KevinDTimm
@KevinDTimm So which question were you answering then - is it possible to emulate a browser? Question was about facebook authorization, and facebook doesn't provide any API to login using username and password, nor they allow it legally. I think it is enough to call it "not possible".
serg
I also read facebook documentation and it seems we can not do it and even for desktop application we need to use web browser and redirect user to fb page. Thank you serg and KevinDTimm for your time to answer my doubt.
Tara Singh

related questions