views:

189

answers:

0

I am working on an app that can be added to both user profiles and pages. This screencast showed how profile ID’s can be added to a users table as facebook_id fields, but how can I do the same for page ID’s (the fb_sig_profile_user param)? I have an idea how to accomplish this but I’m not sure if it will work:

  1. In the Facebook Pages Settings page, set ‘Post-Add Redirect URL” to http://appurl/users/create.
  2. Allow users/create to accept GET requests.
  3. Edit users/create so that it will check if these params were passed: installed=1&fb_page_id=61124459562
  4. Add fb_page_id as a User ONLY IF installed == 1, fb_sig_is_admin == “1” and fb_sig_session_key is valid (How do I do that?)

What do you think?