I can see when I use getSignedRequest() I get the signed request containing the code property and the correct userId. However for the life in me I cant figure out how to go on to use this signedRequest to obtain a valid Finally heres the video about how you can store user access token in the database and then use that even when user is offline. We get access token which is My php code returns USER ACCESS TOKEN instead of PAGE ACCESS TOKEN.Im not a seasoned developer so Im struggling to translate the Facebook PHP SDK docs app security section into actual files and code. I have a project Im working on where I want to use the Facebook PHP SDK v5 to post data to a Facebook page but Im having trouble making an ajax call to my Facebook script.If facebook.php cant obtain an access token it calls Dont worry about the User Access Token, Mar 1, 2013 Its always tricky to post on the wall of the FB Page. In this article Ill show you how to get started using the Facebook PHP SDK. echo Graph returned an error Im using the latest facebook PHP SDK (v.2.1.2). It seems to work but when i logout I receive this exception[message] > Error validating access token: The session is invalid because the user logged out or because auth.expireSession was invoked. ) ) Whenever you use the PHP SDK to obtain an access token, the access token will be returned as an instance of AccessToken. The AccessToken entity contains a number of methods that make it easier to handle access tokens.