You can set the redirect URL in the application properties. You can no longer install it from the developer’s control panel on Facebook, but you can still install it using the REST api.
The list of application properties is here: http://developers.facebook.com/docs/appproperties/
To set "post_authorize_redirect_url", you should use something like this:
https://api.facebook.com/method/admin.setAppProperties? access_token=CURRENTTOKEN& properties={'post_authorize_redirect_url':'http://mydomain.com/post_authorize_folder/'}
I do not quite understand this, but I believe that the URL should point to a folder ending with a "/" character, and not a specific file.
The callback receives two parameters: set = 1 (true) fb_page_id = page id when your application is installed
source share