An image which should represent your object within the graph. Use images that are at least 1200 x 630 pixels for the best display on high resolution devices. At the minimum, you should use images that are 600 x 315 pixels to display link page posts with larger images. If your image is smaller than 600 x 315 pixels, it will still display in the link page post, but the size will be much smaller. Try to keep your images as close to 1.91:1 aspect ratio as possible to display the full image in News Feed without any cropping. The minimum size of an image is 200 x 200. If you try to use an image smaller than this you will see an error in the URL Debugger.
Inheritance: OpenGraphSizedMedia
        /// <summary>
        /// Initializes a new instance of the <see cref="OpenGraphRestaurantMenuItem" /> class.
        /// </summary>
        /// <param name="title">The title of the object as it should appear in the graph.</param>
        /// <param name="image">The default image.</param>
        /// <param name="sectionUrl">The URL to the page about the section this menu item is from. This URL must contain profile meta tags <see cref="OpenGraphResterauntMenuSection"/>.</param>
        /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
        /// <exception cref="System.ArgumentNullException">location is <c>null</c>.</exception>
        public OpenGraphRestaurantMenuItem(string title, OpenGraphImage image, string sectionUrl, string url = null)
            : base(title, image, url)
        {
            if (sectionUrl == null) { throw new ArgumentNullException("sectionUrl"); }

            this._sectionUrl = sectionUrl;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="OpenGraphRestaurantMenuSection" /> class.
        /// </summary>
        /// <param name="title">The title of the object as it should appear in the graph.</param>
        /// <param name="image">The default image.</param>
        /// <param name="menuUrl">The URL to the page about the menu this section is from. This URL must contain profile meta tags <see cref="OpenGraphResterauntMenu"/>.</param>
        /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
        /// <exception cref="System.ArgumentNullException">location is <c>null</c>.</exception>
        public OpenGraphRestaurantMenuSection(string title, OpenGraphImage image, string menuUrl, string url = null)
            : base(title, image, url)
        {
            if (menuUrl == null) { throw new ArgumentNullException("menuUrl"); }

            this._menuUrl = menuUrl;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="OpenGraphResterauntMenu" /> class.
        /// </summary>
        /// <param name="title">The title of the object as it should appear in the graph.</param>
        /// <param name="image">The default image.</param>
        /// <param name="resterauntUrl">The URL to the page about the resteraunt who wrote the menu. This URL must contain profile meta tags <see cref="OpenGraphResteraunt"/>.</param>
        /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
        /// <exception cref="System.ArgumentNullException">location is <c>null</c>.</exception>
        public OpenGraphResterauntMenu(string title, OpenGraphImage image, string resterauntUrl, string url = null)
            : base(title, image, url)
        {
            if (resterauntUrl == null)
            {
                throw new ArgumentNullException("resterauntUrl");
            }

            this._resterauntUrl = resterauntUrl;
        }
Example #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OpenGraphResteraunt" /> class.
        /// </summary>
        /// <param name="title">The title of the object as it should appear in the graph.</param>
        /// <param name="image">The default image.</param>
        /// <param name="location">The location of the business.</param>
        /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
        /// <exception cref="System.ArgumentNullException">location is <c>null</c>.</exception>
        public OpenGraphResteraunt(string title, OpenGraphImage image, OpenGraphLocation location, string url = null)
            : base(title, image, url)
        {
            if (location == null)
            {
                throw new ArgumentNullException("location");
            }

            this._location = location;
        }
Example #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OpenGraphMusicSong"/> class.
        /// </summary>
        /// <param name="title">The title of the object as it should appear in the graph.</param>
        /// <param name="image">The default image.</param>
        /// <param name="albumUrls">The URL's to the pages about the album the song comes from. This URL's must contain profile meta tags <see cref="OpenGraphMusicAlbum"/>.</param>
        /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
        public OpenGraphMusicSong(string title, OpenGraphImage image, IEnumerable<string> albumUrls, string url = null)
            : base(title, image, url)
        {
            if (albumUrls == null)
            {
                throw new ArgumentNullException("albumUrls");
            }

            this._albumUrls = albumUrls;
            this.AlbumDisc = 1;
            this.AlbumTrack = 1;
        }
Example #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OpenGraphBusiness" /> class.
        /// </summary>
        /// <param name="title">The title of the object as it should appear in the graph.</param>
        /// <param name="image">The default image.</param>
        /// <param name="contactData">The contact data for the business.</param>
        /// <param name="location">The location of the business.</param>
        /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
        /// <exception cref="System.ArgumentNullException">contactData or location is <c>null</c>.</exception>
        public OpenGraphBusiness(string title, OpenGraphImage image, OpenGraphContactData contactData, OpenGraphLocation location, string url = null)
            : base(title, image, url)
        {
            if (contactData == null)
            {
                throw new ArgumentNullException("contactData");
            }

            if (location == null)
            {
                throw new ArgumentNullException("location");
            }

            this._location = location;
            this._contactData = contactData;
        }
Example #7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OpenGraphProductItem" /> class.
        /// </summary>
        /// <param name="title">The title of the object as it should appear in the graph.</param>
        /// <param name="image">The default image.</param>
        /// <param name="availability">The availability of the item, one of 'instock', 'oos', or 'pending'.</param>
        /// <param name="condition">The condition of the item, one of 'new', 'refurbished', or 'used'.</param>
        /// <param name="prices">The prices of the item.</param>
        /// <param name="retailerItemId">The retailer's ID for the item.</param>
        /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
        /// <exception cref="System.ArgumentNullException">prices or retailerItemId is <c>null</c>.</exception>
        public OpenGraphProductItem(
            string title,
            OpenGraphImage image,
            OpenGraphAvailability availability,
            OpenGraphCondition condition,
            IEnumerable<OpenGraphCurrency> prices,
            string retailerItemId,
            string url = null)
            : base(title, image, url)
        {
            if (prices == null) { throw new ArgumentNullException("prices"); }
            if (retailerItemId == null) { throw new ArgumentNullException("retailerItemId"); }

            this._availability = availability;
            this._condition = condition;
            this._prices = prices;
            this._retailerItemId = retailerItemId;
        }
Example #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OpenGraphMetadata" /> class.
        /// </summary>
        /// <param name="title">The title of the object as it should appear in the graph.</param>
        /// <param name="image">The default image.</param>
        /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
        /// <exception cref="System.ArgumentNullException">title or image is <c>null</c>.</exception>
        public OpenGraphMetadata(string title, OpenGraphImage image, string url = null)
        {
            if (title == null)
            {
                throw new ArgumentNullException("title");
            }

            if (image == null)
            {
                throw new ArgumentNullException("image");
            }

            if (url == null)
            {
                url = HttpContext.Current.Request.Url.ToString();
            }

            this._title = title;
            this._url = url;
            this._media = new List<OpenGraphMedia>();
            this._media.Add(image);
        }
Example #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenGraphProductGroup" /> class.
 /// </summary>
 /// <param name="title">The title of the object as it should appear in the graph.</param>
 /// <param name="image">The default image.</param>
 /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
 public OpenGraphProductGroup(string title, OpenGraphImage image, string url = null)
     : base(title, image, url)
 {
 }
Example #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenGraphFitnessCourse" /> class.
 /// </summary>
 /// <param name="title">The title of the object as it should appear in the graph.</param>
 /// <param name="image">The default image.</param>
 /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
 public OpenGraphFitnessCourse(string title, OpenGraphImage image, string url = null)
     : base(title, image, url)
 {
 }
Example #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenGraphBook"/> class.
 /// </summary>
 /// <param name="title">The title of the object as it should appear in the graph.</param>
 /// <param name="image">The default image.</param>
 /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
 public OpenGraphBook(string title, OpenGraphImage image, string url = null)
     : base(title, image, url)
 {
 }
Example #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenGraphVideoEpisode"/> class.
 /// </summary>
 /// <param name="title">The title of the object as it should appear in the graph.</param>
 /// <param name="image">The default image.</param>
 /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
 public OpenGraphVideoEpisode(string title, OpenGraphImage image, string url = null)
     : base(title, image, url)
 {
 }
Example #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenGraphBooksBook" /> class.
 /// </summary>
 /// <param name="title">The title of the object as it should appear in the graph.</param>
 /// <param name="image">The default image.</param>
 /// <param name="isbn">The books unique ISBN number.</param>
 /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
 public OpenGraphBooksBook(string title, OpenGraphImage image, string isbn, string url = null)
     : base(title, image, url)
 {
     this._isbn = isbn;
 }
Example #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenGraphBooksGenre"/> class.
 /// </summary>
 /// <param name="title">The title of the object as it should appear in the graph.</param>
 /// <param name="image">The default image.</param>
 /// <param name="canonicalName">THe genres canonical name. Only one of the following names is allowed Adventure, Children's Fiction, Drama, Erotica, Essays, Fantasy, Gay &amp; Lesbian, Graphic Novels, Historical Fiction, Horror, Fiction &amp; Literature, Mystery, Mythology &amp; Folklore, Poetry, Religious &amp; Inspiratonal, Rhetoric &amp; Critcism, Romance, Satire &amp; Humor, Science Fiction, Thrillers &amp; Suspense, Westerns, Women&#039;s Fiction, Young Adult Fiction, Biography &amp; Memoir, Current Affairs &amp; Politics, Genealogy, Geography, History, History of the Ancient World, History of Africa, History of Asia, History of Europe, History of North America, History of South America, Travel, Bibliographies, Children&#039;s Non-fiction, Computer Science, Encyclopedias, General Collections, Gift Books, Information Sciences, Journalism &amp; Publishing, Magazines &amp; Journals, Manuscripts &amp; Rare Books, Epistemology, Ethics, Logic, Metaphysics, Philosophy, Parapsychology &amp; Occultism, Psychology, Self-help, Bible, Comparative Religions, Natural Theory, Theology, Business, Customs &amp; Etiquette, Economics, Education, Finance, Gay &amp; Lesbian Non-Fiction, Gender Studies, Law, Political Science, Social Sciences, Social Services, Statistics, True Crime, English &amp; Old English, French, German, Greek, Italian, Language, Latin, Linguistics, Other Languages, Portugese, Spanish, Astronomy, Chemistry, Earth Sciences, Life Sciences, Mathematics, Paleontology &amp; Paleozoology, Physics, Plants Sciences, Zoology, Agriculture, Chemical Engineering, Engineering &amp; Opera?ons, Management, Manufacturing, Medical Sciences, Technology, Cooking &amp; Cookbooks, Gardening, Home Decorating, Home Economics, Parenting, Pets, Architecture, Design, Drawing, Fine Art, Gardening, Graphic Art, Music, Painting, Performing Arts, Photography, Sculpture, Games, Fitness, Health and Sports.</param>
 /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
 public OpenGraphBooksGenre(string title, OpenGraphImage image, string canonicalName, string url = null)
     : base(title, image, url)
 {
     this._canonicalName = canonicalName;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenGraphGameAchievement" /> class.
 /// </summary>
 /// <param name="title">The title of the object as it should appear in the graph.</param>
 /// <param name="image">The default image.</param>
 /// <param name="points">The relative importance and scarcity of the achievement.</param>
 /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
 public OpenGraphGameAchievement(string title, OpenGraphImage image, int points, string url = null)
     : base(title, image, url)
 {
     this._points = points;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenGraphMusicRadioStation"/> class.
 /// </summary>
 /// <param name="title">The title of the object as it should appear in the graph.</param>
 /// <param name="image">The default image.</param>
 /// <param name="url">The canonical URL of the object, used as its ID in the graph.</param>
 public OpenGraphMusicRadioStation(string title, OpenGraphImage image, string url = null)
     : base(title, image, url)
 {
 }