I have built a Facebook integration using the steps from the 3.0 documentation. It works fine in when I deploy the app to my phone using Eclispe; however, when I export the
I tried Programatically creating instance of LoginButton programatically like
LoginButton loginButton = new LoginButton(this);
and added this to a LinearLayout
fbLoginButton = (LinearLayout) findViewById(R.id.fb_login_view);
fbLoginButton.addView(loginButton);
And here is the glimpse of my layout xml
This is ofcourse following the edit suggested by @Lalit Kumar's answer Let me know if I am missing anything.