Recognizing the source of Facebook application user

Posted by Joel on Stack Overflow See other posts from Stack Overflow or by Joel
Published on 2010-12-25T10:50:15Z Indexed on 2010/12/25 10:54 UTC
Read the original article Hit count: 191

Filed under:

Hello,

When serving an iframe application in Facebook, is there anyway I can know when a user visits my site through Facebook as an application or if he reached the site directly (typed my domain URL in the browser)?

I know I can check if the user has a cookie (named "u") which tells me that the user used facebook to get an access_token.

However, if the user visited the application one minute ago and got the access_token cookie, but then typed the URL in the browser, checking for the existence of the cookie will return TRUE, although the visitor arrived to the site directly.

Thanks, Joel

© Stack Overflow or respective owner

Related posts about facebook