pingpong-labs / facebook

Facebook PHP SDK v4 for Laravel 4
https://packagist.org/packages/pingpong/facebook
BSD 3-Clause "New" or "Revised" License
9 stars 7 forks source link

Problem with sessions #3

Closed ghost closed 10 years ago

ghost commented 10 years ago

When im tryimg to get login url Facebook::getLoginUrl(); i get this error "Session not active, could not store state." I've fixed that when i add session_start() on top of the controller but when im trying to get the user profile Facebook::getProfile() i got this error:

Argument 1 passed to Facebook\FacebookRequest::__construct() must be an instance of Facebook\FacebookSession, null given