OnCreate中:
MainActivity (auth.GetUI (this));
Login();
https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code

我在nuget上安装了xamarin.OAuth。这是代码:
public void Login()
{
auth = new OAuth2Authenticator (
clientId: "3b5a1",
scope: "",
authorizeUrl: new Uri ("https://api.instagram.com/oauth/authorize"),
redirectUrl: new Uri ("http://Instagramcallback.com/callback")
);
auth.Completed+= (sender, e) => {
//DismissViewController(true,null);
if(e.IsAuthenticated)
{
}
else
{
// errors be showing at here
}
};
}

失败:我没有看到任何弹出窗口显示在屏幕上。
答案 0 :(得分:1)
获得
For Each cn In ThisWorkbook.Connections
If cn = "Power Query – Employee" Then cn.Refresh
Next cn
End Sub
对象后,您没有显示登录用户界面(请参阅以下链接中的指南):
auth
(GetUI方法在iOS上返回PresentViewController (auth.GetUI (), true, null);
)
以下代码用于显示OnCreate的用户界面:
UINavigationControllers
https://github.com/xamarin/Xamarin.Auth/blob/master/GettingStarted.md