> For the complete documentation index, see [llms.txt](https://brianwu.gitbook.io/brian/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brianwu.gitbook.io/brian/brians-za-ji/fb-da-tou-tie.md).

# FB 大頭貼

擁有 user-id 想獲得該使用者的大頭貼圖片語法

```
https://graph.facebook.com/v2.11/{user-id}/picture

//想要控制大小
//enum{small, normal, album, large, square}

https://graph.facebook.com/v2.11/{user-id}/picture?type=normal
```

原本很失智想說用 $.ajax 去取得圖片，然後再顯示，後來突然頓悟，只要在圖片的src 放 WEB API 就好了\~

```
<img src="https://graph.facebook.com/v2.11/{user-id}/picture"></img>
```

解決

參考資料:( <https://developers.facebook.com/docs/graph-api/reference/user/picture/> )
