I am using the PHP Facebook 3.0 SDK for the graph API and want a simple way to find out if there is currently an active token so that I can handle errors gracefully.
getUserAccessToken() is a protected method and so I can’t seem to access it with the facebook object. There has to be a simple way to do
if(active token){ do stuff} else{ don't}
Help anyone?
The Facebook PHP SDK Example has all the code you need for this: