Facebook connection exception

view story

http://stackoverflow.com – i am trying to connect facebook and get my details in facebook, however when i want to get my name, i get an JSONException with error: ""An active access token must be used to query information about the current user " i marked the line which it's happen thanks alot this is my class: public class MainActivity extends Activity { private Button logInButton; private TextView registerScreen; private TextView userText; private TextView passwordText; private SharedPreferences loginPreferences; private SharedPreferences.Editor loginPrefsEditor; private Boolean saveLog (HowTos)