(Facebook C# SDK) Problem getting an access token

前端 未结 3 1887
面向向阳花
面向向阳花 2021-01-22 12:01

I\'m quite new to the Facebook C# SDK (5.0.3) which probablly is the reason for this question. Basically, I\'m trying to get the current users profile, email, photo, etc etc. B

3条回答
  •  忘掉有多难
    2021-01-22 12:46

    I think the problem is that you never get a User Access Token you only get a App Access Token. In a standalone app you need to use the oAuth Dialog. The simplest way to do this is using the Javascript SDK.

    Facebook C# SDK has a sample that shows you how to do this. You could download the whole sample app (CSASPNETWebsite) as a startingpoint.

提交回复
热议问题