-2

伙计们,我有一个带有 facebook id 的数据库。我正在尝试为每个人的个人资料打印一个锚点。有任何想法吗?

谢谢!

巴勃罗

4

1 回答 1

3

All you really need to do is to place the users ID after Facebook's url:

https://facebook.com/USER_ID

or

https//facebook.com/profile.php?id=USER_ID

This in turn will get redirected to the users actual profile page which is more likely to appear like this:

https://www.facebook.com/USERNAME

As a side note, you can also use a similar URL to get the users profile picture:

<img src="https://facebook.com/USER_ID/picture">
于 2013-05-10T21:06:27.273 回答