Last updated 5 years ago
Was this helpful?
擁有 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>
解決
參考資料:( )