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 777889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:40:50+00:00 2026-05-14T19:40:50+00:00

I am using the Android code below to connect to Facebook but getting the

  • 0

I am using the Android code below to connect to Facebook but getting the following exception instead of running the function onLoginSuccess:

Facebook Server Error + 104 – Incorrect signature

public class FacebookConnection extends Activity implements LoginListener {

    private FBRocket fbRocket;

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

        // You need to put in your Facebook API key here:
        fbRocket = new FBRocket(this, "test", "e2c8deda78b007466c54f48e6359e02e");


        // Determine whether there exists a previously-saved Facebook:
        if (fbRocket.existsSavedFacebook()) {
            String str =fbRocket.getAPIKey();
            Log.e("Api key", str);
            fbRocket.loadFacebook();


         } else {
            fbRocket.login(R.layout.main);
            String str =fbRocket.getAPIKey();
            Log.e("Api key", str);
        }

    }

    public void onLoginFail() {
        fbRocket.displayToast("Login failed!");
        fbRocket.login(R.layout.main);
    }

    public void onLoginSuccess(Facebook facebook) {
        fbRocket.displayToast("Login success!******************");

        // Set the logged-in user's status:
        try {

            facebook.setStatus("I am using Facebook -- it's great!");

            String uid = facebook.getFriendUIDs().get(0); // Just get the uid of the first friend returned...
            fbRocket.displayDialog("Friend's name: " + facebook.getFriend(uid).name); // ... and retrieve this friend's name.

        } catch (ServerErrorException e) {
            // Check if the exception was caused by not being logged-in:
            if (e.notLoggedIn()) {
                // ...if it was, then login again:
                fbRocket.login(R.layout.main);
            } else {
                System.out.println(e);
                e.printStackTrace();
            }
        }
    }
}
  • 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-14T19:40:50+00:00Added an answer on May 14, 2026 at 7:40 pm

    I had the exact same problem, though at a different place. After doing a fair amount of digging, I found that the call to fbRocket.loadFacebook() was the culprit. I can’t get that method to work, even if I do a facebook.save() to save the session to disk after a manual login. All I can think is that fbRocket.loadFacebook() does not work properly and you should always use fbRocket.login(). That is what I have to do in my app. I also couldn’t get it to work with the sample code on the FBRocket website. Hope that helps.

    Chuck

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

Sidebar

Related Questions

I'm using the code below for Android JSON parsing but I am getting the
I am getting the following error when I am using the code below. 02-24
i am using following code. <RelativeLayout android:layout_width=310dp android:layout_height=70dp android:layout_below=@+id/UIReportView android:layout_marginLeft=4dp android:layout_marginTop=2dp android:background=@drawable/small_corners > small_corners
I'm getting some very jerky scrolling while using the code below to create a
im trying to connect mysql in android app. Below is my code. Once i
I am using Appcelerator Titanium for an Android app and the code below generates
I am using the code shown below for like a url in facebook: String
newbie here. I successfully created a chat server using c# (server partial code below,
I am loading url in android webview using below code webviewShowPost.loadUrl(URL); I want to
I am using the code shown below to get Data from our server where

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.