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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:36:29+00:00 2026-06-09T11:36:29+00:00

Hello everyone i’m trying to use the Facebook Api to send a notification and

  • 0

Hello everyone i’m trying to use the Facebook Api to send a notification and i did this:

Bundle params = new Bundle();
params.putString("to", 535465135216);
params.putString("message", "Prova Prova A A");
facebook.dialog(Answer.this, "apprequests", params, new DialogListener() {
                public void onComplete(Bundle values) {
                                    Toast toast = Toast.makeText(getApplicationContext(), "Done",
                                            Toast.LENGTH_SHORT);
                                    toast.show();
                                }

                                @Override
                public void onFacebookError(FacebookError error) {
                                    Toast.makeText(getApplicationContext(), "Facebook Error: " + error.getMessage(),
                                            Toast.LENGTH_SHORT).show();
                                }

                                @Override
                public void onCancel() {
                                    Toast toast = Toast.makeText(getApplicationContext(), "App request cancelled",
                                            Toast.LENGTH_SHORT);
                                    toast.show();
                                }

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

                                }
                            });

And when i try to run this project everything work well and it shows the Toast “Done” but in my Facebook Profile doesn’t appear the notification.

Should I change something in Facebook App’s settings ?

ThankYou 🙂

  • 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-09T11:36:31+00:00Added an answer on June 9, 2026 at 11:36 am

    Many times when invites are successfully sent but do not appear for the user it is because a canvas url was not set in the application settings.

    The canvas url parameter is crucial when dealing with application invites/requests because when a user takes action on the invite (that means clicks “accept”), he is redirected to your application. If no canvas url is supplied, the invitation essentially becomes nullified because Facebook has no where to send the user after they click!

    You are developing an android application so you might not even need a canvas url but in order to get the invitations working correctly, you’ll have to specify one.


    Another possibility is that you are sending the invite/request to a user that is not defined in the “roles” of your application when your app is still set to “sandbox mode”. As long as your app remains in sandbox mode it is essentially invisible to anyone not defined in the “roles” section. This sandbox mode allows developers to develop and test their application without having to worry about making it public on Facebook. So you’ll be able to send the invite, but if you send it to someone who is not defined and involved in the development of the app, s/he will simply not get the invite (even though the action will seem that it was successful).

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

Sidebar

Related Questions

Hello everyone I am trying to resize an image of 700kb with imagecreatefromjpeg. This
hello everyone im trying to create this tweak that copies a file from one
Hello everyone this is my first post on stack overflow.com I am trying to
Hello everyone I'm trying to post the activity of users of my facebook app,
Hello Everyone i am new to android and i am currently stuck on this.
hello everyone I am trying to make a script that steps through a list
Hello everyone, I am making a VC++ 2008 project in pure Win32 API which
Hello everyone don't know why this code works on windows but not on linux
Hello everyone, I have some confusion regarding some Win32 API data types and macros
Hello everyone I am getting this exception: The magic number in GZip header is

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.