Пример #1
0
        public MainFacebook()
        {

            VersionManager manager = new VersionManager(); 

            FacebookSettings settings = new FacebookSettings
            {
                ClientId = this.client_id,
                RedirectUri = this.redirect_uri, 
                Scope = new com.OB.Facebook.Parameters.Scope
                {
                    Premissions = com.OB.Facebook.Parameters.Premissions.PremissionList.getAllRigts() 
                }
            };


            //Console.WriteLine(settings.getConnectionUrl());
        }
Пример #2
0
        public FacebookSettings(FacebookSettings settings)
        {
            if (settings == null)
                throw new FacebookSettingsException("Settings cannot be null");

            this.ClientId = settings.ClientId;

            this.RedirectUri = settings.RedirectUri;

            this.State = settings.State; 

            this.Scope = settings.Scope; 
        }