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

  • Home
  • SEARCH
  • 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 8235117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:41:46+00:00 2026-06-07T18:41:46+00:00

I am using the Android Hackbook app. I have slightly modified the code to

  • 0

I am using the Android Hackbook app. I have slightly modified the code to send a app request to a a Custom Friend. Here is the code.

Bundle params = new Bundle();
    params.putString("title", "invite friends");
    params.putString("message", getString(R.string.request_message));
    params.putString("to", userId);
    Utility.mFacebook.dialog(Hackbook.this, "apprequests", params, new AppRequestsListener());

This brings up a dialog to send a app request to the friend who user id i selected. The AppRequestsListener code gets executed and it shows me a toast that the request was successful. How the user never receives the request. What am i doing wrong. Is there some permission that i need to grant to the application first. Really stuck, any help would be good

Kind Regards,

  • 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-06-07T18:41:49+00:00Added an answer on June 7, 2026 at 6:41 pm

    Try this:

            Facebook facebook = new Facebook(YOUR_APP_ID);
            Bundle params = new Bundle();
            params.putString("to", userId);
            params.putString("message", "getString(R.string.request_message)");
            facebook.dialog(((Activity) ctx).getParent(), "apprequests",
                    params, new DialogListener() {
    
                        public void onComplete(Bundle values) {
                            // TODO Auto-generated method stub
                            Toast.makeText(ctx, "<<Complete>>",
                                    Toast.LENGTH_SHORT).show();
                        }
    
                        public void onFacebookError(FacebookError e) {
                            // TODO Auto-generated method stub
                        }
    
                        public void onError(DialogError e) {
                            // TODO Auto-generated method stub
                        }
    
                        public void onCancel() {
                            // TODO Auto-generated method stub
                        }
    
            });
    

    This works for me. User receive request as expected.

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

Sidebar

Related Questions

I am using android 2.1 platform.The code I have will display the Name number
I currently using android NDK to write some native code in C. I have
I have preference menu in my app. I am using Android 1.6. I wanted
I've been using Android ProgressBar quite a lot. The only thing here is for
I am using Android 2.1 platform, I have 7 contacts in my emulator when
I have just started using android, and have about 5 layout files finished. However,
Using android 2.3.3, I have a background Service which has a socket connection. There's
I am using android 2.2, phonegap 1.3, and jquery-mobile 1.0 I have a list
Building an app using android.support.v4.app , targeting API level 8. Everything's working as planned
I am using Android emulator with AVD of Android 2.1 and I have the

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.