Login to Facebook from another application - facebook

I have a windows application. Users will login to my windows application. Once logged in, there will be a button as "Login to Facebook". The logged in users username and password for facebook is already stored in my DB and i can retrieve that information.
What I need is, once the user clicks on the "Login to Facebook" button, it should automatically go to facebook page with the User logged in by providing the Username and Password retrieved from my DB.
If this is not do-able, upon clicking the button, it should open the facebook login page and enter the Username and Password values retrieved from DB in their relevant textboxes.
This is a research project for my studies. Appreciate your help on this.

You need to go through the following to understand the facebook's login flow
https://developers.facebook.com/docs/facebook-login/web
For manualy building the login flow go through this
https://developers.facebook.com/docs/facebook-login

Related

How can i do automatic login for facebook/twitter using Extjs or Grails

I have the following screen
When the user enters some text and clicks on share button then a prompt window(not FB login page) should be opened in which user will enter his fb userid and password. Once he enters the details then textarea's text should be shared on time line.
Can anybody suggest me the way to achieve?
Regards
URL

Facebook "re" authanticate

I have a site that user can login with facebook.
When user is logged-in he can do several actions. In one of this actions i want the user to re-authenticate (give his credentials again).
So is it possible when a user is already logged-in with facebook, to open facebook login dialog (or something similar) so that user can give his credentials again (or just the password)?
So is it possible when a user is already logged-in with facebook, to open facebook login dialog (or something similar) so that user can give his credentials again (or just the password)?
Client-side: https://developers.facebook.com/docs/howtos/login/client-side-re-auth/
Server-side: https://developers.facebook.com/docs/howtos/login/server-side-re-auth/

Do I need a password for users who login via Facebook?

I have a website that allows a person to create an account with username/password. Once its created they can login and add their own content. Im now thinking about allowing them to login via their facebook profile, so when they go to my login there will be a button that says login with facebook. Then a window will popup to give permission to my facebook app so I can get their info. Once I do that do I need them to create a password still? Or once they initially give permission for their account I dont need a password, so when they come back to the site they just need to reconnect to their facebook profile? Hope this makes sense.
I would suggest the latter is true, and they don't need a password.
No, you dont need to save any password for facebook login. Facebook login box works great if you have implementes Facebook api correctly.
My buddy did the same thing. He has his setup to create a random password if they login via facebook as a precaution if they want to later login not via facebook but via their email or username then they have to recover the password.

Facebook Enhanced Auth Dialog not Appearing when User is Not Logged In

If a user follows a link to my Facebook application (apps.facebook.com/instantinternetstar) and they are not currently logged into Facebook they are allowed to enter the Application instead of being prompted to 1st log into Facebook and 2nd grant permissions via Auth Dialog.
If a User is logged into Facebook, the new Enhanced Auth Dialog works perfectly and always.
Is there a variable I have missed?
Your settings may be fine. What you can do on the default page of http://instantinternetstar.com is to query the http post parameter called signed_request, decode it and it will tell you if the user is authenticated or not. Then you can display something to them so they know what you're about, before they take their time to login to Facebook, then accept your app.

Facebook Login/Register with my database

I have a website with my custom register system (really simple - username, password and e-mail).
I want to make Login with facebook as my new and only register/login system.
I want to put a login button which:
- if user is logged to facebook just asks for permission to use e-mail and other data + asks for custom username
- if user is not logged, then just facebook login
Then the user would not need to login to my page if he's logged in to Facebook.
Can you please give me a hint or suggest a framwork to do this with?
If you look on the Facebook developers page it tells you how to do this
https://developers.facebook.com/docs/guides/web/#login