我们在Facebook和页面上有一个应用程序连接到它。还有一个网站。网站上有很多相册,我们想转移到Facebook应用页面。此外,我们希望为网站添加功能,当用户在那里上传新相册时,它也会在Facebook应用页面上创建。这是唯一可以上传照片的地方 - 没有其他FB页面或用户,只有我们的应用程序页面。
到目前为止,根据我在Facebook文档中看到的内容,我们似乎需要两个特殊权限:manage_pages
和publish_actions
。
我试图在我们的FB应用程序中请求这些permisssions。屏幕截图附上,显示用户如何在我们的网站上创建明矾,我写了一个注释,我们需要这些照片的权限也上传到FB。
FB拒绝了权限查询,其答案如下:Please show the completed post on the pages timeline
。可能意味着,他们希望在屏幕上播放,在网站上创建专辑后,如何在FB应用页面时间轴上显示相册。
我真的不明白,如果我们没有这方面的必要权限,这是如何显示的(否则我们不会要求它们)。也许他们的意思是专辑应该手工制作,然后添加到截屏视频中,好像它是以编程方式创建的,只是为了让我们的内涵清晰明白?
所以,基本上,这里有两个问题:
manage_pages
和publish_actions
是否正确且只需要创建相册/上传照片到FB应用页面的权限?@CBroe的更新,我们在评论中的讨论。 我按以下方式执行用户登录:
const loginOptions = {
scope: 'publish_pages,manage_pages',
return_scopes: true
};
$(document).on('click', '.facebook-login', function(e) {
FB.login(function(response) {
//...
}, loginOptions);
});
我没有被问及登录模式窗口中的权限。在此之后,如果我使用me/permissions
检查我的权限,我看到,授予了所需的权限。但是,当我尝试使用pageId + '/albums'
的帖子查询创建相册时,收到以下消息:(#10) Application does not have permission for this action
。
顺便说一下,我不是在生产应用程序上测试它,而是测试它的测试版本。但我认为它应该仍然有用。
答案 0 :(得分:1)
You misunderstood the process. Any user with a role in your app - admin, developer, tester - can be asked for any permission without review; explicitly so that you can build and test your app properly, before you submit it for review.
This is also an - intended - "loophole" around the review process, if your app is not intended for use by the general public. So if you only want this app to post to your page in the name of the page (the album and photos will appear as created/uploaded and owned by the page, not the Facebook user profile belonging to the user of your app) - then only you, or a page admin that you add to one of the roles in your app, needs to grant those permissions, and therefor you don't even have to get it reviewed. (Not at least regarding those two permissions, for the intended purpose. If your app requests other permissions from general users for a different purpose, those still need to be reviewed.)
This is explained in the App Development FAQ: My app is only used by a small number of people, who are all listed in the Role section of the App Dashboard - do I need to go through Login Review?
(If you want the albums created and the photos to be posted in the name of the FB user profile of your app users, then things are different - then you need to get the functionality reviewed of course. Not sure if users can even create albums on pages though, or whether they are only able to post to existing ones, you'd have to check.)