2015-10-28 34 views
0

我正在使用xamarin開發一個應用程序,它需要與Google和FaceBook連接。我試圖用OAuth2Authenticator使用下面的代碼來驗證用戶:在Google上使用Google和FaceBook的OAuth2Authenticator

var auth = new OAuth2Authenticator (
       clientId: "myId.apps.googleusercontent.com", 
       clientSecret: "mysecred", 
       scope: "document", 
       authorizeUrl: new Uri ("https://accounts.google.com/o/oauth2/auth"), 
       redirectUrl: new Uri ("myredirect:oob"), 
       accessTokenUrl: new Uri ("https://accounts.google.com/o/oauth2/token"), 
       getUsernameAsync: null 
      ); 

當我試圖利用該方法auth.GetUI()它拋出不支持

錯誤「WebAuthenticator,以便獲得url這個平臺「。

在Mac應用程序中是否有其他方式連接Gmail或Facebook?

回答

相關問題