dhiraj/yii2-facebook-accountkit

Given app secret and client id, returns the user's accessToken and user information from Facebook's AccountKit Graph User API. The basic idea is to use the 'code' flow from your native Android or iOS app which is using a REST API from your Yii2 site.

0.1 2016-11-07 04:50 UTC

This package is auto-updated.

Last update: 2024-11-09 02:56:32 UTC


README

Given app secret and client id, returns the user's accessToken and user information from Facebook's AccountKit Graph User API. The basic idea is to use the 'code' flow from your native Android or iOS app which is using a REST API from your Yii2 site.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist dhiraj/yii2-facebook-accountkit "*"

or add

"dhiraj/yii2-facebook-accountkit": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \traversient\yii\AutoloadExample::widget(); ?>```