Getting your facebook page oauth key the hard but independant way

yazgoo edited this page Sep 14, 2010 · 6 revisions

This is based on the idea that you create your own developer application (so you can be independant).
An easier way (but still independant is to use that script) is to use the oauth script source (you’ll still have to do step one though).
Here are the stages, provided you have created a facebook page:

  1. Create a new facebook application to get an appId/secret
  2. Add the facebook application to your page
  3. Use the open graph api to get your page appId/secret

Create a new facebook application to get an appId/secret

you can also see http://developers.facebook.com/docs/api#authorization

  1. Install the developer app
  2. Go to the developer app (http://www.facebook.com/developers/)
  3. fill and send the forms at: http://developers.facebook.com/setup/
  4. don’t forget to put a root website
  5. After a while, you should get the message:
    Sorry, an error has occurred. We're working on getting this fixed as soon as we can.
    Which means everything went well…
  6. Go back to the developer app page, and look at your applications, the new one should be here, follow the link
  7. get app Id and Secret key

Getting the oauth key

  1. query with your favourite browser https://graph.facebook.com/oauth/authorize?client_id=yourAppId&redirect_uri=yourPageUr&scope=offline_access,manage_pages
  2. Here I like to get my key directly (just http decode the code returned (mainly replace %7C with |) in code getted variable
  3. Ok, now you got your user code, you want to generate a oauth key:
    https://graph.facebook.com/oauth/access_token?client_id=yourAppId&redirect_uri=yourPageUri&client_secret=yourAppSecret&code=yourCode
  4. get your oauth key

Getting your page logins

  1. query https://graph.facebook.com/me/accounts?access_token=previousOauthKey
  2. here is your page key
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.