我使用Facebook的C#-Sdk v5.0.3建立在vb.net非帆布web表单的应用程序,我无法交换回来的Facebook code的access_token。有没有人有一个例子(C#或vb.net),我可以看看?
I am using The Facebook-C#-Sdk v5.0.3 to create a non-canvas webforms app in vb.net and i am having trouble exchanging the returned facebook code for the access_token. Does anyone have an example (C# or vb.net) that I can look at?
感谢真棒社区#1!
试试这个:
var app = new FacebookClient(FacebookContext.Current.AppId, FacebookContext.Current.AppSecret);
var accessToken = app.AccessToken
或者这样的:
or this:
var app = new FacebookClient(new Authorizer().Session.AccessToken);
var accessToken = app.AccessToken