채택완료
페이스북 로그인시 사용자 프로필 사진을 가져와서
페이스북 로그인시 사용자 프로필 사진을 가져와서 그누보드에 저장하고 싶은데요..
어떤식으로 접근하면 좋을까요?..
/////////////////////////////////////////////////////////////////////////
facebookid : 원하는 회원의 페이스북 id 숫자
type_value : large, normal, small, square 중 하나
ex)
http://graph.facebook.com/100022302258816/picture?type=large
/////////////////////////////////////////////////////////////////////////
답변 4개 / 댓글 3개
채택된 답변
+20 포인트
50x50 px:
<img src="https://graph.facebook.com/<?= $fid ?>/picture">
width: 200px
<img src="https://graph.facebook.com/<?= $fid ?>/picture?type=large">
To save:
$img = file_get_contents('https://graph.facebook.com/'.$fid.'/picture?type=large');
$file = dirname(__file__).'/avatar/'.$fid.'.jpg';
file_put_contents($file, $img);file_put_contents 그누보드 프로필에 저장여부 연동
질문이 너무 광범위해서 상세하게 말씀을 해주셔야 답변이 가능할듯합니다.
어떻게 저장하시겠다는건가요?
파일 다운해서 저장하시겠다는건가요? 아님 그냥 디비에 링크 저장하시겠다는건가요?
답변을 작성하려면 로그인이 필요합니다.
페이스북 id 값은 어떻게 가져올 수 있을까요?.... 참고할만한.. 사이트나 뭐라고 검색해야 나올까요?..
감사합니다..