0

I am able to get profile information from facebook but not able to post somehing. I also declared Internet permission in menifest file.

public void postToWall() {
        // post on user's wall.
        Bundle params = new Bundle();
        params.putString("message", "Hello");

    mAsyncRunner.request("feed", params, new RequestListener() {

        @Override
        public void onComplete(String response, Object state) {


        }

        @Override
        public void onIOException(IOException e, Object state) {

        }

        @Override
        public void onFileNotFoundException(FileNotFoundException e,
                Object state) {
        }

        @Override
        public void onMalformedURLException(MalformedURLException e,
                Object state) {

        }

        @Override
        public void onFacebookError(FacebookError e, Object state) {

        }
    });
    }

This is my method to post something in user's wall

Kunu
  • 5,078
  • 6
  • 33
  • 61

1 Answers1

0

Try read the documentation. Have a lot o code and explain how to do that.

Documentation Facebook - Publish to Feed

Or try to search more on stackoverflow

Post Simple Text on Facebook Wall

I hope this help!

Community
  • 1
  • 1
groff07
  • 2,363
  • 3
  • 32
  • 48