Post 通过 php api 到 Facebook 页面,其中 "Disable posts by other people on the Page" 已启用
Post to facebook page via php api where "Disable posts by other people on the Page" is enabled
我们已经创建了一个 Facebook 应用程序,它自动post将文章发送到由其管理员关联到我们应用程序的页面。
我们已经设置了正确的权限 'manage_pages', 'publish_pages', 页面已经加载但是我们发现每个页面返回的 "can_post" 值设置为 "false",当列出页面的用户是管理员时。经过一些挖掘,我们发现这是因为启用了 "Disable posts by other people on the Page" 选项。
所以问题是:启用此选项后,是否有办法 post 进入这些页面,因为管理员不想让访问者 post在他的页面上 ?
编辑:
由于某些人可能不太清楚,我添加了更多关于该过程的信息,我认为这是显而易见的:
- 所以除了正确的权限
- 我们要求长期有效的用户访问令牌
- 然后用它来获取永久页面访问令牌,所以我们可以post作为"Page"
但是问题出现在我们从一开始就进入这个阶段之前,当用户接受权限时,当我们列出他的页面时,这些页面被列为 "cannot post on it",其他人说它是允许post就可以了。由于这种差异,我们发现它是由我上面谈到的选项引起的:"Disable posts by other people on the Page"
此致
We have setelled the right permissions 'manage_pages', 'publish_pages', and the pages are loaded but we found out that "can_post" value returned with each page is set to "false", when the user listing the pages is the admin. After some digging we found out that it's because of "Disable posts by other people on the Page" option that was enabled.
那是因为您正在使用管理员的用户令牌来请求他们的页面列表 - 作为用户,页面设置不允许他们post。
去请求 {page-id}?fields=can_post
使用页面的页面访问令牌...等等,现在说它可以 post,因为使用页面令牌允许应用程序 post 作为页面。
我们已经创建了一个 Facebook 应用程序,它自动post将文章发送到由其管理员关联到我们应用程序的页面。
我们已经设置了正确的权限 'manage_pages', 'publish_pages', 页面已经加载但是我们发现每个页面返回的 "can_post" 值设置为 "false",当列出页面的用户是管理员时。经过一些挖掘,我们发现这是因为启用了 "Disable posts by other people on the Page" 选项。
所以问题是:启用此选项后,是否有办法 post 进入这些页面,因为管理员不想让访问者 post在他的页面上 ?
编辑:
由于某些人可能不太清楚,我添加了更多关于该过程的信息,我认为这是显而易见的:
- 所以除了正确的权限
- 我们要求长期有效的用户访问令牌
- 然后用它来获取永久页面访问令牌,所以我们可以post作为"Page"
但是问题出现在我们从一开始就进入这个阶段之前,当用户接受权限时,当我们列出他的页面时,这些页面被列为 "cannot post on it",其他人说它是允许post就可以了。由于这种差异,我们发现它是由我上面谈到的选项引起的:"Disable posts by other people on the Page"
此致
We have setelled the right permissions 'manage_pages', 'publish_pages', and the pages are loaded but we found out that "can_post" value returned with each page is set to "false", when the user listing the pages is the admin. After some digging we found out that it's because of "Disable posts by other people on the Page" option that was enabled.
那是因为您正在使用管理员的用户令牌来请求他们的页面列表 - 作为用户,页面设置不允许他们post。
去请求 {page-id}?fields=can_post
使用页面的页面访问令牌...等等,现在说它可以 post,因为使用页面令牌允许应用程序 post 作为页面。