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

來源: 簡妮媽 2009-02-13 18:53:50 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (1373 bytes)
這裏有人(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.

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”