예제 #1
0
파일: login.php 프로젝트: fakerpp/oauthsdk
<?php

include_once 'config.php';
$type = $_GET['type'];
$sns = Oauth::getInstance($type, $config);
//跳转到授权页面
header('Location: ' . $sns->getRequestCodeURL());