Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created February 19, 2015 17:22
Show Gist options
  • Save niraj-shah/eef1100aedf9564b5ecf to your computer and use it in GitHub Desktop.
Save niraj-shah/eef1100aedf9564b5ecf to your computer and use it in GitHub Desktop.
Getting started with the Facebook PHP SDK v4.1
<?php
// Set the location of the Facebook PHP SDK - this should point to directory containing autoload.php
define( 'FACEBOOK_SDK_V4_SRC_DIR', './Facebook/' );
// include required files from Facebook SDK
require_once( 'Facebook/autoload.php' );
// start the session
session_start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment