site. Site sends user to Facebook Authentication, with instructions on how to return after they accept. Facebook sends them back to your app. App uses authorisation to request solid identification. App makes judgement on what to do with identification. (Login, or Create+Login)
• Some sort of foolery where the token was changed enroute. • User took too long to say OK. • The user just said no. You NEED to know: • It just didn't work. Bail out on attempting ID.
(How slow is your server lol) • For some reason Facebook has revoked the token. You NEED to know: • It just didn't work. Bail out on attempting ID. • It worked but I cannot ID them: (no email address) ◦ Bail out ◦ "{$Info['FBID']}@facebook.com"
call that depends on valid auth token make sure the library was able to do its job. try { ... } catch(Throwable $Error) { /* bail out */ } Any time you consume data, make sure it makes sense, and contains all the data you need. if(...data seems invalid...) { /* bail out */ }