title: Facebook random error “An error occurred. Please try again later”
body: <p>EDIT: It seems that I can only make 2  posts per day. If I remove the Logout step I can post as much as I want.</p>
  
  <p>I've looked at many other “An error occurred. Please try again later” threads on here and haven't seen exactly my issue so I feel it does warrant its own thread.</p>
  
  <p>I have an app thats sole purpose is to schedule and post messages to Facebook. This app has been working great. As flawless as a FB app can run. I was asked to force the user to relog in every post for security reasons so the first step is to use the javascript SDK to log the user out, then proceed to logging them in and prompting them for their information.</p>
  
  <p>This also works, most of the time... For some unknown reason I randomly get the “An error occurred. Please try again later” page after I enter my FB login credentials.</p>
  
  <p>So the flow is:</p>
  
  <p>User configures the post.
  User hits 'send now.'
  We log the user out.
  We attempt to authenticate the user.
  The user is prompted by FB for their UN/PW.
  The user submits this information.
  “An error occurred. Please try again later”</p>
  
  <p>Once this starts it continues until I give up. Trying again later does indeed eventually work however whatever is broken needs to be fixed.</p>
  
  <p>It's important to note that there have been no code changes in the project at all between when it works and when it starts throwing the “An error occurred. Please try again later” error. The exact same code works for One, two or three posts and then FB decides it just wont let me do anything anymore.</p>
  
  <p>I do notice that when it stops working it stops prepopulating my e-mail address when prompted to log in. However when it works it will prepopulate that field.</p>
  
  <p>Has anyone seen what I've described?</p>
  
  <p>Yes we have sandbox disabled.
  Yes the domain matches up.
  Everything is configured correctly enough that it works when it wants to.</p>