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

rawcoder
rawcoder used Ask the Experts™
on
I have a facebook application but want to differentiate between users accessing the application from facebook as opposed to users going directly to http://www.example.com/AppFolder, 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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Multitechnician
Top Expert 2014
Commented:
Not a secure/ultimate way but what about :
Client side, document.referrer : http://www.w3schools.com/jsref/prop_doc_referrer.asp
Server side, $_SERVER['HTTP_REFERER'] : http://php.net/manual/en/reserved.variables.server.php

Author

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

Commented:
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