0

我正在使用 Facebook SDK。我在对话框中添加 Facebook LoginButton,但是当我单击它时,我的请求不起作用。

公共类 StartsFragment 扩展片段 {

ClassicButton classicButton;
Dialog dialog;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
        Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.starts_fragment, container, false);

    final Fragment startsFragment;
    startsFragment = this;

    Button joinUs = (Button) view.findViewById(R.id.joinus);
    joinUs.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {

            dialog = new Dialog(getActivity(), R.style.UserLoginRegisterDialog);
            dialog.setContentView(R.layout.login_dialog_fragment);

            LoginButton lb = (LoginButton) dialog.findViewById(R.id.authButton);
            lb.setFragment(getParentFragment());
            lb.setReadPermissions(Arrays.asList("email","user_birthday"));

            dialog.show();
               dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
});
return view;
}

我看到我的日志,

{Session state:OPENING, token:{AccessToken token:ACCESS_TOKEN_REMOVED permissions:[]}, appId:******}

为什么我看不到我的许可请求?为什么每次都响应空会话?

此致,

4

0 回答 0