ios - Azure 移动应用 Facebook 身份验证停止工作

标签 ios azure facebook-graph-api azure-web-app-service

我使用 Azure 移动应用.NET SDK 作为我的 iOS 应用的后端。通过 Facebook 完成身份验证。昨天,Facebook 的身份验证突然失败(后端或应用程序均未更改代码)。 iOS 客户端应用程序内的登录是通过

完成的
self.client?.login(withProvider:"facebook", token: ["access_token" : FBSDKAccessToken.current().tokenString] ){ (user, error) in }

通过调用此函数,我在客户端上得到以下结果。

Error Domain=com.Microsoft.MicrosoftAzureMobile.ErrorDomain Code=-1302 "You do not have permission to view this directory or page."

通过检查 Azure 移动应用 的流日志,我发现后端通过调用 Facebook Graph API 返回了 Unauthorized 401.71

流媒体日志:

Microsoft.Azure.AppService.Authentication Verbose: 0 : Received request: POST https://XXXXXXXXXX.azurewebsites.net/.auth/login/facebook
'w3wp.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Skipped loading symbols.
'w3wp.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Skipped loading symbols. 
Microsoft.Azure.AppService.Authentication Verbose: 0 : Calling into external HTTP endpoint GET https://graph.facebook.com/oauth/access_token.
Microsoft.Azure.AppService.Authentication Information: 0 : Sending response: 401.71 Unauthorized

我已经尝试在 Azure 中克隆移动应用程序并创建新的 Facebook 应用程序,但没有成功。

最佳答案

对于受此问题影响的其他用户 - 我将引用 MSDN Thread 的官方答案

TL;DR 应用了修补程序 - 需要重新启动应用程序

** UPDATE 3/28/2017 ** We're in the process of rolling out a rapid hotfix for affected apps worldwide. The hotfix mechanism will require you to restart your app backend. You can do this using the Azure Portal, the Azure Management CLI, or the App Service Mobile Companion app for iOS and Android. Once restarted, please verify that your Facebook logins are working again.

West US: Hotfix applied. Please restart your app. Other Regions: Pending

关于ios - Azure 移动应用 Facebook 身份验证停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43064206/

相关文章:

ios - 登录到 Facebook 评论 iOS (swift) 没有响应

facebook - 无法发布带有标题的 Facebook 故事

ios - Interstitial Ads(iAd 和 Spritekit)出错

ios - 我怎样才能完全重新加载 View 以便 viewDidLoad 再次运行?

azure - Azure 应用服务上的 Flask Socket.io 400 错误代码

java - JAVA + Azure Functions 中的依赖注入(inject) (IoC)

c# - Facebook C# SDK + 获取用户的 LIKE

ios - UIActivityIndi​​catorView+AFNetworking 或 UIProgressView+AFNetworking

iOS 7,导航栏没有半透明......为什么更多选项卡看起来是半透明的?

python - Bcp 命令进入 Microsoft Azure