Skip to content

Commit

Permalink
Updated fields constants - now based on documentation for v2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Apr 28, 2018
1 parent b66799a commit 17481e6
Show file tree
Hide file tree
Showing 9 changed files with 339 additions and 148 deletions.
12 changes: 7 additions & 5 deletions src/Skybrud.Social.Facebook/Constants/FacebookAlbumFields.cs
@@ -1,14 +1,16 @@
using Skybrud.Social.Facebook.Fields;
using Skybrud.Social.Facebook.Fields;
using Skybrud.Social.Facebook.Models.Albums;

namespace Skybrud.Social.Facebook.Constants {

/// <summary>
/// Static class with constants for the fields available for a Facebook album. The class is auto-generated and based
/// on the fields listed in the Facebook Graph API documentation. Not all fields may have been mapped for the
/// implementation in Skybrud.Social.
/// Static class with constants for the fields available for a Facebook album (<see cref="FacebookAlbum" />).
///
/// The class is auto-generated and based on the fields listed in the Facebook Graph API documentation. Not all
/// fields may have been mapped for the implementation in Skybrud.Social.
/// </summary>
/// <see>
/// <cref>https://developers.facebook.com/docs/graph-api/reference/v2.8/album</cref>
/// <cref>https://developers.facebook.com/docs/graph-api/reference/v2.12/album</cref>
/// </see>
public static class FacebookAlbumFields {

Expand Down
64 changes: 49 additions & 15 deletions src/Skybrud.Social.Facebook/Constants/FacebookApplicationFields.cs
@@ -1,14 +1,17 @@
using Skybrud.Social.Facebook.Fields;
using Skybrud.Social.Facebook.Fields;
using Skybrud.Social.Facebook.Models.Applications;

namespace Skybrud.Social.Facebook.Constants {

/// <summary>
/// Static class with constants for the fields available for a Facebook application. The class is auto-generated and
/// based on the fields listed in the Facebook Graph API documentation. Not all fields may have been mapped for the
/// implementation in Skybrud.Social.
/// Static class with constants for the fields available for a Facebook application (<see
/// cref="FacebookApplication" />).
///
/// The class is auto-generated and based on the fields listed in the Facebook Graph API documentation. Not all
/// fields may have been mapped for the implementation in Skybrud.Social.
/// </summary>
/// <see>
/// <cref>https://developers.facebook.com/docs/graph-api/reference/v2.8/application</cref>
/// <cref>https://developers.facebook.com/docs/graph-api/reference/v2.12/application</cref>
/// </see>
public static class FacebookApplicationFields {

Expand All @@ -19,6 +22,11 @@ public static class FacebookApplicationFields {
/// </summary>
public static readonly FacebookField Id = new FacebookField("id");

/// <summary>
/// The maximum number ofAd Spaces allowed for each Audience Network supported platform.
/// </summary>
public static readonly FacebookField AnAdSpaceLimit = new FacebookField("an_ad_space_limit");

/// <summary>
/// The platforms associated with the app in the Audience Network product. Not enforced, but when present, it
/// can be used to provide the user with platform specific information for the app and its placements.
Expand Down Expand Up @@ -96,6 +104,11 @@ public static class FacebookApplicationFields {
/// </summary>
public static readonly FacebookField AuthReferralUserPerms = new FacebookField("auth_referral_user_perms");

/// <summary>
/// Business owner of this app.
/// </summary>
public static readonly FacebookField Business = new FacebookField("business");

/// <summary>
/// Indicates whether the app uses fluid or settable height values for Canvas.
/// </summary>
Expand Down Expand Up @@ -176,6 +189,11 @@ public static class FacebookApplicationFields {
/// </summary>
public static readonly FacebookField Description = new FacebookField("description");

/// <summary>
/// The ID for the corresponding audience network financial entity.
/// </summary>
public static readonly FacebookField FinancialId = new FacebookField("financial_id");

/// <summary>
/// Webspace created with one of our hosting partners for this app.
/// </summary>
Expand Down Expand Up @@ -211,6 +229,16 @@ public static class FacebookApplicationFields {
/// </summary>
public static readonly FacebookField IphoneAppStoreId = new FacebookField("iphone_app_store_id");

/// <summary>
/// Test if viewer is one of admins of this app.
/// </summary>
public static readonly FacebookField IsViewerAdmin = new FacebookField("is_viewer_admin");

/// <summary>
/// App latest sdk version.
/// </summary>
public static readonly FacebookField LatestSdkVersion = new FacebookField("latest_sdk_version");

/// <summary>
/// A link to the app on Facebook.
/// </summary>
Expand Down Expand Up @@ -257,7 +285,7 @@ public static class FacebookApplicationFields {
public static readonly FacebookField Name = new FacebookField("name");

/// <summary>
/// The string appended to <code>apps.facebook.com/</code> to navigate to the app's canvas page.
/// The string appended to <c>apps.facebook.com/</c> to navigate to the app's canvas page.
/// </summary>
public static readonly FacebookField Namespace = new FacebookField("namespace");

Expand All @@ -276,6 +304,11 @@ public static class FacebookApplicationFields {
/// </summary>
public static readonly FacebookField PageTabUrl = new FacebookField("page_tab_url");

/// <summary>
/// The URL of the app photo.
/// </summary>
public static readonly FacebookField PhotoUrl = new FacebookField("photo_url");

/// <summary>
/// The URL that links to a Privacy Policy for the app.
/// </summary>
Expand Down Expand Up @@ -357,16 +390,17 @@ public static class FacebookApplicationFields {
/// Gets an array of all known fields available for a Facebook application.
/// </summary>
public static readonly FacebookField[] All = {
Id, AnPlatforms, AppAdDebugInfo, AppDomains, AppInstallTracked, AppName, AppType, AuthDialogDataHelpUrl, AuthDialogHeadline,
AuthDialogPermsExplanation, AuthReferralDefaultActivityPrivacy, AuthReferralEnabled, AuthReferralExtendedPerms,
AuthReferralFriendPerms, AuthReferralResponseType, AuthReferralUserPerms, CanvasFluidHeight, CanvasFluidWidth,
Id, AnAdSpaceLimit, AnPlatforms, AppAdDebugInfo, AppDomains, AppInstallTracked, AppName, AppType, AuthDialogDataHelpUrl,
AuthDialogHeadline, AuthDialogPermsExplanation, AuthReferralDefaultActivityPrivacy, AuthReferralEnabled, AuthReferralExtendedPerms,
AuthReferralFriendPerms, AuthReferralResponseType, AuthReferralUserPerms, Business, CanvasFluidHeight, CanvasFluidWidth,
CanvasUrl, Category, ClientConfig, Company, ConfiguredIosSso, ContactEmail, Context, CreatedTime, CreatorUid,
DailyActiveUsers, DailyActiveUsersRank, DeauthCallbackUrl, DefaultShareMode, Description, HostingUrl, IconUrl,
IosBundleId, IosSupportsNativeProxyAuthFlow, IosSupportsSystemAuth, IpadAppStoreId, IphoneAppStoreId, Link, LoggingToken,
LogoUrl, Migrations, MobileProfileSectionUrl, MobileWebUrl, MonthlyActiveUsers, MonthlyActiveUsersRank, Name,
Namespace, ObjectStoreUrls, PageTabDefaultName, PageTabUrl, PrivacyPolicyUrl, ProfileSectionUrl, Restrictions,
SecureCanvasUrl, SecurePageTabUrl, ServerIpWhitelist, SocialDiscovery, Subcategory, SupportedPlatforms, TermsOfServiceUrl,
UrlSchemeSuffix, UserSupportEmail, UserSupportUrl, WebsiteUrl, WeeklyActiveUsers
DailyActiveUsers, DailyActiveUsersRank, DeauthCallbackUrl, DefaultShareMode, Description, FinancialId, HostingUrl,
IconUrl, IosBundleId, IosSupportsNativeProxyAuthFlow, IosSupportsSystemAuth, IpadAppStoreId, IphoneAppStoreId,
IsViewerAdmin, LatestSdkVersion, Link, LoggingToken, LogoUrl, Migrations, MobileProfileSectionUrl, MobileWebUrl,
MonthlyActiveUsers, MonthlyActiveUsersRank, Name, Namespace, ObjectStoreUrls, PageTabDefaultName, PageTabUrl,
PhotoUrl, PrivacyPolicyUrl, ProfileSectionUrl, Restrictions, SecureCanvasUrl, SecurePageTabUrl, ServerIpWhitelist,
SocialDiscovery, Subcategory, SupportedPlatforms, TermsOfServiceUrl, UrlSchemeSuffix, UserSupportEmail, UserSupportUrl,
WebsiteUrl, WeeklyActiveUsers
};

}
Expand Down
16 changes: 9 additions & 7 deletions src/Skybrud.Social.Facebook/Constants/FacebookCommentFields.cs
@@ -1,14 +1,16 @@
using Skybrud.Social.Facebook.Fields;
using Skybrud.Social.Facebook.Fields;
using Skybrud.Social.Facebook.Models.Photos;

namespace Skybrud.Social.Facebook.Constants {

/// <summary>
/// Static class with constants for the fields available for a Facebook comment. The class is auto-generated and
/// based on the fields listed in the Facebook Graph API documentation. Not all fields may have been mapped for the
/// implementation in Skybrud.Social.
/// Static class with constants for the fields available for a Facebook comment (<see cref="FacebookPhoto" />).
///
/// The class is auto-generated and based on the fields listed in the Facebook Graph API documentation. Not all
/// fields may have been mapped for the implementation in Skybrud.Social.
/// </summary>
/// <see>
/// <cref>https://developers.facebook.com/docs/graph-api/reference/v2.8/comment</cref>
/// <cref>https://developers.facebook.com/docs/graph-api/reference/v2.12/comment</cref>
/// </see>
public static class FacebookCommentFields {

Expand All @@ -20,7 +22,7 @@ public static class FacebookCommentFields {
public static readonly FacebookField Id = new FacebookField("id");

/// <summary>
/// Link or photo attached to the comment.
/// Link, video, sticker, or photo attached to the comment.
/// </summary>
public static readonly FacebookField Attachment = new FacebookField("attachment");

Expand Down Expand Up @@ -75,7 +77,7 @@ public static class FacebookCommentFields {
public static readonly FacebookField Message = new FacebookField("message");

/// <summary>
/// An array of Profiles tagged in <code>message</code>.
/// An array of Profiles tagged in <c>message</c>.
/// </summary>
public static readonly FacebookField MessageTags = new FacebookField("message_tags");

Expand Down
56 changes: 42 additions & 14 deletions src/Skybrud.Social.Facebook/Constants/FacebookEventFields.cs
@@ -1,14 +1,16 @@
using Skybrud.Social.Facebook.Fields;
using Skybrud.Social.Facebook.Fields;
using Skybrud.Social.Facebook.Models.Events;

namespace Skybrud.Social.Facebook.Constants {

/// <summary>
/// Static class with constants for the fields available for a Facebook event. The class is auto-generated and based
/// on the fields listed in the Facebook Graph API documentation. Not all fields may have been mapped for the
/// implementation in Skybrud.Social.
/// Static class with constants for the fields available for a Facebook event (<see cref="FacebookEvent" />).
///
/// The class is auto-generated and based on the fields listed in the Facebook Graph API documentation. Not all
/// fields may have been mapped for the implementation in Skybrud.Social.
/// </summary>
/// <see>
/// <cref>https://developers.facebook.com/docs/graph-api/reference/v2.8/event</cref>
/// <cref>https://developers.facebook.com/docs/graph-api/reference/v2.12/event</cref>
/// </see>
public static class FacebookEventFields {

Expand All @@ -25,7 +27,7 @@ public static class FacebookEventFields {
public static readonly FacebookField AttendingCount = new FacebookField("attending_count");

/// <summary>
/// Can guests invite friends.
/// Can guests invite friends. Requires an access token of an Admin of the Event.
/// </summary>
public static readonly FacebookField CanGuestsInvite = new FacebookField("can_guests_invite");

Expand Down Expand Up @@ -55,7 +57,12 @@ public static class FacebookEventFields {
public static readonly FacebookField EndTime = new FacebookField("end_time");

/// <summary>
/// Can see guest list.
/// Array of times of a multi-instance event.
/// </summary>
public static readonly FacebookField EventTimes = new FacebookField("event_times");

/// <summary>
/// Can see guest list. Requires an access token of an Admin of the Event.
/// </summary>
public static readonly FacebookField GuestListEnabled = new FacebookField("guest_list_enabled");

Expand All @@ -70,14 +77,14 @@ public static class FacebookEventFields {
public static readonly FacebookField IsCanceled = new FacebookField("is_canceled");

/// <summary>
/// Whether the event is created by page or not.
/// Whether the event is in draft mode or published. Requires an access token of an Admin of the Event.
/// </summary>
public static readonly FacebookField IsPageOwned = new FacebookField("is_page_owned");
public static readonly FacebookField IsDraft = new FacebookField("is_draft");

/// <summary>
/// Whether the viewer is admin or not.
/// Whether the event is created by page or not.
/// </summary>
public static readonly FacebookField IsViewerAdmin = new FacebookField("is_viewer_admin");
public static readonly FacebookField IsPageOwned = new FacebookField("is_page_owned");

/// <summary>
/// Number of people who maybe going to the event.
Expand Down Expand Up @@ -109,6 +116,11 @@ public static class FacebookEventFields {
/// </summary>
public static readonly FacebookField Place = new FacebookField("place");

/// <summary>
/// Time when event is scheduled to be published.
/// </summary>
public static readonly FacebookField ScheduledPublishTime = new FacebookField("scheduled_publish_time");

/// <summary>
/// Start time.
/// </summary>
Expand All @@ -119,6 +131,21 @@ public static class FacebookEventFields {
/// </summary>
public static readonly FacebookField TicketUri = new FacebookField("ticket_uri");

/// <summary>
/// Time when tickets go on sale.
/// </summary>
public static readonly FacebookField TicketUriStartSalesTime = new FacebookField("ticket_uri_start_sales_time");

/// <summary>
/// URI to seller's privacy policy for ticket purchases.
/// </summary>
public static readonly FacebookField TicketingPrivacyUri = new FacebookField("ticketing_privacy_uri");

/// <summary>
/// URI to seller's terms of service for ticket purchases.
/// </summary>
public static readonly FacebookField TicketingTermsUri = new FacebookField("ticketing_terms_uri");

/// <summary>
/// Timezone.
/// </summary>
Expand All @@ -140,9 +167,10 @@ public static class FacebookEventFields {
/// Gets an array of all known fields available for a Facebook event.
/// </summary>
public static readonly FacebookField[] All = {
Id, AttendingCount, CanGuestsInvite, Category, Cover, DeclinedCount, Description, EndTime, GuestListEnabled,
InterestedCount, IsCanceled, IsPageOwned, IsViewerAdmin, MaybeCount, Name, NoreplyCount, Owner, ParentGroup,
Place, StartTime, TicketUri, Timezone, Type, UpdatedTime
Id, AttendingCount, CanGuestsInvite, Category, Cover, DeclinedCount, Description, EndTime, EventTimes, GuestListEnabled,
InterestedCount, IsCanceled, IsDraft, IsPageOwned, MaybeCount, Name, NoreplyCount, Owner, ParentGroup, Place,
ScheduledPublishTime, StartTime, TicketUri, TicketUriStartSalesTime, TicketingPrivacyUri, TicketingTermsUri,
Timezone, Type, UpdatedTime
};

}
Expand Down

0 comments on commit 17481e6

Please sign in to comment.