Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to implement Stack Exchange using oAuth 2.0. I am able to get CODE but, when I try to get access_token through this code:

<form method="POST" action="" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="client_secret" value="aaaaaaaaaaaaaaaaaaaaaaaa" />
<input type="hidden" name="code" value="<?php echo $_GET['code'];?>" />
<input type="hidden" name="client_id" value="0000" />
<input type="hidden" name="redirect_uri" value="" />
<input type="submit" name="submit" value="stack" />

<a href="<?php echo $_GET['code'];?>&">abcd</a>

when I click on anchor tag nothing happens, it just stays on may page only.

When I submit the form, ACCESS_TOKEN is displayed on
but its not redirecting back to my redirect_uri. If anyone can guide me, it will be very help full, thank you.

share|improve this question
Yeah, it's broke and not redirecting like the docs say it should. Coulda swore it worked the last time I checked, but I don't have any active apps that need auth. – Brock Adams Aug 10 '13 at 11:54
@BrockAdams oh okay , thanks. i need help i am developing on app that needs questions from stack exchange based on a tags. do i need access token for it?? – Amit Parmar Aug 10 '13 at 12:44
No, you only need an access token for the eleven paths listed in this answer. You can read all public information, and you can search, without needing any authentication. – Brock Adams Aug 10 '13 at 13:02

You must log in to answer this question.

Browse other questions tagged .