Facebook Login

I was following this in order to add “Login with Facebook” button to my app: https://backendless.com/documentation/manage/mgmt_social_settings.htm
Facebook SDK I’m using is 4.1.0. Now my question is really basic: how do I actually add facebook’s LoginButton? As a regular button in XML (com.facebook.widgets.LoginButton)?
In the examples here I can’t really see where the actual button is: https://backendless.com/documentation/users/android/users_facebook_login.htm

OK I admit this question was quite raw. I did manage to get the Facebook login work with my Android app. PNow I have to fix other issues. Please delete this question.

I have one question though. The line "

public void Backendless.UserService.loginWithFacebook(" – does it have to be called from within an OnClickListener attached to the FB login button? For it appears that com.facebook.widgets.LoginButton has its own OnClickListener already, so we don’t need to create one for it; otherwise, the user is logged in twice.

Hi Serikhan,

We have an example of login through all social networks in the Code Generation tab, including a one with Facebook button. Please refer to these samples.