php


Undefined variable: session for FacebookRequest


Here is my code for getting all members from Facebook group in index.php
<?php
require_once 'vendor/src/Facebook/autoload.php';
use Facebook\FacebookRequest;
$request = new FacebookRequest(
$session,
'GET',
'/uzdevelopers/members'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
?>
It is return error message as:
Notice: Undefined variable: session in /var/www/html/facebook/index.php on line 7
Fatal error: Uncaught Error: Call to undefined method Facebook\FacebookRequest::execute() in /var/www/html/facebook/index.php:12 Stack trace: #0 {main} thrown in /var/www/html/facebook/index.php on line 12

Related Links

Does __get() and __set() mean leaky encapsulation?
How do I prevent loading duplicate items from the same MySQL table?
use array in yii tagcloud extension
Pdo insert into table [duplicate]
Connecting PHP Code and Submit Form to mySQL Database
Fatal error: Class 'Zend_Log' not found
SESSION is not working on remote server
PHPUnit installed via Composer uses wrong autoload
Checking if user already has account with PHP & ORACLE
How do I mark a user's progress when they're taking a multi-step action on my website?
How src property in <img> tag interacts with index.php using pretty URLs
PHP Session/Cookies Not Working - Multiple Servers [closed]
Calling anonymous functions in a PHP class
php send mail functikon not working within a cron job set up with cPanel
php set_include_path drives me crazy
Laravel 4 Artisan drop existing column from table

Categories

HOME
visual-studio
events
user-interface
adfs3.0
add-on
mousemove
tcsh
nsview
android-emulator
share
fedora
native-base
selection
scrape
chromecast
mailmerge
xbap
sslhandshakeexception
smartgwt
google-awareness
bundler
squirrel-sql
pywinauto
android-5.1.1-lollipop
l20n
maven-plugin
http-authentication
nullreferenceexception
scheduled-tasks
amazon-mws
data-type-conversion
anova
managed-c++
fusetools
password-generator
gravity-forms-plugin
basic-authentication
objectmapper
steam-web-api
commonsware-cwac
opnet
epplus
listjs
char-pointer
busboy
pdfminer
android-n
haar-classifier
julius-speech
transparency
cyanogenmod
return-type
exc-bad-access
stateless-session-bean
clrs
msxml
fitbit
deviare
dojo-build
swiffy
gwt-syncproxy
as3-api
pythonxy
featuretoggle
hmisc
espresso
swagger-maven-plugin
android-handler
artisan
ampersand
ocmockito
subfolder
r.java-file
jcheckbox
jolie
juttle
qt5.4
tabris
webmethod
nachos
property-injection
assetic
particle-swarm
acitree
hints
insertion
background-thread
stretch
chronometer
cakeyframeanimation
image-scanner
jzmq
java.lang.class
series-40
n-queens
litespeed
will-paginate
css-friendly
3des
dip
anonymous-types
regression-testing
git-log
mygeneration
data-retrieval
downcasting
twitter-feed
regioninfo
chronic

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App