duanjia3187 2017-01-19 12:55
浏览 20
已采纳

Facebook Web App不会询问要管理哪个页面

I have created a Facebook Web App using PHP SDK in Symfony. It's working correctly. It asks for permissions and then posts the user's posts on our system to their Facebook Page. Now clients want that if a user manages multiple pages, it should ask for which page they want to give access to. The App selects the first page the user manages as default and gets the access token for it.

My question is how is it possible so that the App returns the Pages list and ask user for which page they want to give access to our App?

Thank you.

  • 写回答

1条回答 默认 最新

  • dougai2427 2017-01-19 13:02
    关注

    You can get a list of all managed Pages including their Page Tokens with the /me/accounts endpoint:

    /me/accounts?fields=name,access_token
    

    You can´t just authorize one single Page, you can only authorize the neccessary permissions (manage_pages, publish_pages).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 python变量和列表之间的相互影响
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)