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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:48:28+00:00 2026-05-19T16:48:28+00:00

i am developing social app this app integrate to facebook my app related message

  • 0

i am developing social app this app integrate to facebook my app related message post to facebook wall i am using facebook sdk in facebook sdk

mPostButton.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                String message = "Post this to my wall";
                Bundle parameters = new Bundle();        
                parameters.putString("message", message);   
                mAsyncRunner.request("me/feed", parameters, "POST",  new SampleDialogListener());
            }
            });
     mPostButton.setVisibility(mFacebook.isSessionValid() ?
                View.VISIBLE :
                View.INVISIBLE);
    }



   public class SampleDialogListener extends BaseDialogListener implements RequestListener {

            public void onComplete(Bundle values) {
                final String postId = values.getString("post_id");
                if (postId != null) {
                    Log.d("Facebook-Example", "Dialog Success! post_id=" + postId);
                    mAsyncRunner.request(postId, new WallPostRequestListener());
                               } else {
                    Log.d("Facebook-Example", "No wall post made");
                }
            }
 public class WallPostRequestListener extends BaseRequestListener {

        public void onComplete(final String response, final Object state) {
            Log.d("Facebook-Example", "Got response: " + response);
            String message = "<empty>";
            try {
                JSONObject json = Util.parseJson(response);
                message = json.getString("message");
            } catch (JSONException e) {
                Log.w("Facebook-Example", "JSON Error in response");
            } catch (FacebookError e) {
                Log.w("Facebook-Example", "Facebook Error: " + e.getMessage());
            }
            final String text = "Your Wall Post: " + message;
            Example.this.runOnUiThread(new Runnable() {
                public void run() {
                    mText.setText(text);
                }
            });
        }

i am using this code is not working to post message my intension is userlogin facebook my string is open just publish wall post

  • 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-19T16:48:29+00:00Added an answer on May 19, 2026 at 4:48 pm

    As i am also a learner at this stage, Can you tell me why are you using sample dialog listener in mAsyn.request(“me/feed”,…..)…..

    What is the error???

    I think, if you are logged in, just call wallpostlistener in mAsync.request(“me/feed”,…,new WallPost….)… this is what i do in my application.

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

Sidebar

Related Questions

I'm developing a social network using Microsoft Technologies. I want to make a Wall
I'm new to Ruby on Rails...I've been playing around with developing a social networking
I'm developing a Java ME app and I want to give it social features.
Background I am developing a social web app for poets and writers, allowing them
Developing a web application that I've registered with Twitter. In this app, I might
I am developing a social media monitoring application. Currently, we are entering Facebook page
We are developing a social networking project, in this project we are adding content,
I'm developing a small social networking app that makes use of something like profile
I am developing iPhone app where I need to provide integration with different social
I'm in the process of developing a social network site. And been thinking of

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.