How to differentiate between facebook application being used from facebook or direct from hosting server

rawcoder used Ask the Experts™
I have a facebook application but want to differentiate between users accessing the application from facebook as opposed to users going directly to, for example.  Also, if a user is using the application from facebook, can I get their user and age without having to log them in again?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2014
Not a secure/ultimate way but what about :
Client side, document.referrer :
Server side, $_SERVER['HTTP_REFERER'] :


Thank you .. forgot about that.  Simple and to the point.
Guy Hengel [angelIII / a3]Billing Engineer
Most Valuable Expert 2014
Top Expert 2009

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial