Where is the request code constant (64206) for login defined in Facebook SDK

I am using Facebook SDK (4.*) on Android.
Just implemented programmatically login (without using “LoginButton”) using LoginManager‘s logInWithReadPermissions(). In order for callback to work I need to call FacebookCallbackManager.onActivityResult(requestCode, resultCode, data); which I do in my activity’s onActivityResult method.

However, my onActivityResult handles results form several returning activities and it checks the requestCode to see which activity returned. I see that facebook login returns with 64206 but I am unable to find where that constant is defined. I don’t want to hardcode 64206 and I was wondering: does someone knows where is this result code defined in the Facebook SDK (and is it public)?


Source: facebook

Leave a Reply