Facebook登录具有读取和发布(写入)权限

时间:2016-02-11 01:45:33

标签: android facebook

我正在使用# connect to the RootDSE - the yellow pages of Active Directory $RootDSE = [adsi]"LDAP://RootDSE" # grab the distinguished name of the forest-wide configuration naming context $ConfigDN = $RootDSE.configurationNamingContext.ToString() # Create a new directory search $ConfigSearcher = [adsisearcher]"" # Configure the searcher to look for domain cross-ref's $ConfigSearcher.SearchRoot = "LDAP://$ConfigDN" $ConfigSearcher.Filter = "(&(objectClass=crossRef)(systemFlags=3))" [void]$ConfigSearcher.PropertiesToLoad.AddRange(@('dnsRoot','nCName','nETBIOSName')) $Domains = $ConfigSearcher.FindAll() # Grab only the three most interesting pieces of info # The fully qualified DNS name, e.g. domain.forest.tld # The NetBIOS shortname, e.g. DOMAIN # The distinguished name to the domain root, e.g DC=domain,DC=forest,DC=tld $Domains = $Domains |Select @{Name="DomainFQDN";Expression={$_.Properties['dnsRoot']}},@{Name='NetBIOSName';Expression={$_.Properties['nETBIOSName']}},@{Name='DN';Expression={$_.Properties['nCName']}} 类在Android中尝试Facebook登录。我只想在登录期间获得读写权限。我面临的问题是,如果我尝试

LoginManager

如果没有安装Facebook App,Facebook WebView加载,我输入凭据,我看到两个权限屏幕(一个用于读取,一个用于写入),然后再次登录屏幕。基本上,这会产生糟糕的用户体验。

之所以发生这种情况,是因为loginWithxxxPermissions()方法都启动了新的登录流程。但实际上,它不应该为已登录的用户显示登录屏幕。

我无法找到任何传递accessToken的方法让方法知道,新的权限查询是针对已经登录的用户。

任何人,请帮助我或建议其他替代方案,但要求很明确。我需要读/写权限而不显示登录屏幕两次。

0 个答案:

没有答案