1
오늘 아침부터 Facebook SDK는 더 이상 Facebook 앱으로 로그인 할 수없는 것 같습니다. C# SDK에있는 FacebookSessionClient.LoginWithApp() 메소드를 호출하면 Facebook이 열리고 Facebook 웹 사이트 로그인으로 웹 프레임이 열립니다. 웹 프레임에 자격증이 채워지면 앱이 원래 앱에 콜백을 보내지 않으므로 더 이상 Facebook에 로그인 할 수 없습니다.Windows Phone 8 Facebook LoginWithApp은 더 이상 작동하지 않습니다
두 장치에서이 테스트를 거쳤습니다. 둘 다 작동하지 않습니다.
다른 사람이이 문제가 발생하거나 해결책과 관련하여 알려진 문제입니까?
이
내 RelayCommand 메소드를 호출public RelayCommand LoginButton
{
get
{
return _loginButton = _loginButton ??
new RelayCommand(() =>
{
var fbSessionClient = new FacebookSessionClient("app_id");
fbSessionClient.LoginWithApp("email,basic_info,user_friends", "secret_string");
});
}
}
내 UriMapperBase 처리기
class FacebookAppAuthenticationHelper : UriMapperBase
{
public override Uri MapUri(Uri uri)
{
return new LoginViewModel().MapUri(uri);
}
}
내 페이스 북 URI 콜백 핸들러
public Uri MapUri(Uri uri)
{
// if URI is a facebook login response, handle the deep link (once per invocation)
if (AppAuthenticationHelper.IsFacebookLoginResponse(uri))
{
FacebookSession session = new FacebookSession();
try
{
session.ParseQueryString(HttpUtility.UrlDecode(uri.ToString()));
// Handle success case
FacebookAuthorized = true;
// do something with the custom state parameter
if (session.State != "secret_string")
{
//nop
}
else
{
// save the token and continue (token is retrieved and used when the app is lauched)
FacebookSettings.AccessToken = session.AccessToken;
FacebookSettings.FacebookId = session.FacebookId;
FacebookSettings.TokenExpires = session.Expires;
}
}
catch (Facebook.FacebookOAuthException)
{
if (!this.facebookLoginHandled)
{
// Handle error case
this.facebookLoginHandled = true;
// return to a different uri
FacebookSettings.FacebookId = null;
FacebookSettings.AccessToken = null;
FacebookSettings.TokenExpires = DateTime.MinValue;
}
}
FacebookSettings.Save();
return new Uri("/View/MainPage.xaml", UriKind.Relative);
}
// by default, navigate to the requested uri
return uri;
}
코드를 공유 할 수 있습니까? – bfontaine
내가 말한 것처럼 내 코드를 추가했지만 오늘 아침에 작업이 중단되었습니다. 지난 주 이후로이 코드를 변경하지 않았습니다. – Meryn