Facebook C# SDK and Access Token

后端 未结 3 1616
长发绾君心
长发绾君心 2020-12-17 15:38

I\'d like to be able to authenticate myself (my profile, not just my app) on my own web application using the Facebook C# SDK. Using the Graph API, I can ge

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-17 16:36

    I dont know if this will work for you:

    using Facebook.Web;
    using Facebook;
    using System.Dynamic;
    
    var auth = new CanvasAuthorizer { Permissions = new[] { "user_about_me"} };
    
    if (auth.Authorize())
    {
    }
    

    and include this in the aspx:

    "/>
    

    good luck !!

提交回复
热议问题