title: posting message on facebook wall
body: <p>I created a application on facebook. Now I want to post message on facebook wall.Since I am the developer of the application when I log on to my facebook account the message is coming on my wall,but when i logonto another user this application is not getting and the page is redirecting to <strong><a href="http://www.facebook.com/4oh4.php" rel="nofollow">http://www.facebook.com/4oh4.php</a></strong>. my code is given below</p>
  
  <pre><code>$facebook = new Facebook(array(
  
              'appId' =&gt; myAppId,
              'secret' =&gt; myAppSecret,
                  'cookie' =&gt; true,
                  'req_perms' =&gt; 'email,read_stream,read_friendlists,publish_stream,offline_access,manage_pages'
  
          ));
      $user = $facebook-&gt;getUser();
  $app_id = myAppId;
          $canvas_page = "https://apps.facebook.com/apptestingas/";
          $auth_url = "http://www.facebook.com/dialog/oauth?client_id=" 
              . $app_id . "&amp;redirect_uri=" . urlencode($canvas_page)."&amp;scope=email,read_stream,read_friendlists,publish_stream,offline_access,manage_pages";
   if(isset($_REQUEST["signed_request"]))
       {
          $signed_request = $_REQUEST["signed_request"];
          list($encoded_sig, $payload) = explode('.', $signed_request, 2); 
          $data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true);
  
       }
        if (empty($data["user_id"]))
       {
          echo("&lt;script&gt; top.location.href='" . $auth_url . "'&lt;/script&gt;");
  
       }
       else 
       {
          $uid = $data["user_id"];
  
       } 
  try {
      // Proceed knowing you have a logged in user who's authenticated.
   echo $token = $facebook-&gt;getAccessToken();
  $user_profile = $facebook-&gt;api('/'.$uid.'',array (
  'access_token' =&gt; $token)
  );
  
  
    } catch (FacebookApiException $e) {
      error_log($e);
      $user = null;
    }
    if (!empty($user_profile )) {
          # User info ok? Let's print it (Here we will be adding the login and registering routines)
  
         echo  $username = $user_profile['name'];
      $uid = $user_profile['id'];
  $facebook-&gt;api('/'.$uid.'/feed', 'post', array(
            'message' =&gt; "sdsgdg testingbbbb",
  
        ));
    }
  </code></pre>
  
  <p>please any one help</p>