PHP code example of pizzaminded / facebook-http-foundation-bridge
1. Go to this page and download the library: Download pizzaminded/facebook-http-foundation-bridge library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pizzaminded / facebook-http-foundation-bridge example snippets
$urlDetectionHandler = Pizzaminded\FacebookHttpFoundationBridge\UrlDetectionHandler::fromRequest($request);
$persistentDataHandler = new Pizzaminded\FacebookHttpFoundationBridge\SessionDataHandler($session);
$facebook = new Facebook\Facebook([
//things
'url_detection_handler' => $urlDetectionHandler,
'persistent_data_handler' => $persistentDataHandler
]);
Pizzaminded\FacebookHttpFoundationBridge\UrlDetectionHandler: ~
Pizzaminded\FacebookHttpFoundationBridge\SessionDataHandler: ~
Facebook\Facebook:
arguments:
-
app_id: '%facebook_app_id%'
app_secret: '%facebook_app_secret%'
default_graph_version: 'v4.0'
url_detection_handler: '@Pizzaminded\FacebookHttpFoundationBridge\UrlDetectionHandler'
persistent_data_handler: '@Pizzaminded\FacebookHttpFoundationBridge\SessionDataHandler'