2017 © Pedro Peláez
 

library facebook

Integrate Facebook SDK into php

image

christopherfouquier/facebook

Integrate Facebook SDK into php

  • Sunday, January 4, 2015
  • by christopherfouquier
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

facebook

Integrate Facebook SDK into php, (*1)

  • authentification
  • permissions management

Installation

Add facebook to your dependencies using composer:, (*2)

php composer.phar require "christopherfouquier/facebook":"dev-master"

Parameters

  • appId : Application ID
  • appSecret : Application Secret
  • redirectUrl : Url to redirect
  • permissions : array of facebook oAuth permissions needed for the app

Usage

The class call :, (*3)

use facebook\Facebook;

We start sessions, (*4)

session_start();

The class is instantiated, (*5)

$facebook = new Facebook(
  "xxx",
  "xxx"
);

It retrieves the login URL., (*6)

$url = $facebook->connect();

It checks if the user is identified., (*7)

if (isset($_SESSION['fb_token']) && $_SESSION['fb_token'] != null) {
  // Connected
}
else {
  echo "<a href='". $url ."'>Connection from facebook</a>";
}

TODO

  • Add featured

The Versions

04/01 2015

dev-master

9999999-dev

Integrate Facebook SDK into php

  Sources   Download

MIT

The Requires

 

by Fouquier Christopher