I'm testing android with facebook login example (SessionLoginSample) and its working on my phone but it's not working from another phones.The pop up shows up but it does nothing when i clicked OK.It should have shown facebook login after i clicked OK. anyone knows what's wrong?

private void updateView() { Session session = Session.getActiveSession(); if (session.isOpened()) { textInstructionsOrLink.setText(URL_PREFIX_FRIENDS + session.getAccessToken()); buttonLoginLogout.setText(R.string.logout); buttonLoginLogout.setOnClickListener(new OnClickListener() { public void onClick(View view) { onClickLogout(); } }); } else { textInstructionsOrLink.setText(R.string.instructio ns); buttonLoginLogout.setText(R.string.login); buttonLoginLogout.setOnClickListener(new OnClickListener() { public void onClick(View view) { onClickLogin(); } }); } }

View Solution