I have a website where I need to have data that is ID’d by user. For example, they enter their favorite food:
userid favorite food
------ -------------
1 french fries
2 tacos
3 fish sticks
4 chipotle
When I use Facebook Authentication, what identifier will I use for the userid? I’m assuming it’s not name, since this would create duplicates. Is it just the person’s Facebook ID?
Also is the correct API to use for 3rd party websites ‘Facebook Connect’ or ‘Facebook Authorization’ or something else?
Yes, use the person’s Facebook ID. Other items like their e-mail or name can change, but ID will always be the same for a particular account and can be used to look them up via the various APIs.
Facebook has changed the name for this a half dozen times. Currently it’s just called “Facebook Login” It does (and always has) used OAuth on the backend. https://developers.facebook.com/docs/concepts/login/