Nuraiz
Nuraiz

Reputation: 1070

Facebook connect is not working

I have integrated Facebook in my app. It works great on many phones like Samsung Galaxy, HTC Desire, Samsung Nexus. But its not working on AT&T Infuse and its OS 2.2.1. On clicking Fb Login button, it went to the Facebook login screen (blue bar at top, white blank main with loading box). Stayed there about 2 seconds, then flipped back with no messages. I pressed Facebook Login again and got same behavior. I have native fb app android. Is there any kind of restrictions of Locale, TimeZone or any other from Facebook? Kindly help me fixing this issue. Thanks in advance.

Upvotes: 0

Views: 438

Answers (2)

Venky
Venky

Reputation: 11107

Problem is due to Single Sign On in Android. So you need to create HashKey and register your App Key with Facebook account.. For reference check this link .

Login Error Problem in Facebook Android.

Upvotes: 1

Nikhil
Nikhil

Reputation: 16196

Hi Please replace below line in Facebook.java

public void authorize(Activity activity, final DialogListener listener) {
//      authorize(activity, new String[] {}, DEFAULT_AUTH_ACTIVITY_CODE,listener);//original
        authorize(activity, new String[] {}, FORCE_DIALOG_AUTH, listener);
    }



public void authorize(Activity activity, String[] permissions,
            final DialogListener listener) {
//      authorize(activity, permissions, DEFAULT_AUTH_ACTIVITY_CODE, listener); //original
        authorize(activity, permissions, FORCE_DIALOG_AUTH, listener);
    }

Used this code. may be work.

Upvotes: 1

Related Questions