Facebook.OAuthContext.OAuthContext C# (CSharp) Method

OAuthContext() public method

Initializes a new OAuthContext object with specified appId and appSecret.
either or is null.
public OAuthContext ( [ appId, [ appSecret ) : System
appId [ Facebook application id.
appSecret [ Application secret.
return System
        public OAuthContext([NotNull] string appId, [NotNull] string appSecret)
        {
            if (String.IsNullOrEmpty(appId))
                throw FacebookApi.Nre("appId");
            if (String.IsNullOrEmpty(appSecret))
                throw FacebookApi.Nre("appSecret");

            _appId = appId;
            _appSecret = appSecret;
        }