title: Custom Facebook Login Button - Android
body: <p>I''m following this <a href="http://www.rahuljiresal.com/2014/03/facebook-login-for-android-without-loginbutton/" rel="noreferrer">Tutorial</a> but so far I can't make it work, though this is from a year ago or so...</p>
  
  <p>I'm using androidStudo 1.2.2 and FacebookSDK 4.</p>
  
  <p>I want a simple login into facebook using a custom button, like the one shown in this image:</p>
  
  <p><img src="https://i.stack.imgur.com/iGmV5.png" alt="Example"></p>
  
  <p>Now, in the example from the tutorial I'm having problems with the <code>Session</code> variable, it says it cannot resolve it, neither <code>getActivity()</code></p>
  
  <p>Has naybody tried this on FacebookSDK4.0?</p>
  
  <p>Is that a correct approach or maybe there is something more updated?</p>
  
  <p>Thanks in advance!</p>