title: OAuth2 : How to generate client id and client secret?
body: <p>Let's say I have a simple application.</p>
  
  <p>How to set up OAuth2 to allow another application to access to some parts of my application.</p>
  
  <p>For example, when devs want to use the Facebook API, they use the Facebook API User interface that generate Client id, client secret etc.</p>
  
  <p>So, this is what i want my website do. provide client credentials when they request them.Not necessary by building an UI but programmatically (JAVA).</p>
  
  <p>In other words, what is the stack behind the facebook API OAuth UI ? Is there a simple framework to set it up quickly and easily ?</p>
  
  <p>thank you</p>