it is possible to know the user id (from a social network) that visit my website???

I made for the website a simple code that catch the usual data of the visitors of the website of my work (ip, agent, hostname, etc...).

But today my boss ask me if I we can know if the visitor came from a social network like facebook if it is possible to know the user ID.

It is possible?????
altariamx2003Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Marco GasiFreelancerCommented:
The user id can be known only if the user allow you to know it: you have to ask to lofin with Facebook and then through Facebook API you can know his/her facebook user name.
About the site they come from, you can use the $_SERVER['HTTP_REFERER'] (http://php.net/manual/en/reserved.variables.server.php) but it is not affordable as explained in the Php manual.

Usually, hosting providers provide web statistics and you can get useful info. But the most qualified data are provided (AFAIK) by Google Analytics
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.