protected override void Initialize(RequestContext requestContext)
        {
            base.Initialize(requestContext);

            CodeVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;

            JavascriptSDKOptions Options = new JavascriptSDKOptions();
            Options.AppId = ConfigHelper.GetConfigurationSettingValue(FBAppIdLookupKey);
            Options.ChannelUrl = null;
            Options.CheckLoginStatus = true;
            Options.EnableCookies = true;
            Options.EnableLogging = true;
            Options.EnableOAuth2 = true;
            Options.ParseXFBML = true;

            FBScriptGenerator = new CodeGenerator(Options);
            fbService = new FacebookService();
        }
Esempio n. 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="Options"></param>
 public CodeGenerator(JavascriptSDKOptions Options)
 {
     Debug.Assert(null != Options);
     options = Options;
 }