I created a Dialog for Facebook login it working开发者_开发知识库 fine on HTC Desire and emulator but whenever, I am trying to open it in Ericsson Xperia(2.3.2), Dialog box is not coming in Ericsson a full screen is coming having facebook url page and in the loading time it got disappeared. I am able to hit the URl, the page loding into my screen and getting disappeared and in my Log Cat its an Error is showing having TAG="SkLayout_wtle" haivng "layout error:106 width:0 ellipsizedWidth:0" in value.
This is the URl that i am hitting.
FacebookMobileUrl
If any information is require then let me know.
This was solved by force_login_auth for more info see this link
Inside facebook.java there is a static int public static final int FORCE_DIALOG_AUTH = -1;
just pass that int into the first two default authorize methods like:
public void authorize(Activity activity, final DialogListener listener) {
authorize(activity, new String[] {}, FORCE_DIALOG_AUTH,
listener);
}
and
public void authorize(Activity activity, String[] permissions,
final DialogListener listener) {
authorize(activity, permissions, FORCE_DIALOG_AUTH, listener);
}
this will disable the sso which required for the fb login or you can use this blog if you dont want to disable it.
精彩评论