Facebook C# sdk - Does the FacebookApp.Get(“me”) access to Facebook or just to cookie?

为君一笑 提交于 2020-01-16 01:11:12

问题


I'm using the Facebook c# sdk on a new project and i've a question. In the follow code:

var app = new FacebookApp();
app.AppId = "myappid";
app.AppSecret = "theappsecretcode";
if (app.Session != null)
{
dynamic me = app.Get("me");
}

When i'm calling the method Get of FacebookApp, i'm i just accessing to the Cookie saved when i've authenticated with Facebook or i'm connecting to the Facebook and getting the values?

I'm asking because i'm saving the values of the user in a session when i authenticate with the Facebook, but if the method Get doesn't access to Facebook and just to the cookie, then i'll stop using the session and start to access to the Facebook cookie instead (i haven't understand yet if the cookie save some information about the user, but i've searched in "Watch" window in VS and i haven't found anything)

Thanks


回答1:


I've examined source code of FacebookApp and FacebookAppbase classes and have found out that method Get is always accessing the Facebook (there is no any cache).



来源:https://stackoverflow.com/questions/4730468/facebook-c-sharp-sdk-does-the-facebookapp-getme-access-to-facebook-or-just

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