Skip to content

Commit

Permalink
fixed #1 update to Facebook api v2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Joungkyun committed Jun 25, 2016
1 parent 4581c9a commit a802310
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 41 deletions.
9 changes: 7 additions & 2 deletions OAUTH2/FACEBOOK.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
* token url
* @var string
*/
private $reqToken = 'https://graph.facebook.com/oauth/access_token';
private $reqToken = 'https://graph.facebook.com/v2.6/oauth/access_token';
/**
* revoke url
* @var string
Expand All @@ -75,7 +75,7 @@
* user information url
* @var string
*/
private $reqUser = 'https://graph.facebook.com/me';
private $reqUser = 'https://graph.facebook.com/v2.6/me';
/**
* app information
* @var stdClass memebr는 다음과 같음
Expand Down Expand Up @@ -206,9 +206,14 @@ private function reqAccessToken () {

$http = new \HTTPRelay;
$buf = $http->fetch ($this->reqToken, 10, '', $post);

/* {{{ For graph api 2.0
parse_str ($buf, $output);
$r = (object) $output;
unset ($output);
}}} */
// For graph api 2.6
$r = json_decode ($buf);

if ( $r->error )
$this->error ($r->error_description);
Expand Down
54 changes: 30 additions & 24 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>2016-01-20</date>
<time>04:13:43</time>
<date>2016-06-25</date>
<time>19:04:03</time>
<version>
<release>1.0.4</release>
<api>1.0.0</api>
Expand All @@ -23,15 +23,16 @@
</stability>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>
</notes>
* update Facebook API v2.6
</notes>
<contents>
<dir name="/">
<file role="php" md5sum="04fdeed8899010c4db6aad407878e828" name="OAUTH2.php" />
<file role="php" md5sum="f2654a7bb33048c514a62c2693fbcce8" name="OAUTH2/DAUM.php" />
<file role="php" md5sum="a54ba9eb44b8c57fe336984236452b94" name="OAUTH2/FACEBOOK.php" />
<file role="php" md5sum="e528dd5cfe525b9560642e8c09e80b67" name="OAUTH2/GITHUB.php" />
<file role="php" md5sum="419272af8b40e5ade59fc67003ded10e" name="OAUTH2/GOOGLE.php" />
<file role="php" md5sum="99b35a5e0e200ce13895818f7c18e97b" name="OAUTH2/NAVER.php" />
<file role="php" md5sum="97716e55731aaf11ec6afa32acd71970" name="OAUTH2.php" />
<file role="php" md5sum="143ab56d870fd797b5f013f46a31555b" name="OAUTH2/DAUM.php" />
<file role="php" md5sum="0012e029332b35e34f97cf66765c8be5" name="OAUTH2/FACEBOOK.php" />
<file role="php" md5sum="b7af33fd1ce542466860a0f9fff8cdc2" name="OAUTH2/GITHUB.php" />
<file role="php" md5sum="b1064ccfc0be6142ca06c484592212fa" name="OAUTH2/GOOGLE.php" />
<file role="php" md5sum="cd31ae806a13c9017b8cbea928c1853e" name="OAUTH2/NAVER.php" />
<file role="php" md5sum="224ea170ad68506ba9f0805a49be2b0d" name="OAUTH2/logout-agree.template" />
<file role="php" md5sum="318f0bc144dd8ad28be690f6e9ff2af3" name="OAUTH2/logout-no-auto.template" />
<file role="php" md5sum="3f38dd2c30e3a33dca52a253908c96a6" name="OAUTH2/logout.template" />
Expand Down Expand Up @@ -68,10 +69,11 @@
<release>stable</release>
<api>stable</api>
</stability>
<date>2016-01-20</date>
<date>2016-06-25</date>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>
</notes>
* update Facebook API v2.6
</notes>
</release>
<release>
<version>
Expand All @@ -84,13 +86,14 @@
</stability>
<date>2016-01-20</date>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>* 지원하지 않는 vendor 접근시에 exception 처리 안되는 문제 수정
* NAVER logout 시에 네이버 사이트 로그아웃 되지 않는 문제 해결
* logout page 디자인 변경 및 메시지 영문으로 변경
* X-Frame-Options 문제로 gooogle logout 안되는 문제 해결
* $_OAUTH2_LOGOUT_TEMPALTE_ global 변수로 사용자 logout template을 사용할 수 있도록 지원
* GITHUB oauth2 지원
</notes>
<notes>
* 지원하지 않는 vendor 접근시에 exception 처리 안되는 문제 수정
* NAVER logout 시에 네이버 사이트 로그아웃 되지 않는 문제 해결
* logout page 디자인 변경 및 메시지 영문으로 변경
* X-Frame-Options 문제로 gooogle logout 안되는 문제 해결
* $_OAUTH2_LOGOUT_TEMPALTE_ global 변수로 사용자 logout template을 사용할 수 있도록 지원
* GITHUB oauth2 지원
</notes>
</release>
<release>
<version>
Expand All @@ -103,8 +106,9 @@
</stability>
<date>2015-06-09</date>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>* fixed unknown class oops\OAUTH2\myException on DAUM api
</notes>
<notes>
* fixed unknown class oops\OAUTH2\myException on DAUM api
</notes>
</release>
<release>
<version>
Expand All @@ -117,8 +121,9 @@
</stability>
<date>2014-08-05</date>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>* 다음 logout 방식 변경 사항 수정
</notes>
<notes>
* 다음 logout 방식 변경 사항 수정
</notes>
</release>
<release>
<version>
Expand All @@ -131,8 +136,9 @@
</stability>
<date>2014-06-30</date>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>* 1.0.0 release
</notes>
<notes>
* 1.0.0 release
</notes>
</release>
</changelog>
</package>
36 changes: 21 additions & 15 deletions package.xml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
</stability>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>
</notes>
* update Facebook API v2.6
</notes>
<contents>
<dir name="/">
<file role="php" md5sum="@OAUTH2.php@" name="OAUTH2.php" />
Expand Down Expand Up @@ -71,7 +72,8 @@
<date>@curdate@</date>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>
</notes>
* update Facebook API v2.6
</notes>
</release>
<release>
<version>
Expand All @@ -84,13 +86,14 @@
</stability>
<date>2016-01-20</date>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>* 지원하지 않는 vendor 접근시에 exception 처리 안되는 문제 수정
* NAVER logout 시에 네이버 사이트 로그아웃 되지 않는 문제 해결
* logout page 디자인 변경 및 메시지 영문으로 변경
* X-Frame-Options 문제로 gooogle logout 안되는 문제 해결
* $_OAUTH2_LOGOUT_TEMPALTE_ global 변수로 사용자 logout template을 사용할 수 있도록 지원
* GITHUB oauth2 지원
</notes>
<notes>
* 지원하지 않는 vendor 접근시에 exception 처리 안되는 문제 수정
* NAVER logout 시에 네이버 사이트 로그아웃 되지 않는 문제 해결
* logout page 디자인 변경 및 메시지 영문으로 변경
* X-Frame-Options 문제로 gooogle logout 안되는 문제 해결
* $_OAUTH2_LOGOUT_TEMPALTE_ global 변수로 사용자 logout template을 사용할 수 있도록 지원
* GITHUB oauth2 지원
</notes>
</release>
<release>
<version>
Expand All @@ -103,8 +106,9 @@
</stability>
<date>2015-06-09</date>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>* fixed unknown class oops\OAUTH2\myException on DAUM api
</notes>
<notes>
* fixed unknown class oops\OAUTH2\myException on DAUM api
</notes>
</release>
<release>
<version>
Expand All @@ -117,8 +121,9 @@
</stability>
<date>2014-08-05</date>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>* 다음 logout 방식 변경 사항 수정
</notes>
<notes>
* 다음 logout 방식 변경 사항 수정
</notes>
</release>
<release>
<version>
Expand All @@ -131,8 +136,9 @@
</stability>
<date>2014-06-30</date>
<license uri="http:https://www.opensource.org/licenses/bsd-license.php">BSD</license>
<notes>* 1.0.0 release
</notes>
<notes>
* 1.0.0 release
</notes>
</release>
</changelog>
</package>

0 comments on commit a802310

Please sign in to comment.