php - Check if user is logged in with facebook -


i have mobile app communicates server.
mobile user has opportunity login:

  1. directly app
  2. by using facebook

in first situation, after logging in, generate token used authenticate logged in user.
want implement same facebook on server side.

after searching, found accesstoken after fb login used this.
made test onto localhost data - facebook login, accesstoken , https://graph.facebook.com/me?fields=id&access_token url , fb returns id.
logged out , sent access token url , facebook returned again id.

i'm expecting no validation message.
can me on this?


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -