Facebook v2.0 Login with C# facebook sdk

帅比萌擦擦* 提交于 2019-12-11 08:14:59

问题


It looks like C# facebook SDK (https://github.com/facebook-csharp-sdk/facebook-csharp-sdk) still uses Login v1.0:

FacebookClient.OAuthResult.cs:

public partial class FacebookClient
{
    ...
    public virtual Uri GetDialogUrl(string dialog, object parameters)
    {
        ...
        sb.AppendFormat(isMobile ? "https://m.facebook.com/dialog/{0}?" : "https://www.facebook.com/dialog/{0}?", dialog);
    }
}

My question is: Will it be updated to https://www.facebook.com/v2.0/dialog/oauth?

Thanks, Yury


回答1:


There is an active branch at https://github.com/facebook-csharp-sdk/facebook-csharp-sdk/tree/graph-api-v2 that has been working on getting it to allow version based access to the API.

Try using that branch or subscribe to the open issue for Support for Graph 2.0.



来源:https://stackoverflow.com/questions/26399818/facebook-v2-0-login-with-c-sharp-facebook-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!