How To Detect Online Facebook User?

How reliable is the Facebook user ID payload within the Facebook Connect access_token?

  • I have a facebook connect app all set up using oauth and after the final transaction I receive an access_token that looks something like -  559514387926|f53be3fc76b8e243aaf2944b-502835064|moXh_HOIga8b32txRdwkan-5NW9.   The part in bold seems to be facebook user id of the current user. I checked this with all the access_tokens of the users I have thus far and it matches in every case.   Is there any documentation that states that this is a reliable way to obtain the facebook user id ?   I know that <api_object>.get('me') is the best way to do so but I want to use the facebook user id directly to make leaner calls for existing users pulling only picture and pulling a lot more data for a first time user.

  • Answer:

Siddharth Batra at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.