I need to implement the import of Facebook contacts in my application. All I need to do is get a Facebook friend list Facebook Facebook.
I can use the official Android SDK, but it's too big and too heavy for a simple task like this. I can create and send the request manually, it’s easy. I can also get access_tokenusing Facebook oAuth authorization in WebView.
But I want to add a little convenience to the user. The Facebook Android SDK supports receiving tokens through the Android Android app. I believe this mechanism is used Intent, and onActivityResultto transfer data between two processes. So in this case, I can create the same Intentand send it to Facebook for processing access_token.
Of course, they can use any other mechanism for transferring data between processes, but it should still be a way to simulate the fron Facebook Android SDK token request. So how to simulate this?
source
share