How to use facebook api to pull user data - asp.net

I have a requirement in our sign up screen wherein we ask the user if they want to use their facebook profile for sign up. The process we are thinking is when the user logs in facebook or allow us to access their data. I will just pull the name, e-mail, address and save those things in our database as in creating an account base on their facebook data.
I'm confused on how to start it so does anybody can point me or have sample code how to do this?
Thanks.

I hope this article will give you the direction:
http://www.mono-software.com/blog/post/Mono/179/Using-Facebook-API-in-ASP-NET/

Related

Users can sign-up on our portal using linkedin but we are unable to access their linkedin ID. How do track the linkedin ID with email address?

We are a platform that facilitates companies to hire analytics talent on demand. We only allow users to login to our platform with their Linkedin IDs so that we can validate their profile details and score them. Currently, the Linkedin API doesnot give us even the Linkedin-id of the user to help us manually check the profile. How can we correct this?
Ask for the r_liteprofile and r_emailaddress scopes as part of the OAuth flow. Then make GET calls to https://api.linkedin.com/v2/me and https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))
to gather this information. See the documentation for more details.
However, please read LinkedIn's API Terms of Use to ensure your application is an acceptable use case. Also, the profile data you can receive is quite limits, so it may not give you the fields you want.

Firebase account linking prompt

I understand how to link two Firebase accounts manually, by allowing a logged in user to select to link another account, and then using the `linkWithCredential' method.
However, is there a way to use Firebase's FirebaseAuthUserCollisionException to trigger a prompt to the user to link the auth method that they are trying to loggin in with, with that of the existing account?
After the research that I've done, I'm assuming not. However, any suggestions relating to this or similar approaches would be appreciated.

Verfiy user is who they say they are on an external website

I am developing a website for our GTA Online Crew, basically a gaming community, my issue lies in verifying that they are the user they say they are when they register (For example if there username on social club is GTOFAN01, we want to ensure that person uses the same username on our site when they register).
As we want all website users to have the same names from social club (owned by Rockstar and I have no way to change anything on there end...) to our website to avoid confusion / posers / trolls etc.
I've had a few ideas but they all create a lot of manual work or I am not sure how to implement, but I have narrowed it down...
Let anyone register and then manually send them a confirmation code through social club to the account name they have said they are.
somehow find out who they are currently logged in as on social club, if this matches the name they supplied then let them in.
find someway to send a message to there social club message box
2 is by far the best, but I can figure out a way to achieve it... I cannot read cookies or session variables from another domain.
Any ideas?
There are several different ways of achieving "federated identity". I would recommend taking a look at OAuth and OpenId. Asp.net Identity has OAuth integration.
See also:
OpenID vs. OAuth
What's the difference between OpenID and OAuth?
The way I ended up going was generating a random qoute for the user to post on the social club (checking it didn't exist first), as the social club feed is public I can then check to see if the qoute was posted and by whom, if this matches who they told us they were then there registration is accepted.
Obviously this is not the greatest solution, but it works and as I've stated I have no control over the social club nor do they offer any way to authenticate a user.
The other befit to this method is it encourages use of the feed which we also wanted to do.

same user with different social network in WordPress

After Googling around I still can't find an appropriate answer to my problem. Let me explain:
I'm creating a WordPress-based site where users will create accounts and login. I allow them to login with Facebook (or Twitter, or G+) and the plugin I'm using (Simple Facebook Connect) creates the user in wp_users table.
Now, I would like to let this user "connect" another social network, Twitter for example. Obviously, if the user logs out and back in with another social network, it creates another profile, and this is understandable.
So, how do I connect another social networks to my existing user? Does Anyone know a plugin which allows this?
Thank you.
Try these, may offer what you are looking for :
http://wordpress.org/extend/plugins/rpx/
http://wordpress.org/extend/plugins/oa-social-login/other_notes/
Hope that helps, if not keep Googling or try Bing!

Accessing a users contacts from a webpage

Is it possible to access a mobile users phone contacts from a web page? The company I work for would like to use QR codes to direct people to a coupon on their website and then give viewers the option of sending the url to their friends in a text message.
Obviously this would be an opt in service. Perhaps you would need to build a mobile application to accomplish the task? If anyone has an idea on how to accomplish this or something similar please let me know.
As far as I know, it is not possible to access the contact database via a web page, on any of the major platforms; in order to access this data, a native application is required.
Nate is right.
The only thing that you can do (that won't accomplish everything you need) is encode SMS message in QR code (e.g. "sms:number:subject" see http://code.google.com/p/zxing/wiki/BarcodeContents), this way your company will get user's phone number as part of SMS message, but not numbers of his/her friends.
An API for accessing contacts is being built into the WebApi by Mozilla but as of today it's not enabled by default and I expect cross browser support is still far off.

Resources