How do I access a Facebook users details with their login credentials? - asp.net

I have a site where users can register an account. To do this they have to enter various details about themselves (Name, DOB, Email Address, Password, Username etc..).
However, I would like them to just have to enter their Facebook username/password, and have all this information pulled from their Facebook user account.
How is this possible using ASP.NET 2.0?
Thanks!
Curt

I think you're approaching this the wrong way. You should never ask a user for their facebook (or whatever 3rd party) password.
Instead, you can use Facebook Connect to redirect them to Facebook, where they can allow your application, so you will get user info relevant to your site (name, DOB, Email, but not username/password).
I suggest reading the FB docs to get a better idea about the process.

Related

Collecting email for log in and authentication but not storing email in Firebase

I am making a social media site. I want to authenticate and verify people's accounts with their emails. I also want them to log in using their email, but I don't want to be able to see my users' email addresses because I want them to have privacy. Ideally, they should each just have a userID and their email will be associated with that userID, but I won't be able to see it.
Still, I want the ability to ban people by userID, and then for their associated email to also be banned from my social media, but I do not want to know whose email I just banned from my app. Basically, on this page, I would prefer if it did not tell me what my email was:
I'm using the very basic code to sign up users:
Auth.auth().createUser(withEmail: email, password: pass
How might I modify this code?
It sounds like you want some sort of application-specific administration console for banning users without knowing their identity.
There is no way to change the display of the list of users in the Firebase Authentication console.
The most common approach is to build the needed application administration functionality yourself using the Firebase Admin SDK, and then expose that to the application administrators.
As #Frank van Puffelen said,
You can't change the view of Firebase console. and it will show you the email,userid and some basic information always.
How do you know the UserId of people? for getting userId in some cases, you need the email id.

How to get User data (name,image) in firebase authentication with facebook?

I create login page where user can login through facebook successfully but I only get user email and userid in firebase.
The thing I want is username, profile image, etc.
(Edited)
You can't get anyone's password through Firebase Authentication. That would be a huge security hole, wouldn't it? Profile image should be available, if the user provided one through Facebook.

Facebook PHP SDK, server-side login, without clicking any link (knowing password).

Can i log in to my Facebook account (Knowing user id and password), in the server using Facebook php-sdk, and without need to click any URL?
If yes, please explain.
It is against Facebook's Terms of Service to use a user's email address and password to login to their account. You should instead use the Facebook API to achieve this, but it requires manual login by a user.
There are ways of achieving automatic login using credentials, but since it's not allowed, I won't go into detail. Facebook also detects and prevents most of the common method of auto-login.

Retrieve Email Id from FaceBook Login in vb.net application

I want to integrate Facebook with my .net application which is in vb.
I want to use facebook login as open id login to my application.
I reached to login with fb and get all basic information of my facebook profile.
But still I do not get facebook login id(means facebook login email id) in my user information detail retrieved from facebook.
Please help me out to solve this.
I get first name, last name and etc. but I want email id of facebook login or primary email address.
You'll have to prompt your users to grant the email permission. Then you'll be able to pull the email field in the same API call that you get their name and basic info.

How can I get my friends from Facebook in my application?

I am developing an ASP.NET application.
I implemented Facebook API in my application now I want to access email addresses of my friends on Facebook.
I successfully connected Facebook with my application, but when I use FacebookApi.friends.GetList() it will give only friends userids then I will fire a FQL for each friend userid to access email but some time I got blank instead of email address.
Can someone help.
Which is best way facebook rest API or graph API?
The answer is almost certainly that one of the following is true:
The user hasn't shared an email address with Facebook
The user has placed you in a privacy group they deign to share their email address with
The user has set their privacy settings to not share their email address at all
If any of these are true, there's nothing you can do to resolve this short of asking your friends to change their privacy settings.
You need to ask for permission "email" to access email address of any user using your app, the reason why you are getting some email addresses is because few of Facebook users relatively have less restrictive privacy settings.

Resources