protected function addFacebook()
	{
		// Get default Site Name
		$sitename = $this->getConfig('title.sitename');

		// Get value for title tag
		$title = $this->renderTitle();

		// Get value of description
		$description = ($this->description) ? $this->description : $this->getConfig('description');

		// Get Default values in config file
		$admins = $this->getConfig('facebook.admins');
		$page_id = $this->getConfig('facebook.page_id');
		$app_id = $this->getConfig('facebook.app_id');
		$image = $this->getConfig('facebook.image');

		// Check if option is active
		if ($this->getConfig('facebook.active'))
		{
			// Don't override a value set manually
			if (!array_key_exists('fb:page_id', $this->meta['property']))
			{
				$this->addOneMeta('property', 'fb:page_id', $page_id);
			}

			// Don't override a value set manually
			if (!array_key_exists('fb:app_id', $this->meta['property']))
			{
				$this->addOneMeta('property', 'fb:app_id', $app_id);
			}

			// Don't override a value set manually
			if (!array_key_exists('fb:admins', $this->meta['property']))
			{
				$this->addOneMeta('property', 'fb:admins', $admins);
			}

			// Don't override a value set manually + check if file exists
			if (File::isFile(public_path($image)) && !array_key_exists('og:image', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:image', $image);
			}

			// Don't override a value set manually
			if (!array_key_exists('og:url', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:url', URL::current());
			}

			// Don't override a value set manually
			if (!array_key_exists('og:type', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:type', 'website');
			}

			// Don't override a value set manually
			if (!array_key_exists('og:site_name', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:site_name', $sitename);
			}

			// Don't override a value set manually
			if (!array_key_exists('og:title', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:title', $title);
			}

			// Don't override a value set manually
			if (!array_key_exists('og:description', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:description', $description);
			}
		}

		// Option is inactive
		else
		{
			$this->killFacebook();
		}
	}
protected function addFacebook()
	{
		// Get default Site Name
		$sitename = $this->getConfig('title.sitename');

		// Get value for title tag
		$title = $this->renderTitle();

		// Get value of description
		$description = ($this->description) ? $this->description : $this->getConfig('description');

		// Get Default values in config file
		$admins = $this->getConfig('facebook.admins');
		$page_id = $this->getConfig('facebook.page_id');
		$app_id = $this->getConfig('facebook.app_id');
		$image = $this->getConfig('facebook.image');

		// Check if option is active
		if ($this->getConfig('facebook.active'))
		{
			// Don't override a value set manually
			if (!array_key_exists('fb:page_id', $this->meta['property']))
			{
				$this->addOneMeta('property', 'fb:page_id', $page_id);
			}

			// Don't override a value set manually
			if (!array_key_exists('fb:app_id', $this->meta['property']))
			{
				$this->addOneMeta('property', 'fb:app_id', $app_id);
			}

			// Don't override a value set manually
			if (!array_key_exists('fb:admins', $this->meta['property']))
			{
				$this->addOneMeta('property', 'fb:admins', $admins);
			}

			// Don't override a value set manually + check if file exists
			if (File::isFile(public_path($image)) && !array_key_exists('og:image', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:image', $image);
			}

			// Don't override a value set manually
			if (!array_key_exists('og:url', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:url', URL::current());
			}

			// Don't override a value set manually
			if (!array_key_exists('og:type', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:type', 'website');
			}

			// Don't override a value set manually
			if (!array_key_exists('og:site_name', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:site_name', $sitename);
			}

			// Don't override a value set manually
			if (!array_key_exists('og:title', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:title', $title);
			}

			// Don't override a value set manually
			if (!array_key_exists('og:description', $this->meta['property']))
			{
				$this->addOneMeta('property', 'og:description', $description);
			}
		}

		// Option is inactive
		else
		{
			$this->killFacebook();
		}
	}
protected function addFacebook ( ) { // Get default Site Name $ sitename = $ this -> getConfig ( 'title.sitename' ) ; // Get value for title tag $ title = $ this -> renderTitle ( ) ; // Get value of description $ description = ( $ this -> description ) ? $ this -> description : $ this -> getConfig ( 'description' ) ; // Get Default values in config file $ admins = $ this -> getConfig ( 'facebook.admins' ) ; $ page_id = $ this -> getConfig ( 'facebook.page_id' ) ; $ app_id = $ this -> getConfig ( 'facebook.app_id' ) ; $ image = $ this -> getConfig ( 'facebook.image' ) ; // Check if option is active if ( $ this -> getConfig ( 'facebook.active' ) ) { // Don't override a value set manually if ( ! array_key_exists ( 'fb:page_id' , $ this -> meta [ 'property' ] ) ) { $ this -> addOneMeta ( 'property' , 'fb:page_id' , $ page_id ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'fb:app_id' , $ this -> meta [ 'property' ] ) ) { $ this -> addOneMeta ( 'property' , 'fb:app_id' , $ app_id ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'fb:admins' , $ this -> meta [ 'property' ] ) ) { $ this -> addOneMeta ( 'property' , 'fb:admins' , $ admins ) ; } // Don't override a value set manually + check if file exists if ( File :: isFile ( public_path ( $ image ) ) && ! array_key_exists ( 'og:image' , $ this -> meta [ 'property' ] ) ) { $ this -> addOneMeta ( 'property' , 'og:image' , $ image ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'og:url' , $ this -> meta [ 'property' ] ) ) { $ this -> addOneMeta ( 'property' , 'og:url' , URL :: current ( ) ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'og:type' , $ this -> meta [ 'property' ] ) ) { $ this -> addOneMeta ( 'property' , 'og:type' , 'website' ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'og:site_name' , $ this -> meta [ 'property' ] ) ) { $ this -> addOneMeta ( 'property' , 'og:site_name' , $ sitename ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'og:title' , $ this -> meta [ 'property' ] ) ) { $ this -> addOneMeta ( 'property' , 'og:title' , $ title ) ; } // Don't override a value set manually if ( ! array_key_exists ( 'og:description' , $ this -> meta [ 'property' ] ) ) { $ this -> addOneMeta ( 'property' , 'og:description' , $ description ) ; } } // Option is inactive else { $ this -> killFacebook ( ) ; } }
Register Open Graph meta tags.

@return void
Register Open Graph meta tags .