Facebook C# SDK and Access Token

后端 未结 3 1613
长发绾君心
长发绾君心 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:23

    When you say "yourself" do you mean the app or your actual facebook user?

    If it's just your app, you can get an access token by POSTing to this URL:

    https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=APP_ID_HERE&client_secret=APP_SECRET_HERE

    You can use this access token to perform actions on behalf of your users if they have authorized your app to do so.

提交回复
热议问题