I don\'t understand why I\'m getting this exceptions:
Session not active, could not store state.
The code is:
You need to start a session using session_start() for the Facebook SDK to work correctly. Please add this to your code to fix the issue.
session_start()
Example: