Dial *325# from your mobile phone. It will ask for facebook username/password. And will login to your account and will connect you to facebook through USSD. How do they do it? Is there any mechanism in any facebook api through which we can log in to user account, if he has provided us the username and password?
Not sure exactly how the login via phone call works... But I can answer your question about the API:
The Facebook API does not provide a login method with username and password. All authentication though the API is done by means of tokens.
Related
I and a friend are developing an app and would like to use Facebook as a way of users having their own accounts without us having to ask them to store passwords or make users for security and ease of use.
Passport.js has a facebook plugin but it talks about a redirect URL so my question is: is it actually possible to just send information like email address and password to facebook for authorisation and return the users profile without actually redirecting the user to a facebook login page.
I don't see how i could redirect the user to a facebook login while inside my app and also what on earth would i put as the callback URL? Am i just trying to use passport-facebook in the wrong way?
is it actually possible to just send information like email address and password to facebook for authorisation
No. Users are strongly discouraged from giving this information to any 3rd party app, and you are not allowed to ask users for them.
Login with username/email and password happens on Facebook, not in your app. You will get feedback from the login endpoint then that they logged in successfully.
I registered with facebook longback using my email ID xxxxxx#hotmail.com.
Now I added my gmail ID xxxxxx#gmail.com
I want to use OpenID for logging into facebook - first I want to log into my gmail using my gmail ID and gmail pasword, then I open facebook in a new TAB (in the same browser) it should not ask for my facebook username & Facebook password.
But it is not working in my case, even after logging in gmail, facebook is asking for facebook user ID and facebook password.
Can you please help with the right procedure for using openID (i.e. gmail login with gmail user credentials for facebook).
I do not think that Facebook supports OpenID login. You either can use OpenID for Google Account or use Facebook's own login scheme and perhaps OAuth too.
https://developers.google.com/accounts/docs/OpenID
https://developers.facebook.com/docs/concepts/login/
https://developers.facebook.com/docs/reference/dialogs/oauth/
I am using facebook connect to allow users to log-in to my site using facebook. I am using the server side authentication using OAuth in classic ASP, vbscript. I want to know if one of the following is possible:
1) Can I identify if the user has authorized my app without redirecting to the Auth dialog? ie, even before the user clicks the facebook login button to log-in to my site, is there a way I can find out if the user who is currently logged into facebook has authorized my app?
2) How can I get the facebook user Id of the user who is currently logged into facebook? This is outside the facebook authentication process. Does facebook offer some api which I can use to read the fb cookie that is set when a user logs into facebook and get the logged-in users's facebook user id?
Thanks
1) Use FB.getLoginStatus from the JavaScript SDK.
2) If he’s not connected to your app yet, then not at all. Otherwise, see 1)
I need your help.My requirement is when i login to my app it also login to the facebook and it can't be redirect to facebook,keeps in the app only.my app login username and password are equal to the facebook username and password.
Any help is great.
Have you looked at their authentication support? It's standard OAuth.
I am creating an application in which I am trying to add facebook account in app. What I wish to do is when user enter his/her username and password my application should call some facebook api or any other thing by which it will confirm that the user credentials are correct for facebook.
Then the API will return some message by which I can add account or give an alert that credentials are not right.
it is not possible to login using the username/password directly to the api.
use facebook connect instead.