library accountkit
Facebook Account Kit SDK for PHP
anhskohbo/accountkit
Facebook Account Kit SDK for PHP
- Saturday, June 9, 2018
- by anhskohbo
- Repository
- 1 Watchers
- 2 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Account Kit SDK for PHP
Install
composer require anhskohbo/accountkit
Usage
Follow the instruction from: https://developers.facebook.com/docs/accountkit/webjs, (*1)
Example "server.php", (*2)
<?php
require 'vendor/autoload.php';
use Anhskohbo\AccountKit\Config;
use Anhskohbo\AccountKit\Client;
$facebookAppID = "<facebook_app_id>";
$accountKitAppSecret = "<account_kit_api_version>";
$client = new Client(new Config($facebookAppID, $accountKitAppSecret));
$token = $client->getAccessToken($_POST['code']);
$user = $client->getUser($token);
var_dump($user);
var_dump($user->getPhoneNumber());
Contribute
https://github.com/anhskohbo/accountkit/pulls, (*3)
dev-master
9999999-dev
Facebook Account Kit SDK for PHP
Sources
Download
MIT
The Requires
The Development Requires
by
Nguyen Van Anh
sms
facebook
accountkit
account-kit
v1.0.0
1.0.0.0
Facebook Account Kit SDK for PHP
Sources
Download
MIT
The Requires
The Development Requires
by
Nguyen Van Anh
sms
facebook
accountkit
account-kit