title: Post to facebook wall from phonegap android
body: <p>Am trying to post to facebook wall from an android app written with phonegap. I do get the following error: message:(#200) the user hasn't authorized the application to perform this action type:OAuthException. So my question is How do i get the user to authorize my app so i can post to their wall. I use this code to login:</p>
  
  <pre><code>        function login() {
              FB.login(
                  function(response) {
                      if (response.session) {
                          alert('logged in');
  
                      } else {
                          alert('not logged in');
                      }
                  },
                  { perms: 'publish_stream' }
              );
          }
  </code></pre>
  
  <p>and i try to post with the below code which throws an error.</p>
  
  <pre><code>        function postToWall() {
              var body = 'Reading Connect JS documentation';
              FB.api('/me/feed', 'post', { body: body }, function(response) {
                if (!response || response.error) {
                  alert('Error occured ' + JSON.stringify(response.error));
                } else {
                  alert('Post ID: ' + response);
                }
              });
            }
  </code></pre>
  
  <p>Am using the phonegap facebook api from <a href="https://github.com/davejohnson/phonegap-plugin-facebook-connect" rel="nofollow">https://github.com/davejohnson/phonegap-plugin-facebook-connect</a> and FB.ui does not work.</p>
  
  <p>Thanks</p>