Posts

Showing posts with the label facebook-php-sdk

no access token or session initiated when passing user through $facebook->getLoginUrl();

Image
Clash Royale CLAN TAG #URR8PPP no access token or session initiated when passing user through $facebook->getLoginUrl(); I have run the php sdk example from Facebook and it runs fine on my server but when I dropped the code into a method of codeigniters controller it doesn't return a session at all - has anyone experienced this? Even thought it has been authenticated and the user has accepted the application I failed to get a session back- the only thing that is in the session is [fb_32567534414789_state] => 3d34472df552ad7fef1911d2f97122f0 Even the url parameters are being passed back from Facebook - both state and code have values. The problem is that it runs fine and without issue in a standalone example but when I bring it into controller method it doesnt work. I have commented out every line in my controllers constructor and its method. Then only listing the example code with a model method to pull the api key/secret from the db; And it doesn't work; I recently upgrad...