I see some website detect my facebook name and offer a like button so I can the page I’m visiting. Can that be done in php? if not, how then?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Facebook offers widgets for that matter, you can copy paste the code from the Facebook developer site: https://developers.facebook.com/docs/reference/plugins/like/
To get a visitor’s name, tou could use Facebook javascript API https://developers.facebook.com/docs/reference/javascript/. You’ll need to create an application and the user will need to authorize it before you’re able to get any information. There are obvious security reasons why you can’t get your visitor’s name.