http://forum.developers.facebook.com/viewtopic.php?pid=122696#p1

來源: 2009-02-13 18:53:50 [舊帖] [給我悄悄話] 本文已被閱讀:
這裏有人(hrysax )建議如下,我也試過,還是不行.

Theres actually a few different things you have to do to get your app working on your Pages page:

1) Create a special PHP page or whatever youre language youre using, name it something like pagesAdmin.php or so, and save it in your Facebook app directory. (when users click the "edit" link next to your application on their "Pages" admin, it will bring them to this page)

2) In your app settings page, go to the "Pages" section and in the "edit link" field, type the url location of the page you just created. (when theres no URL in this field, it automatically redirects you to your app home )

3) Now, go back to your pagesAdmin.php page, and depending on how your application works, what you want to do is call profile.setFBML() within the code, just as you would for allowing a user to add your application box to their profile. HOWEVER, instead of passing the "uid", you pass the Page ID. you can get the ID from the URL. i believe the parameter is fb_page_id or something. You can also create a seperate "Pages" specific box FBML and pass that in as well.

4) make sure you check that the person accessing this page is an admin of the page, or else anyone could plug in a page ID and have access to that Page's app box. Something like pages.isAppAdmin() or something.