title: using facebook graph api to share status update in iphone
body: <p>i am trying out facebook graph api for functionalities of <code>like</code>, <code>share</code> etc. I need to share newsfeed of a particular friend. The newsfeed can be any- photo, video, link or status update.
  i am able to share everything but status update. following is my code:</p>
  
  <pre><code>if ([strType isEqualToString:@"status"]) {
  
  
              [[resultArrFeed objectAtIndex:selectedIndex] objectForKey:@"message"];
  
              if (text == nil) {
                  text = [[resultArrFeed objectAtIndex:selectedIndex] objectForKey:@"story"];
              }
  
  
  
              NSDictionary *dict = [resultArrFeed objectAtIndex:selectedIndex];
              NSLog(@"dic : %@", dict);
              NSString *str = [[dict valueForKey:@"actions"] valueForKey:@"link"][0];
              dic=[NSDictionary  dictionaryWithObjectsAndKeys:str,@"link",nil];
              request=[NSMutableString stringWithString: @"me/feed/"];
              //  [dic setValue:str forKey:@"link"];
              NSLog(@" %@", str);
  
          }
  </code></pre>
  
  <p>i get the following error on sharing:</p>
  
  <pre><code>Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0xaaa9a20 {com.facebook.sdk:ParsedJSONResponseKey={
  body =     {
      error =         {
          code = 1500;
          message = "(#1500) The url you supplied is invalid";
          type = OAuthException;
      };
  };
      code = 400;
  }, com.facebook.sdk:HTTPStatusCode=400}
  </code></pre>
  
  <p>how do i solve it?</p>