How can I get the Facebook user id when a user visits my website? I assume I need to read the Facebook cookie. How is that done? The reason I want to grab the Facebook user id is I can then check my website’s database to determine if the user has linked their Facebook account to my website and thus auto log them in.

