-1

我看到一些网站检测到我的 facebook 名称并提供一个赞按钮,这样我就可以访问我正在访问的页面。可以在php中完成吗?如果没有,那怎么办?

谢谢

4

1 回答 1

1

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.

于 2012-04-24T19:33:08.107 回答