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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:19:00+00:00 2026-06-17T13:19:00+00:00

With the Facebook SDK examples I’m able to login with Facebook, but now I

  • 0

With the Facebook SDK examples I’m able to login with Facebook, but now I need to post a message on the wall, I don’t understand how to do this.
This is my code
public class CondividiSuFacebookActivity extends Activity{

  public void onCreate(Bundle savedInstanceState) 
  {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.facebook_condividi);


      String msg = (String)getIntent().getStringExtra("message");


      // start Facebook Login
      Session.openActiveSession(this, true, new Session.StatusCallback() 
      {

          // callback when session changes state

          public void call(Session session, SessionState state, Exception exception) 
          {
                if (session.isOpened()) 
                {

                    // make request to the /me API
                    Request.executeMeRequestAsync(session, new Request.GraphUserCallback() 
                    {

                        // callback after Graph API response with user object
                        public void onCompleted(GraphUser user, Response response) 
                        {
                            if (user != null) 
                            {
                                TextView welcome = (TextView) findViewById(R.id.welcome);
                                welcome.setText("Hello " + user.getName() + "!");
                            }
                        }
                    });
                }
          }
    });
  }


  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);
  }



 }

I have found this function:

 Request.newStatusUpdateRequest(session, "Hello!", new Request.Callback() {

public void onCompleted(Response response) {
        // TODO Auto-generated method stub

}
 });

But I don’t understand how to use it. Any suggestions? Thanks

  • 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-17T13:19:01+00:00Added an answer on June 17, 2026 at 1:19 pm

    I suggest you take a look at the following StackOverflow question.

    Posting on facebook wall with sdk 3.0

    Please ensure you read the answer to the question for the complete solution. The code in the question asked should still help you out.

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

Sidebar

Related Questions

Using Facebook's PHP SDK, I was able to get Facebook login working pretty quickly
i am using facebook android sdk provided for facebook i m using their examples-simple
I am using Facebook SDK in hackbook and tried to login and do all
I'm trying to use the Facebook SDK for Android mobile applications. I've in this
I'm getting this exception from facebook SDK: Fatal error: Uncaught OAuthException: (#506) Duplicate status
I'm using the Facebook php-sdk to get the users name and friends, right now
I have integrated the Facebook-sdk successfully in to my appplication. Now i am going
I am using Parse mobile platform to post a feed on facebook timeline. This
I'm working with Facebook login on my website and was looking at this example:
I'm working with Facebook login on my website and was looking at this example:

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.