Skip to content

Commit

Permalink
[Update] Forgot to add callback file
Browse files Browse the repository at this point in the history
  • Loading branch information
darki73 committed Apr 3, 2016
1 parent 1eca1b9 commit 72f1e41
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/callback.php
@@ -0,0 +1,8 @@
<?php
require('header.php');


$accessToken = $VKObject->getAccessToken($_REQUEST['code'], 'https://vkapi.local/callback.php');

$_SESSION['access_token'] = $accessToken['access_token'];
header('Location: /');

0 comments on commit 72f1e41

Please sign in to comment.