trying to login from facebook native app
<p>i am trying to authorize my app with facebook native app. But after log in it request for opening it in browser. It says as "choose action from" and then list of browser.But i want to complete my process with facebook native app only. </p>

<p>My code is as follows</p>

<pre><code> private void checkFacebook() {
    long expires = preferences.getLong(
            getResources().getString(
                    R.string.ACCESS_EXPIRES), 0);
    if (access_token != null) {
        facebook.setAccessToken(access_token);
    }
    if (expires != 0) {
        facebook.setAccessExpires(expires);
    }

    /*
     * Only call authorize if the access_token has
     * expired.
     */

    if (!facebook.isSessionValid()) {
        handler.sendEmptyMessage(0);

        int activityCode = 0;
        Uri dataUri = Uri.parse("fb://....");
        Intent receiverIntent = new Intent(Intent.ACTION_VIEW, dataUri);

        PackageManager packageManager = getPackageManager();
        List&lt;ResolveInfo&gt; activities = packageManager.queryIntentActivities(receiverIntent, 0);
        activityCode = activities.size();
        facebook.authorize(FacebookLoginActivity.this, new String[] { "user_photos",
                "publish_checkins",
                "email", "publish_actions",
                "read_stream",
                "publish_stream","photo_upload","share_item","status_update", "" }, activityCode, new DialogListener() {

            @Override
            public void onFacebookError(FacebookError e) {

                String error = e.getLocalizedMessage();

                String test = error;
                // TODO Auto-generated method stub
                //authoriseFAcebook();

            }

            @Override
            public void onError(DialogError e) {
                // TODO Auto-generated method stub

                String error = e.getMessage(); 

                String test = error;
                //                  authoriseFAcebook();
            }

            @Override
            public void onComplete(Bundle values) {

                fbProcessInSeprateThread();

            }

            @Override
            public void onCancel() {

            }
        });
</code></pre>
