android - Facebook LoginButton inside Dialog -
i'm working facebook sdk. i'm adding facebook loginbutton inside dialog, when click it, request doesn't work.
public class startsfragment extends fragment {
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; }
and see log,
{session state:opening, token:{accesstoken token:access_token_removed permissions:[]}, appid:******}
why couldn't see permission request ? , why response every time null session?
best regards,
Comments
Post a Comment