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 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 have been developing an app using Xcode , which included the Facebook SDK
I am developing a mobile social TV application on Android.I want to integrate Facebook
I am developing apps for android smartphones. There is a social SDK to integrate
I'm developing a social network using Microsoft Technologies. I want to make a Wall
Im developing a Facebook app with java and spring social. Is it possible to
I'm developing the backend part of a social app. Clients are iOS/Android phones. The
We are now developing a social news feed iOS app, and we need to
I'm developing an application for companies that will automatically post data on their social
I am developing a balloon notification for my social network. I came across this
I'm developing an iOS game in Unity using the Prime31 Social Networking plugin to

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.