title: How to accept or deny a friend request with Parse?
body: <p>Right now the "Friend" component in my app lists every user that has signed up for the app. User A can then add as many friends as they want and interact with them.</p>
  
  <p>What I want to do is allow User A to send a request to those users so that User B, User C, etc. can either accept or deny the request to interact with User A.</p>
  
  <p>Has anyone successfully accomplished this?</p>
  
  <p>Any tips / advice / tutorial on how to approach this?</p>
  
  <p>Thank you!</p>
  
  <p>EDIT:</p>
  
  <p>Here is what I have tried.</p>
  
  <p>I have a new class called Friendship that contains:</p>
  
  <p>toUser - points to the User class</p>
  
  <p>fromUser - points to the User class</p>
  
  <p>status - string</p>
  
  <pre><code>PFQuery * query = [PFQuery queryWithClassName:@"Friendship"];
  [query whereKey:@"toUser" equalTo:[PFUser currentUser]];
  [query whereKey@"status" equalTo:@"pending"];
  [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
      if (error)
      {
          //NSLog error
      }
      else {
           self.followingArray = objects;
           [self.myTableView reloadData];
      }
  </code></pre>
  
  <p>Objects is not returning anything. </p>