views:

331

answers:

2

I have a question about email hash on facebook if the email address has been changed by the facebook user.

My site stored the email hash to match with the facebook email hash to identify the user on our website is the same user on our facebook application. If a facebook user has two facebook account with different email address, and one has the email hash registered through our website. At this point, if the facebook user rearrange the email address with another account, what will happen with the email hash...

A: 

that sounds like a bad idea. why not use the uid instead?

kolosy
My scenerio is this. If a user create an account in our site without clicking on the connect button for facebook, our website will send a email hash via registerUsers to facebook. When the user adding an application through facebook, our application will know the user who have just added the application due to the same email hash.
Simon
A: 

That is not exactly how you are supposed to make use of the email hash provided by Facebook Connect. The idea is that you will be able to confirm if you have the same email address for the user on record as they use on Facebook. To identify users, you should be using a mapping of your site's native user id system and the user id that Facebook provides.

I recommend that you read the documentation provided by Facebook:

http://wiki.developers.facebook.com/index.php/Connect/Authentication%5Fand%5FAuthorization

And this excellent tutorial by Goldstein Technologies:

http://www.goldsteintech.com/facebook%5Fconnect/tutorial.php

Dustin Fineout