구글 소셜 로그인 관련(Google People API) > 그누보드5 플러그인

그누보드5 플러그인

그누보드는 다양한 기능을 추가하기 쉽습니다.

구글 소셜 로그인 관련(Google People API) 정보

구글 소셜 로그인 관련(Google People API)

첨부파일

2023.zip (61.9K) 16회 다운로드 2023-07-13 12:00:10
테스트한 버전5.3
호환 가능 버전5.3 이상

본문

간단하게 해결하는 방법 설명을 드리겠습니다.


수정 파일명
plugin/social/Hybrid/Providers/Google.php

>> URL 변경
$response = $this->api->api("https://www.googleapis.com/plus/v1/people/me");
->
$response = $this->api->api("https://www.googleapis.com/userinfo/v2/me");

>> 프로필 이름 받아오는 부분 수정
$this->user->profile->displayName = (property_exists($response, 'displayName')) ? $response->displayName : "";
->
$this->user->profile->displayName = (property_exists($response, 'name')) ? $response->name : "";

>> 프로필 사진
이부분은 필요가 없어서 하지 않았습니다.
기존에 image에서 picture로 변경이 되었습니다.
$response->image -> $response->picture


도움이 되었으면 합니다.
추천
1

댓글 전체

전체 504
그누보드5 플러그인 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT