Facebook App登录时如何设置默认受众? [英] How to set default audience when Facebook App login?

查看:64
本文介绍了Facebook App登录时如何设置默认受众?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Facebook上制作了照片共享应用程序;使用#myAppSharing搜索按应用共享的照片人.它正在运行,但是找不到带有#myAppSharing标签的照片.因为当用户使用FB Auth2.0登录时,应用会询问权限;并将默认受众群体设置为朋友".因此,我无法在公共场所搜索#myAppSharing.

I make an Photo Sharing App on facebook; It's use #myAppSharing to search Photo people share by app. It's running now but I can't find any photo with hashtag #myAppSharing. Because when user login with FB Auth2.0, app ask permision; and set default audience to "Friend". So, I can't search #myAppSharing in public.

如何将默认受众群体设置为公共"?

注意:我这样使用Javascript SDK:

note: I use Javascript SDK like this:

FB.login(function(response){
        console.log(response);
        switch (response.status) {
            case 'connected':
                fbAuth = response;//save data                   
                state = new State('#upload');
                state.active();
                break;
            default:
                console.log('cannot connect Facebook account');
                break;
        }
    },{scope: 'email,publish_actions',display:'popup'});// <-- maybe set audience here or where?

推荐答案

研究了几个小时,我发现

Research for hours, I found here with the same problem. Solution is setting up for app, answer base @CBroe:

您可以在应用设置的权限"标签上找到它. (虽然 指定的权限仅用于通过应用程序中心登录, 但是默认活动隐私适用于所有登录名.)

You find it on the "Permissions" tab in your app settings. (While the permissions specified there are only for login through the app center, the Default Activity Privacy however is for all logins.)

非常感谢@Broe!

这篇关于Facebook App登录时如何设置默认受众?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆