문제

I'm using the C# Facebook SDK for Windows & Windows Phone on Windows Phone 8 and trying to use the LoginWithApp approach:

public void Authenticate()
{
    SessionStorage.Remove();

    var client = new FacebookSessionClient(this.appId);
    client.LoginWithApp("basic_info,read_stream,read_friendlist", "custom_state_string");
}

If I use the above code, it works fine in the emulator using the Login Simulator, but on a physical device I always get the following error response:

"(No connection to facebook - #2002) Connection failed: Unable to communicate with facebook in order to get the access token"

However, this can't be a simple communication problem because if I remove the read_friendlist permission it works every time.

Can anyone explain what's going on and how to fix this, please?

도움이 되었습니까?

해결책

read_friendlist should be read_friendlists with an S on the end.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top