Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7159335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:12:51+00:00 2026-05-28T13:12:51+00:00

My android application used to be able to connect to the Facebook server via

  • 0

My android application used to be able to connect to the Facebook server via the API, but now it won’t for some reason. I keep on getting this message in my log cat

D/Facebook-authorize(417): Login failed: com.facebook.android.DialogError: The connection to the server was unsuccessful.

Ive read many stack overflow questions regarding this, without answer. I am hoping someone can help me with this. Thank you!

Here is some of my code with my App ID edited out

public class BreadcrumbsActivity extends Activity {

static Facebook facebook = new Facebook("*************");
String FILENAME = "AndroidSSO_data";
static SharedPreferences mPrefs;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    /*
     * Get existing access_token if any
     */
    mPrefs = getPreferences(MODE_PRIVATE);
    String access_token = mPrefs.getString("access_token", null);
    long expires = mPrefs.getLong("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()) {

        facebook.authorize(this, new String[] {"user_likes", "user_photos", "email", "offline_access", "publish_actions"}, new DialogListener() {
            @Override
            public void onComplete(Bundle values) {
                SharedPreferences.Editor editor = mPrefs.edit();
                editor.putString("access_token", facebook.getAccessToken());
                editor.putLong("access_expires", facebook.getAccessExpires());
                editor.commit();

                Toast.makeText(getApplicationContext(),
                        "Login Succesful.",
                        Toast.LENGTH_LONG).show();

                Intent intent = new Intent(BreadcrumbsActivity.this, MainMenu.class);                   
                BreadcrumbsActivity.this.startActivity(intent);
            }

            @Override
            public void onFacebookError(FacebookError error) {
                Toast.makeText(getApplicationContext(),
                        "Login Failed.",
                        Toast.LENGTH_LONG).show();

                Intent intent = new Intent(BreadcrumbsActivity.this, MainMenu.class);                   
                BreadcrumbsActivity.this.startActivity(intent);
            }

            @Override
            public void onError(DialogError e) {}

            @Override
            public void onCancel() {}
        });
    }
}


@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    facebook.authorizeCallback(requestCode, resultCode, data);
}

}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:12:52+00:00Added an answer on May 28, 2026 at 1:12 pm

    Error- 417 Expectation Failed

    The 417 status code means that the server was unable to properly
    complete the request. One of the headers sent to the server, the
    “Expect” header, indicated an expectation the server could not meet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to send mail from my android application to given address. But now
I'm writing an Android application that I want to be able to send requests
I'm currently trying to develop an android application in eclipse(java) which shows some jokes
I am working on an Android application where I deliver some built-in images and
I have used PreferenceActivity to have preference in my android application. I want one
Hai i developed a application in android,in my application i used a dynamically created
Hi i have a problem i'm not able to solve. In my Android\java application
I am trying to make an Android/ Java application that needs to connect to
I am developing an android application using google maps. I have to display some
I am making an small application in android in which i used an image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.