Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't log in to my android application, facebook sdk 3.0
    text
    copied!<p>I am trying to implement facebook log in for few days. I want to implement Single-sign on(SSO), but when i am logged to native Facebook app i got this message:</p> <pre><code>"The page you requested cannot be displayed right now. it may be temporarily unavailable, the link you clicked on may be broken or expired, or you may not have perrmission to view this page". </code></pre> <p>I followed official facebook guide for log in. </p> <pre><code>LoginButton connectToFacebook = (LoginButton) findViewById(R.id.lbConnectToFacebook); connectToFacebook.setReadPermissions(Arrays.asList("user_relationships")); UiLifecycleHelper uiHelper = new UiLifecycleHelper(MainActivity.this, callback); uiHelper.onCreate(savedInstanceState); </code></pre> <p>Also i implemented:</p> <pre><code>private void onSessionStateChange(Session session, SessionState state, Exception exception) { if (state.isOpened()) { Log.i("FACE", "Logged in..."); } else if (state.isClosed()) { Log.i("FACE", "Logged out..."); } } private Session.StatusCallback callback = new Session.StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) { onSessionStateChange(session, state, exception); } }; </code></pre> <p>And override onActivityResult method, but this only works if i logged out from native fb app, and as i said i don't won't to use:</p> <pre><code>connectToFacebook.setLoginBehavior(SessionLoginBehavior.SUPPRESS_SSO); </code></pre> <p>i want single sign on.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload