For FaceBook made an authorization through the installed client. Just like here

Intent intent = new Intent(); intent.setClassName("com.facebook.katana", "com.facebook.katana.ProxyAuth"); intent.putExtra("client_id", applicationId); ... activity.startActivityForResult(intent, activityCode); 

authorization result must be caught by the method

 void onActivityResult(int requestCode, int resultCode, Intent data) 

Is it possible to log in to vKontakte similarly?

  • You understand that such a method for Facebook will only work if the Facebook application is installed? And the SDK also represents the possibility of authorization in the case when the Facebook application is not installed on the phone. The same will happen with Vkontakte, if you find a way to do something similar for him. - Vladyslav Matviienko
  • one
    In general, the VK SDK is open source, you can see how they do it. github.com/VKCOM/vk-android-sdk For example, I here in a couple of minutes found the place where the Activity starts for authorization: github.com/VKCOM/vk-android-sdk/blob/master/vksdk_library/src / ... line 111 - Vladyslav Matviienko
  • If the application is not installed, send log in via WebView. Thank you, I'll go watch. - pier_nasos
  • That is, you want to invent your own VK SDK and Facebook SDK? - Vladyslav Matviienko
  • There is no desire to invent sdk) Our employee made authorization using the example of vk sdk codes, as you wrote above. - pier_nasos

1 answer 1

No, it is possible only with the vk SDK.

  • as if you are wrong a little more than 100% - Vladyslav Matviienko