PHP Classes

File: logado.php

Recommend this page to a friend!
  Classes of Edvaldo Szymonek   PHP Facebook Post to Wall, Pages or Groups   logado.php   Download  
File: logado.php
Role: Example script
Content type: text/plain
Description: Sample
Class: PHP Facebook Post to Wall, Pages or Groups
Send posts to Facebook user profile, pages, groups
Author: By
Last change: Update of logado.php
Date: 8 months ago
Size: 228 bytes
 

Contents

Class file image Download
<?php

require_once "vendor/autoload.php";

use
FacebookApp\FacebookApp;

session_start();

$app = new FacebookApp(require "config/app.config.php");
$_SESSION["token"] = $app->getAccessToken();
echo
$_SESSION["token"];