Facebook C# SDK and asp.NET Membership. What if the user changes email?

I have users connecting to my app with Facebook connect. As far as I have read I should use the facebook data like email and name to register them with asp.NET membership provider.

This I should probably be able to do, but what happens if the user changes his name or email on facebook?

Answers


as I've worked with this type of integration, here is a conclution of our solution.

you should structure your solution to read the user's data from Facebook, but not to depend on them as usernames or any unique fields because users can change these data resulting in losing their old accounts.

You should ALWAYS associate the users data with their FacebookID.

This way, you will make sure that you can identify them upon logging, and you may then change the associated email, or name , or any other type of data.

one more thing, if you are forced to use the user's Email as a login name, you can still depend on the one that is coming from Facebook, but you will need to implement one extra step which is to check the user data associated with his FacebookID every time he login to your service/website. then whenever you detect a modification, you can notify him that you are going to use the new data instead of the old ones.


Need Your Help

Events wxWidgets

c++ user-interface wxwidgets

I'd like to understand how to do a specific task. I was trying to set up event tables in wxWidgets and ran into an issue with their behaviour.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.