title: Ruby on Rails Facebook Graph API OAuth error #506 Duplicate status message
body: <p>I have a Rails application that is posting to Facebook. I put a rescue to prevent the error of posting the same message twice. I would like to have my app just notify the user and move on, but I cannot seem to rescue this error.</p>
  
  <p>This is my code:  </p>
  
  <pre><code>begin
    current_user.facebook.feed!(:message =&gt; 'THIS IS A TEST PLEASE IGNORE::Hello, Facebook!')
  rescue FbGraph::Unauthorized
    flash[:alert] = "Already Posted"
  end
  redirect_to show(@track)
  </code></pre>
  
  <p>The error I get with this code is:</p>
  
  <blockquote>
    <p>OAuthException :: (#506) Duplicate status message</p>
  </blockquote>