Official Facebook Pixel - Version 2.2.2

Version Description

Download this release

Release Info

Developer Facebook
Plugin Icon Official Facebook Pixel
Version 2.2.2
Comparing to
See all releases

Code changes from version 2.2.1 to 2.2.2

Files changed (183) hide show
  1. changelog.txt +3 -0
  2. composer.json +1 -1
  3. composer.lock +11 -8
  4. core/FacebookPluginConfig.php +1 -1
  5. facebook-for-wordpress.php +1 -1
  6. languages/official-facebook-pixel-ar_AR.po +1 -1
  7. languages/official-facebook-pixel-cs_CZ.po +1 -1
  8. languages/official-facebook-pixel-da_DK.po +1 -1
  9. languages/official-facebook-pixel-de_DE.po +1 -1
  10. languages/official-facebook-pixel-en_GB.po +1 -1
  11. languages/official-facebook-pixel-es_ES.po +1 -1
  12. languages/official-facebook-pixel-es_LA.po +1 -1
  13. languages/official-facebook-pixel-fi_FI.po +1 -1
  14. languages/official-facebook-pixel-fr_CA.po +1 -1
  15. languages/official-facebook-pixel-fr_FR.po +1 -1
  16. languages/official-facebook-pixel-he_IL.po +1 -1
  17. languages/official-facebook-pixel-it_IT.po +1 -1
  18. languages/official-facebook-pixel-ja_JP.po +1 -1
  19. languages/official-facebook-pixel-ko_KR.po +1 -1
  20. languages/official-facebook-pixel-nb_NO.po +1 -1
  21. languages/official-facebook-pixel-nl_NL.po +1 -1
  22. languages/official-facebook-pixel-pl_PL.po +1 -1
  23. languages/official-facebook-pixel-pt_BR.po +1 -1
  24. languages/official-facebook-pixel-pt_PT.po +1 -1
  25. languages/official-facebook-pixel-ru_RU.po +1 -1
  26. languages/official-facebook-pixel-sv_SE.po +1 -1
  27. languages/official-facebook-pixel-th_TH.po +1 -1
  28. languages/official-facebook-pixel-tr_TR.po +1 -1
  29. languages/official-facebook-pixel-vi_VN.po +1 -1
  30. languages/official-facebook-pixel-zh_CN.po +1 -1
  31. languages/official-facebook-pixel-zh_TW.po +1 -1
  32. readme.txt +4 -1
  33. vendor/autoload.php +1 -1
  34. vendor/composer/autoload_real.php +7 -7
  35. vendor/composer/autoload_static.php +4 -4
  36. vendor/composer/installed.json +11 -8
  37. vendor/facebook/php-business-sdk/CHANGELOG.md +17 -0
  38. vendor/facebook/php-business-sdk/composer.json +1 -1
  39. vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostAdSetCreateCpa.php +2 -2
  40. vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php +2 -2
  41. vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostCreateAdSet.php +2 -2
  42. vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostDailyBudget20.php +2 -2
  43. vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php +2 -2
  44. vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostOfferClaim.php +2 -2
  45. vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostOptimizePostEngagement.php +2 -2
  46. vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostCreateCustomAudience.php +1 -1
  47. vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostDynamicEventValueBasedLookalikeCustomAudience.php +1 -1
  48. vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostDynamicValueBasedLookalikeCustomAudience.php +1 -1
  49. vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformCustomAudienceMACARule.php +1 -1
  50. vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformECAExclusions.php +1 -1
  51. vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformECAMultiFilters.php +1 -1
  52. vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformECAMultiPages.php +1 -1
  53. vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformEngagementCustomAudience.php +1 -1
  54. vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformWebsiteCustomAudience.php +1 -1
  55. vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostValueBasedCustomAudience.php +1 -1
  56. vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostValueBasedLookalikeCustomAudience.php +1 -1
  57. vendor/facebook/php-business-sdk/examples/AdAccountReachEstimate.php +1 -1
  58. vendor/facebook/php-business-sdk/examples/AdCampaignActivityNode.php +1 -1
  59. vendor/facebook/php-business-sdk/examples/AdCampaignGroupActivityNode.php +1 -1
  60. vendor/facebook/php-business-sdk/examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.php +1 -1
  61. vendor/facebook/php-business-sdk/examples/AdCreativeNodeReadInstagramPermalinkUrl.php +1 -1
  62. vendor/facebook/php-business-sdk/examples/AdgroupActivityNode.php +1 -1
  63. vendor/facebook/php-business-sdk/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php +1 -1
  64. vendor/facebook/php-business-sdk/examples/AdsPixelEventsPost.php +1 -1
  65. vendor/facebook/php-business-sdk/examples/AdsPixelSharedAccountsEdge.php +1 -1
  66. vendor/facebook/php-business-sdk/examples/AdsPixelSharedAgenciesEdge.php +1 -1
  67. vendor/facebook/php-business-sdk/examples/BusinessOwnedProductCatalogsPostDestinationCatalog.php +1 -1
  68. vendor/facebook/php-business-sdk/examples/BusinessOwnedProductCatalogsPostFlightCatalog.php +1 -1
  69. vendor/facebook/php-business-sdk/examples/BusinessOwnedProductCatalogsPostHotelCatalog.php +1 -1
  70. vendor/facebook/php-business-sdk/examples/BusinessOwnedProductCatalogsPostProductCatalog.php +1 -1
  71. vendor/facebook/php-business-sdk/examples/PageFeedEdge.php +1 -1
  72. vendor/facebook/php-business-sdk/examples/PageNode.php +1 -1
  73. vendor/facebook/php-business-sdk/examples/PagePhotosPost.php +1 -1
  74. vendor/facebook/php-business-sdk/examples/PagePictureEdge.php +1 -1
  75. vendor/facebook/php-business-sdk/examples/PagePostCommentsEdge.php +46 -0
  76. vendor/facebook/php-business-sdk/examples/PagePostCommentsPost.php +1 -1
  77. vendor/facebook/php-business-sdk/examples/PagePostDelete.php +1 -1
  78. vendor/facebook/php-business-sdk/examples/PagePostNode.php +1 -1
  79. vendor/facebook/php-business-sdk/examples/PagePostPost.php +1 -1
  80. vendor/facebook/php-business-sdk/examples/PagePostsEdge.php +1 -1
  81. vendor/facebook/php-business-sdk/examples/PagePostsEdgePagePostCreateCarousel.php +1 -1
  82. vendor/facebook/php-business-sdk/examples/PageRolesEdge.php +1 -1
  83. vendor/facebook/php-business-sdk/examples/ProductCatalogProductFeedsPostProductFeed.php +1 -1
  84. vendor/facebook/php-business-sdk/examples/UserAccountsEdge.php +1 -1
  85. vendor/facebook/php-business-sdk/examples/UserLeadGenInfoNode.php +1 -1
  86. vendor/facebook/php-business-sdk/examples/UserNode.php +1 -1
  87. vendor/facebook/php-business-sdk/examples/VideoThumbnailsEdge.php +1 -1
  88. vendor/facebook/php-business-sdk/src/FacebookAds/ApiConfig.php +2 -2
  89. vendor/facebook/php-business-sdk/src/FacebookAds/CrashReporter.php +1 -1
  90. vendor/facebook/php-business-sdk/src/FacebookAds/Http/Client.php +2 -2
  91. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccount.php +38 -24
  92. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountTargetingUnified.php +3 -1
  93. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdCreative.php +0 -1
  94. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdStudy.php +0 -1
  95. vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdStudyObjective.php +0 -24
  96. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Business.php +70 -57
  97. vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessUnit.php +0 -1
  98. vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessUser.php +0 -7
  99. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Campaign.php +4 -0
  100. vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceMerchantSettings.php +0 -107
  101. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCampaignActivityFields.php +8 -0
  102. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCreativeFields.php +4 -0
  103. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdgroupActivityFields.php +4 -0
  104. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdoptablePetFields.php +14 -0
  105. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/Agency.php +1 -1
  106. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ApplicationFields.php +2 -0
  107. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CampaignFields.php +4 -0
  108. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php +2 -0
  109. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceMerchantSettingsSetupStatusFields.php +2 -0
  110. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ExtendedCreditFields.php +0 -2
  111. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PageFields.php +2 -0
  112. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PlayableContentFields.php +2 -0
  113. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductCatalogFields.php +0 -2
  114. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductFeedFields.php +2 -0
  115. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductItemFields.php +4 -0
  116. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ReferralFields.php +4 -0
  117. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/UserFields.php +8 -0
  118. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php +2 -0
  119. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Flight.php +2 -0
  120. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Group.php +1 -0
  121. vendor/facebook/php-business-sdk/src/FacebookAds/Object/HotelRoom.php +0 -23
  122. vendor/facebook/php-business-sdk/src/FacebookAds/Object/IGUser.php +1 -0
  123. vendor/facebook/php-business-sdk/src/FacebookAds/Object/InstagramUser.php +1 -0
  124. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Link.php +33 -0
  125. vendor/facebook/php-business-sdk/src/FacebookAds/Object/LiveVideo.php +0 -8
  126. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Page.php +76 -47
  127. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Post.php +18 -0
  128. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductCatalog.php +4 -24
  129. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductFeed.php +1 -0
  130. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductItem.php +1 -0
  131. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductSet.php +1 -0
  132. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Referral.php +2 -0
  133. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Content.php +22 -0
  134. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/CustomData.php +7 -1
  135. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php +24 -15
  136. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/HttpServiceClientConfig.php +13 -4
  137. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/HttpServiceInterface.php +1 -0
  138. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Util.php +8 -0
  139. vendor/facebook/php-business-sdk/src/FacebookAds/Object/ThirdPartyMeasurementReportDataset.php +24 -0
  140. vendor/facebook/php-business-sdk/src/FacebookAds/Object/User.php +48 -74
  141. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php +1 -0
  142. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedAppStoreValues.php +53 -0
  143. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedObjectiveValues.php +1 -0
  144. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdActivityEventTypeValues.php +0 -1
  145. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php +4 -0
  146. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAsyncRequestStatusesValues.php +2 -0
  147. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php +4 -0
  148. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php +4 -0
  149. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php +1 -0
  150. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php +4 -0
  151. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php +3 -0
  152. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsInsightsActionReportTimeValues.php +1 -0
  153. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsPixelAutomaticMatchingFieldsValues.php +1 -0
  154. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsPixelDataUseSettingValues.php +1 -1
  155. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsPixelFirstPartyCookieStatusValues.php +1 -1
  156. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupPageTasksValues.php +0 -1
  157. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessPagePermittedTasksValues.php +0 -1
  158. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessRoleRequestRoleValues.php +4 -4
  159. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessUserRoleValues.php +4 -4
  160. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignObjectiveValues.php +1 -0
  161. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{CommerceMerchantSettingsMerchantStatusValues.php → CampaignSmartPromotionTypeValues.php} +4 -4
  162. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupGroupTypeValues.php +1 -0
  163. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupPurposeValues.php +1 -0
  164. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PagePermittedTasksValues.php +0 -1
  165. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageSubscribedFieldsValues.php +1 -0
  166. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageTasksValues.php +0 -1
  167. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PostCheckinEntryPointValues.php +44 -0
  168. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{CommerceMerchantSettingsCtaValues.php → PostFormattingValues.php} +4 -4
  169. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{AdCreativeInstagramBrandedContent.php → Values/PostPlaceAttachmentSettingValues.php} +6 -21
  170. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PostPostSurfacesBlacklistValues.php +45 -0
  171. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PostPostingToRedspaceValues.php +42 -0
  172. vendor/facebook/php-business-sdk/src/FacebookAds/Object/{Fields/AdCreativeInstagramBrandedContentFields.php → Values/PostTargetSurfaceValues.php} +5 -8
  173. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PostUnpublishedContentTypeValues.php +47 -0
  174. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductCatalogVerticalValues.php +1 -0
  175. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/SystemUserRoleValues.php +0 -55
  176. vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/VehicleAvailabilityValues.php +1 -0
  177. vendor/facebook/php-business-sdk/src/FacebookAds/Object/WhatsAppBusinessAccount.php +46 -0
  178. vendor/facebook/php-business-sdk/test/FacebookAdsTest/Http/ClientTest.php +2 -2
  179. vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/ContentTest.php +20 -1
  180. vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/CustomDataTest.php +7 -0
  181. vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/EventRequestTest.php +31 -20
  182. vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/ServerSideUtilTest.php +15 -0
  183. vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/TestHelpers/E2ETestHttpService.php +0 -64
changelog.txt CHANGED
@@ -1,4 +1,7 @@
1
  *** Facebook for WordPress Changelog ***
 
 
 
2
  2020-11-04 version 2.2.1
3
  * Stop sending events for internal users
4
  * Fix Contact Form 7 integration bug, send events only on form submit success
1
  *** Facebook for WordPress Changelog ***
2
+ 2020-12-08 version 2.2.2
3
+ * Update Business SDK to v9.0.1
4
+
5
  2020-11-04 version 2.2.1
6
  * Stop sending events for internal users
7
  * Fix Contact Form 7 integration bug, send events only on form submit success
composer.json CHANGED
@@ -9,7 +9,7 @@
9
  },
10
  "license": "GPL",
11
  "require": {
12
- "facebook/php-business-sdk": "8.0.2",
13
  "techcrunch/wp-async-task": "dev-master"
14
  },
15
  "autoload": {
9
  },
10
  "license": "GPL",
11
  "require": {
12
+ "facebook/php-business-sdk": "9.0.1",
13
  "techcrunch/wp-async-task": "dev-master"
14
  },
15
  "autoload": {
composer.lock CHANGED
@@ -4,24 +4,24 @@
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
- "content-hash": "a0aad8d1bffd3ae28611c14df87c968a",
8
  "packages": [
9
  {
10
  "name": "facebook/php-business-sdk",
11
- "version": "8.0.2",
12
  "source": {
13
  "type": "git",
14
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
15
- "reference": "637fce87380d4a65f6d4c24cc79664fa28c3428d"
16
  },
17
  "dist": {
18
  "type": "zip",
19
- "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/637fce87380d4a65f6d4c24cc79664fa28c3428d",
20
- "reference": "637fce87380d4a65f6d4c24cc79664fa28c3428d",
21
  "shasum": ""
22
  },
23
  "require": {
24
- "guzzlehttp/guzzle": "^6.5"
25
  },
26
  "require-dev": {
27
  "mockery/mockery": "1.3.3",
@@ -45,7 +45,10 @@
45
  "page",
46
  "sdk"
47
  ],
48
- "time": "2020-09-18T00:34:44+00:00"
 
 
 
49
  },
50
  {
51
  "name": "guzzlehttp/guzzle",
@@ -3136,5 +3139,5 @@
3136
  "prefer-lowest": false,
3137
  "platform": [],
3138
  "platform-dev": [],
3139
- "plugin-api-version": "1.1.0"
3140
  }
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
+ "content-hash": "f3617bd0b592188283a11223e67f9e0a",
8
  "packages": [
9
  {
10
  "name": "facebook/php-business-sdk",
11
+ "version": "9.0.1",
12
  "source": {
13
  "type": "git",
14
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
15
+ "reference": "7edcdcfcd551196c90246875f875dbb48d35cd98"
16
  },
17
  "dist": {
18
  "type": "zip",
19
+ "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/7edcdcfcd551196c90246875f875dbb48d35cd98",
20
+ "reference": "7edcdcfcd551196c90246875f875dbb48d35cd98",
21
  "shasum": ""
22
  },
23
  "require": {
24
+ "guzzlehttp/guzzle": "^6.5 || ^7.0"
25
  },
26
  "require-dev": {
27
  "mockery/mockery": "1.3.3",
45
  "page",
46
  "sdk"
47
  ],
48
+ "support": {
49
+ "source": "https://github.com/facebook/facebook-php-business-sdk/tree/9.0.1"
50
+ },
51
+ "time": "2020-11-17T23:35:14+00:00"
52
  },
53
  {
54
  "name": "guzzlehttp/guzzle",
3139
  "prefer-lowest": false,
3140
  "platform": [],
3141
  "platform-dev": [],
3142
+ "plugin-api-version": "2.0.0"
3143
  }
core/FacebookPluginConfig.php CHANGED
@@ -20,7 +20,7 @@ namespace FacebookPixelPlugin\Core;
20
  defined('ABSPATH') or die('Direct access not allowed');
21
 
22
  class FacebookPluginConfig {
23
- const PLUGIN_VERSION = '2.2.1';
24
  const SOURCE = 'wordpress';
25
  const TEXT_DOMAIN = 'official-facebook-pixel';
26
 
20
  defined('ABSPATH') or die('Direct access not allowed');
21
 
22
  class FacebookPluginConfig {
23
+ const PLUGIN_VERSION = '2.2.2';
24
  const SOURCE = 'wordpress';
25
  const TEXT_DOMAIN = 'official-facebook-pixel';
26
 
facebook-for-wordpress.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: <strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to a known issue, to workaround please refresh this page and activate plugin.***</em></strong> The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
6
  * Author: Facebook
7
  * Author URI: https://www.facebook.com/
8
- * Version: 2.2.1
9
  * Text Domain: official-facebook-pixel
10
  */
11
 
5
  * Description: <strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to a known issue, to workaround please refresh this page and activate plugin.***</em></strong> The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
6
  * Author: Facebook
7
  * Author URI: https://www.facebook.com/
8
+ * Version: 2.2.2
9
  * Text Domain: official-facebook-pixel
10
  */
11
 
languages/official-facebook-pixel-ar_AR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-cs_CZ.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-da_DK.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-de_DE.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-en_GB.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-es_ES.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-es_LA.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-fi_FI.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-fr_CA.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-fr_FR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-he_IL.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-it_IT.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-ja_JP.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-ko_KR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-nb_NO.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-nl_NL.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-pl_PL.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-pt_BR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-pt_PT.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-ru_RU.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-sv_SE.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-th_TH.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-pixel\n"
7
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
8
  "PO-Revision-Date: 2018-11-28 17:37-0800\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-pixel\n"
7
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
8
  "PO-Revision-Date: 2018-11-28 17:37-0800\n"
languages/official-facebook-pixel-tr_TR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-vi_VN.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-zh_CN.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-zh_TW.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Official Facebook Pixel 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Official Facebook Pixel 2.2.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: Facebook, Facebook Conversion Pixel, Facebook Pixel, Facebook Pixel Events
4
  Requires at least: 4.4
5
  Tested up to: 7.4
6
  Requires PHP: 5.6
7
- Stable tag: 2.2.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -50,6 +50,9 @@ If you get stuck, or have any questions, you can ask for help in the [Official F
50
  Of course! This plugin is open sourced on the Facebook Incubator GitHub. You can find the code and contribution instructions in the [plugin repository](https://github.com/facebookincubator/Facebook-Pixel-for-WordPress).
51
 
52
  == Changelog ==
 
 
 
53
  = 2020-11-04 version 2.2.1 =
54
  * Stop sending events for internal users
55
  * Fix Contact Form 7 integration bug, send events only on form submit success
4
  Requires at least: 4.4
5
  Tested up to: 7.4
6
  Requires PHP: 5.6
7
+ Stable tag: 2.2.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
50
  Of course! This plugin is open sourced on the Facebook Incubator GitHub. You can find the code and contribution instructions in the [plugin repository](https://github.com/facebookincubator/Facebook-Pixel-for-WordPress).
51
 
52
  == Changelog ==
53
+ = 2020-12-08 version 2.2.2 =
54
+ * Update Business SDK to v9.0.1
55
+
56
  = 2020-11-04 version 2.2.1 =
57
  * Stop sending events for internal users
58
  * Fix Contact Form 7 integration bug, send events only on form submit success
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitb70dda9054913ec540ad699dadb60915::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitf5dc60b911b965ef7d900e2c71f975ec::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitb70dda9054913ec540ad699dadb60915
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitb70dda9054913ec540ad699dadb60915
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitb70dda9054913ec540ad699dadb60915', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInitb70dda9054913ec540ad699dadb60915', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInitb70dda9054913ec540ad699dadb60915::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitb70dda9054913ec540ad699dadb60915
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInitb70dda9054913ec540ad699dadb60915::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequireb70dda9054913ec540ad699dadb60915($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequireb70dda9054913ec540ad699dadb60915($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitf5dc60b911b965ef7d900e2c71f975ec
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitf5dc60b911b965ef7d900e2c71f975ec', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitf5dc60b911b965ef7d900e2c71f975ec', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitf5dc60b911b965ef7d900e2c71f975ec::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInitf5dc60b911b965ef7d900e2c71f975ec::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequiref5dc60b911b965ef7d900e2c71f975ec($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequiref5dc60b911b965ef7d900e2c71f975ec($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitb70dda9054913ec540ad699dadb60915
8
  {
9
  public static $files = array (
10
  '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php',
@@ -110,9 +110,9 @@ class ComposerStaticInitb70dda9054913ec540ad699dadb60915
110
  public static function getInitializer(ClassLoader $loader)
111
  {
112
  return \Closure::bind(function () use ($loader) {
113
- $loader->prefixLengthsPsr4 = ComposerStaticInitb70dda9054913ec540ad699dadb60915::$prefixLengthsPsr4;
114
- $loader->prefixDirsPsr4 = ComposerStaticInitb70dda9054913ec540ad699dadb60915::$prefixDirsPsr4;
115
- $loader->classMap = ComposerStaticInitb70dda9054913ec540ad699dadb60915::$classMap;
116
 
117
  }, null, ClassLoader::class);
118
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitf5dc60b911b965ef7d900e2c71f975ec
8
  {
9
  public static $files = array (
10
  '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php',
110
  public static function getInitializer(ClassLoader $loader)
111
  {
112
  return \Closure::bind(function () use ($loader) {
113
+ $loader->prefixLengthsPsr4 = ComposerStaticInitf5dc60b911b965ef7d900e2c71f975ec::$prefixLengthsPsr4;
114
+ $loader->prefixDirsPsr4 = ComposerStaticInitf5dc60b911b965ef7d900e2c71f975ec::$prefixDirsPsr4;
115
+ $loader->classMap = ComposerStaticInitf5dc60b911b965ef7d900e2c71f975ec::$classMap;
116
 
117
  }, null, ClassLoader::class);
118
  }
vendor/composer/installed.json CHANGED
@@ -1,28 +1,28 @@
1
  [
2
  {
3
  "name": "facebook/php-business-sdk",
4
- "version": "8.0.2",
5
- "version_normalized": "8.0.2.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
9
- "reference": "637fce87380d4a65f6d4c24cc79664fa28c3428d"
10
  },
11
  "dist": {
12
  "type": "zip",
13
- "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/637fce87380d4a65f6d4c24cc79664fa28c3428d",
14
- "reference": "637fce87380d4a65f6d4c24cc79664fa28c3428d",
15
  "shasum": ""
16
  },
17
  "require": {
18
- "guzzlehttp/guzzle": "^6.5"
19
  },
20
  "require-dev": {
21
  "mockery/mockery": "1.3.3",
22
  "phpunit/phpunit": "~8",
23
  "symfony/finder": "~2.6"
24
  },
25
- "time": "2020-09-18T00:34:44+00:00",
26
  "type": "library",
27
  "installation-source": "dist",
28
  "autoload": {
@@ -40,7 +40,10 @@
40
  "instagram",
41
  "page",
42
  "sdk"
43
- ]
 
 
 
44
  },
45
  {
46
  "name": "guzzlehttp/guzzle",
1
  [
2
  {
3
  "name": "facebook/php-business-sdk",
4
+ "version": "9.0.1",
5
+ "version_normalized": "9.0.1.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/facebook/facebook-php-business-sdk.git",
9
+ "reference": "7edcdcfcd551196c90246875f875dbb48d35cd98"
10
  },
11
  "dist": {
12
  "type": "zip",
13
+ "url": "https://api.github.com/repos/facebook/facebook-php-business-sdk/zipball/7edcdcfcd551196c90246875f875dbb48d35cd98",
14
+ "reference": "7edcdcfcd551196c90246875f875dbb48d35cd98",
15
  "shasum": ""
16
  },
17
  "require": {
18
+ "guzzlehttp/guzzle": "^6.5 || ^7.0"
19
  },
20
  "require-dev": {
21
  "mockery/mockery": "1.3.3",
22
  "phpunit/phpunit": "~8",
23
  "symfony/finder": "~2.6"
24
  },
25
+ "time": "2020-11-17T23:35:14+00:00",
26
  "type": "library",
27
  "installation-source": "dist",
28
  "autoload": {
40
  "instagram",
41
  "page",
42
  "sdk"
43
+ ],
44
+ "support": {
45
+ "source": "https://github.com/facebook/facebook-php-business-sdk/tree/9.0.1"
46
+ }
47
  },
48
  {
49
  "name": "guzzlehttp/guzzle",
vendor/facebook/php-business-sdk/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
5
 
6
  ## Unreleased
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  ## v8.0.2
9
 
10
  ### Added
5
 
6
  ## Unreleased
7
 
8
+ ## v9.0.0
9
+
10
+
11
+ ### Added
12
+ - `delivery_category` field to Content for Conversions API.
13
+
14
+ ### Changed
15
+ - Add empty to the list of reserved keywords.
16
+ - Change empty value enum name in AdsPixelFirstPartyCookieStatusValues and AdsPixelDataUseSettingValues
17
+
18
+ ## v8.0.3
19
+
20
+ ### Changed
21
+ - Fixed a normalization issue for zero values in CustomData in Conversions API
22
+ - Start passing in the appsecret_proof to Conversions API custom http_clients when an appsecret is set
23
+ - A Conversions API EventRequest custom http_client must now be an object instead of a class name
24
+
25
  ## v8.0.2
26
 
27
  ### Added
vendor/facebook/php-business-sdk/composer.json CHANGED
@@ -12,7 +12,7 @@
12
  ],
13
  "homepage": "https://developers.facebook.com/",
14
  "require": {
15
- "guzzlehttp/guzzle": "^6.5"
16
  },
17
  "require-dev": {
18
  "phpunit/phpunit": "~8",
12
  ],
13
  "homepage": "https://developers.facebook.com/",
14
  "require": {
15
+ "guzzlehttp/guzzle": "^6.5 || ^7.0"
16
  },
17
  "require-dev": {
18
  "phpunit/phpunit": "~8",
vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostAdSetCreateCpa.php CHANGED
@@ -42,8 +42,8 @@ $params = array(
42
  'name' => 'A CPA Ad Set',
43
  'campaign_id' => '<adCampaignLinkClicksID>',
44
  'daily_budget' => '5000',
45
- 'start_time' => '2019-12-12T23:42:39-0800',
46
- 'end_time' => '2019-12-19T23:42:39-0800',
47
  'billing_event' => 'IMPRESSIONS',
48
  'optimization_goal' => 'REACH',
49
  'bid_amount' => '1000',
42
  'name' => 'A CPA Ad Set',
43
  'campaign_id' => '<adCampaignLinkClicksID>',
44
  'daily_budget' => '5000',
45
+ 'start_time' => '2020-10-29T22:16:32-0700',
46
+ 'end_time' => '2020-11-05T22:16:32-0800',
47
  'billing_event' => 'IMPRESSIONS',
48
  'optimization_goal' => 'REACH',
49
  'bid_amount' => '1000',
vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.php CHANGED
@@ -42,8 +42,8 @@ $params = array(
42
  'name' => 'A CPA Ad Set optimized for App Events',
43
  'campaign_id' => '<adCampaignAppInstallsID>',
44
  'daily_budget' => '300',
45
- 'start_time' => '2019-12-12T23:43:36-0800',
46
- 'end_time' => '2019-12-19T23:43:36-0800',
47
  'billing_event' => 'IMPRESSIONS',
48
  'optimization_goal' => 'OFFSITE_CONVERSIONS',
49
  'bid_amount' => '100',
42
  'name' => 'A CPA Ad Set optimized for App Events',
43
  'campaign_id' => '<adCampaignAppInstallsID>',
44
  'daily_budget' => '300',
45
+ 'start_time' => '2020-10-29T22:17:28-0700',
46
+ 'end_time' => '2020-11-05T22:17:28-0800',
47
  'billing_event' => 'IMPRESSIONS',
48
  'optimization_goal' => 'OFFSITE_CONVERSIONS',
49
  'bid_amount' => '100',
vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostCreateAdSet.php CHANGED
@@ -41,8 +41,8 @@ $fields = array(
41
  $params = array(
42
  'name' => 'My First AdSet',
43
  'lifetime_budget' => '20000',
44
- 'start_time' => '2019-12-12T23:41:41-0800',
45
- 'end_time' => '2019-12-19T23:41:41-0800',
46
  'campaign_id' => '<adCampaignLinkClicksID>',
47
  'bid_amount' => '500',
48
  'billing_event' => 'IMPRESSIONS',
41
  $params = array(
42
  'name' => 'My First AdSet',
43
  'lifetime_budget' => '20000',
44
+ 'start_time' => '2020-10-29T22:15:36-0700',
45
+ 'end_time' => '2020-11-05T22:15:36-0800',
46
  'campaign_id' => '<adCampaignLinkClicksID>',
47
  'bid_amount' => '500',
48
  'billing_event' => 'IMPRESSIONS',
vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostDailyBudget20.php CHANGED
@@ -41,8 +41,8 @@ $fields = array(
41
  $params = array(
42
  'name' => 'My First Adset',
43
  'daily_budget' => '2000',
44
- 'start_time' => '2019-12-05T23:43:07-0800',
45
- 'end_time' => '2019-12-12T23:43:07-0800',
46
  'campaign_id' => '<adCampaignLinkClicksID>',
47
  'bid_amount' => '100',
48
  'billing_event' => 'LINK_CLICKS',
41
  $params = array(
42
  'name' => 'My First Adset',
43
  'daily_budget' => '2000',
44
+ 'start_time' => '2020-10-22T22:17:00-0700',
45
+ 'end_time' => '2020-10-29T22:17:00-0700',
46
  'campaign_id' => '<adCampaignLinkClicksID>',
47
  'bid_amount' => '100',
48
  'billing_event' => 'LINK_CLICKS',
vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.php CHANGED
@@ -41,8 +41,8 @@ $fields = array(
41
  $params = array(
42
  'name' => 'My First Adset',
43
  'lifetime_budget' => '20000',
44
- 'start_time' => '2019-12-05T23:43:17-0800',
45
- 'end_time' => '2019-12-15T23:43:17-0800',
46
  'campaign_id' => '<adCampaignLinkClicksID>',
47
  'bid_amount' => '100',
48
  'billing_event' => 'LINK_CLICKS',
41
  $params = array(
42
  'name' => 'My First Adset',
43
  'lifetime_budget' => '20000',
44
+ 'start_time' => '2020-10-22T22:17:10-0700',
45
+ 'end_time' => '2020-11-01T22:17:10-0800',
46
  'campaign_id' => '<adCampaignLinkClicksID>',
47
  'bid_amount' => '100',
48
  'billing_event' => 'LINK_CLICKS',
vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostOfferClaim.php CHANGED
@@ -41,8 +41,8 @@ $fields = array(
41
  $params = array(
42
  'name' => 'My Offer Claim AdSet',
43
  'lifetime_budget' => '56000',
44
- 'start_time' => '2019-12-05T23:42:58-0800',
45
- 'end_time' => '2019-12-12T23:42:58-0800',
46
  'campaign_id' => '<adCampaignLinkClicksID>',
47
  'billing_event' => 'LINK_CLICKS',
48
  'optimization_goal' => 'LINK_CLICKS',
41
  $params = array(
42
  'name' => 'My Offer Claim AdSet',
43
  'lifetime_budget' => '56000',
44
+ 'start_time' => '2020-10-22T22:16:51-0700',
45
+ 'end_time' => '2020-10-29T22:16:51-0700',
46
  'campaign_id' => '<adCampaignLinkClicksID>',
47
  'billing_event' => 'LINK_CLICKS',
48
  'optimization_goal' => 'LINK_CLICKS',
vendor/facebook/php-business-sdk/examples/AdAccountAdSetsPostOptimizePostEngagement.php CHANGED
@@ -41,8 +41,8 @@ $fields = array(
41
  $params = array(
42
  'name' => 'My First Adset',
43
  'lifetime_budget' => '20000',
44
- 'start_time' => '2019-12-05T23:43:27-0800',
45
- 'end_time' => '2019-12-15T23:43:27-0800',
46
  'campaign_id' => '<adCampaignLinkClicksID>',
47
  'bid_amount' => '500',
48
  'billing_event' => 'IMPRESSIONS',
41
  $params = array(
42
  'name' => 'My First Adset',
43
  'lifetime_budget' => '20000',
44
+ 'start_time' => '2020-10-22T22:17:19-0700',
45
+ 'end_time' => '2020-11-01T22:17:19-0800',
46
  'campaign_id' => '<adCampaignLinkClicksID>',
47
  'bid_amount' => '500',
48
  'billing_event' => 'IMPRESSIONS',
vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostCreateCustomAudience.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostDynamicEventValueBasedLookalikeCustomAudience.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostDynamicValueBasedLookalikeCustomAudience.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformCustomAudienceMACARule.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformECAExclusions.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformECAMultiFilters.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformECAMultiPages.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformEngagementCustomAudience.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostPlatformWebsiteCustomAudience.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostValueBasedCustomAudience.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdAccountCustomAudiencesPostValueBasedLookalikeCustomAudience.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_ACCOUNT_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdAccountReachEstimate.php CHANGED
@@ -24,7 +24,7 @@
24
  require __DIR__ . '/vendor/autoload.php';
25
 
26
  use FacebookAds\Object\AdAccount;
27
- use FacebookAds\Object\ReachEstimate;
28
  use FacebookAds\Api;
29
  use FacebookAds\Logger\CurlLogger;
30
 
24
  require __DIR__ . '/vendor/autoload.php';
25
 
26
  use FacebookAds\Object\AdAccount;
27
+ use FacebookAds\Object\AdAccountReachEstimate;
28
  use FacebookAds\Api;
29
  use FacebookAds\Logger\CurlLogger;
30
 
vendor/facebook/php-business-sdk/examples/AdCampaignActivityNode.php CHANGED
@@ -30,7 +30,7 @@ use FacebookAds\Logger\CurlLogger;
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
- $id = '<ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
+ $id = '<ACTIVITY_ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdCampaignGroupActivityNode.php CHANGED
@@ -30,7 +30,7 @@ use FacebookAds\Logger\CurlLogger;
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
- $id = '<ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
+ $id = '<ACTIVITY_ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdCampaignGroupAdsEdgeAdgroupsWithStatusArchived.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<AD_CAMPAIGN_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdCreativeNodeReadInstagramPermalinkUrl.php CHANGED
@@ -30,7 +30,7 @@ use FacebookAds\Logger\CurlLogger;
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
- $id = '<ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
+ $id = '<AD_CREATIVE_ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdgroupActivityNode.php CHANGED
@@ -30,7 +30,7 @@ use FacebookAds\Logger\CurlLogger;
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
- $id = '<ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
+ $id = '<ACTIVITY_ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.php CHANGED
@@ -39,7 +39,7 @@ $api->setLogger(new CurlLogger());
39
  $fields = array(
40
  );
41
  $params = array(
42
- 'filtering' => array(array('field' => 'time_created','operator' => 'GREATER_THAN','value' => 1546549613)),
43
  );
44
  echo json_encode((new Ad($id))->getLeads(
45
  $fields,
39
  $fields = array(
40
  );
41
  $params = array(
42
+ 'filtering' => array(array('field' => 'time_created','operator' => 'GREATER_THAN','value' => 1602826030)),
43
  );
44
  echo json_encode((new Ad($id))->getLeads(
45
  $fields,
vendor/facebook/php-business-sdk/examples/AdsPixelEventsPost.php CHANGED
@@ -38,7 +38,7 @@ $api->setLogger(new CurlLogger());
38
  $fields = array(
39
  );
40
  $params = array(
41
- 'data' => array(array('event_name' => 'PageView','event_time' => 1569260711,'user_data' => array('fbc' => 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp' => 'fb.1.1558571054389.1098115397','em' => '309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'))),
42
  );
43
  echo json_encode((new AdsPixel($id))->createEvent(
44
  $fields,
38
  $fields = array(
39
  );
40
  $params = array(
41
+ 'data' => array(array('event_name' => 'PageView','event_time' => 1604520076,'user_data' => array('fbc' => 'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp' => 'fb.1.1558571054389.1098115397','em' => '309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'))),
42
  );
43
  echo json_encode((new AdsPixel($id))->createEvent(
44
  $fields,
vendor/facebook/php-business-sdk/examples/AdsPixelSharedAccountsEdge.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<PIXEL_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/AdsPixelSharedAgenciesEdge.php CHANGED
@@ -40,7 +40,7 @@ $fields = array(
40
  );
41
  $params = array(
42
  );
43
- echo json_encode((new AdsPixel($id))->getShareDAgencies(
44
  $fields,
45
  $params
46
  )->getResponse()->getContent(), JSON_PRETTY_PRINT);
40
  );
41
  $params = array(
42
  );
43
+ echo json_encode((new AdsPixel($id))->getSharedAgencies(
44
  $fields,
45
  $params
46
  )->getResponse()->getContent(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/BusinessOwnedProductCatalogsPostDestinationCatalog.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<BUSINESS_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/BusinessOwnedProductCatalogsPostFlightCatalog.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<BUSINESS_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/BusinessOwnedProductCatalogsPostHotelCatalog.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<BUSINESS_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/BusinessOwnedProductCatalogsPostProductCatalog.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<BUSINESS_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/PageFeedEdge.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<PAGE_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/PageNode.php CHANGED
@@ -30,7 +30,7 @@ use FacebookAds\Logger\CurlLogger;
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
- $id = '<ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
+ $id = '<PAGE_ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/PagePhotosPost.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<PAGE_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/PagePictureEdge.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<PAGE_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/PagePostCommentsEdge.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ */
23
+
24
+ require __DIR__ . '/vendor/autoload.php';
25
+
26
+ use FacebookAds\Object\PagePost;
27
+ use FacebookAds\Object\Comment;
28
+ use FacebookAds\Api;
29
+ use FacebookAds\Logger\CurlLogger;
30
+
31
+ $access_token = '<ACCESS_TOKEN>';
32
+ $app_secret = '<APP_SECRET>';
33
+ $app_id = '<APP_ID>';
34
+ $id = '<PAGE_POST_ID>';
35
+
36
+ $api = Api::init($app_id, $app_secret, $access_token);
37
+ $api->setLogger(new CurlLogger());
38
+
39
+ $fields = array(
40
+ );
41
+ $params = array(
42
+ );
43
+ echo json_encode((new PagePost($id))->getComments(
44
+ $fields,
45
+ $params
46
+ )->getResponse()->getContent(), JSON_PRETTY_PRINT);
vendor/facebook/php-business-sdk/examples/PagePostCommentsPost.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<PAGE_POST_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/PagePostDelete.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<PAGE_POST_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/PagePostNode.php CHANGED
@@ -30,7 +30,7 @@ use FacebookAds\Logger\CurlLogger;
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
- $id = '<ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
+ $id = '<PAGE_POST_ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/PagePostPost.php CHANGED
@@ -30,7 +30,7 @@ use FacebookAds\Logger\CurlLogger;
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
- $id = '<ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
+ $id = '<PAGE_POST_ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/PagePostsEdge.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<PAGE_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/PagePostsEdgePagePostCreateCarousel.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<PAGE_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/PageRolesEdge.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<PAGE_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/ProductCatalogProductFeedsPostProductFeed.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<PRODUCT_CATALOG_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/UserAccountsEdge.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<APP_SCOPED_USER_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/UserLeadGenInfoNode.php CHANGED
@@ -30,7 +30,7 @@ use FacebookAds\Logger\CurlLogger;
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
- $id = '<ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
+ $id = '<LEAD_ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/UserNode.php CHANGED
@@ -30,7 +30,7 @@ use FacebookAds\Logger\CurlLogger;
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
- $id = '<ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
30
  $access_token = '<ACCESS_TOKEN>';
31
  $app_secret = '<APP_SECRET>';
32
  $app_id = '<APP_ID>';
33
+ $id = '<USER_ID>';
34
 
35
  $api = Api::init($app_id, $app_secret, $access_token);
36
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/examples/VideoThumbnailsEdge.php CHANGED
@@ -31,7 +31,7 @@ use FacebookAds\Logger\CurlLogger;
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
- $id = '<ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
31
  $access_token = '<ACCESS_TOKEN>';
32
  $app_secret = '<APP_SECRET>';
33
  $app_id = '<APP_ID>';
34
+ $id = '<VIDEO_ID>';
35
 
36
  $api = Api::init($app_id, $app_secret, $access_token);
37
  $api->setLogger(new CurlLogger());
vendor/facebook/php-business-sdk/src/FacebookAds/ApiConfig.php CHANGED
@@ -23,7 +23,7 @@
23
  */
24
  namespace FacebookAds;
25
  class ApiConfig {
26
- const APIVersion = '8.0';
27
- const SDKVersion = '8.0.2';
28
  const TYPE_CHECKER_STRICT_MODE = false;
29
  }
23
  */
24
  namespace FacebookAds;
25
  class ApiConfig {
26
+ const APIVersion = '9.0';
27
+ const SDKVersion = '9.0.1';
28
  const TYPE_CHECKER_STRICT_MODE = false;
29
  }
vendor/facebook/php-business-sdk/src/FacebookAds/CrashReporter.php CHANGED
@@ -140,8 +140,8 @@ class CrashReporter {
140
 
141
  $lastError = set_error_handler(
142
  function ($errno, $errstr, $errfile, $errline) use (&$lastError) {
143
- self::log('Error detected!');
144
  if (($errno & self::E_FATAL) && strpos($errfile, 'FacebookAds') != false) {
 
145
  $e = new \ErrorException($errstr, 0, $errno, $errfile, $errline);
146
  $params = $this->buildParamsFromException($e);
147
  if ($params != null) {
140
 
141
  $lastError = set_error_handler(
142
  function ($errno, $errstr, $errfile, $errline) use (&$lastError) {
 
143
  if (($errno & self::E_FATAL) && strpos($errfile, 'FacebookAds') != false) {
144
+ self::log('Error detected!');
145
  $e = new \ErrorException($errstr, 0, $errno, $errfile, $errline);
146
  $params = $this->buildParamsFromException($e);
147
  if ($params != null) {
vendor/facebook/php-business-sdk/src/FacebookAds/Http/Client.php CHANGED
@@ -24,7 +24,7 @@
24
 
25
  namespace FacebookAds\Http;
26
 
27
- use FacebookAds\Api;
28
  use FacebookAds\Http\Adapter\AdapterInterface;
29
  use FacebookAds\Http\Adapter\CurlAdapter;
30
  use FacebookAds\Http\Exception\EmptyResponseException;
@@ -128,7 +128,7 @@ class Client {
128
  public function getDefaultRequestHeaderds() {
129
  if ($this->defaultRequestHeaders === null) {
130
  $this->defaultRequestHeaders = new Headers(array(
131
- 'User-Agent' => 'fbbizsdk-php-v'.Api::VERSION,
132
  'Accept-Encoding' => '*',
133
  ));
134
  }
24
 
25
  namespace FacebookAds\Http;
26
 
27
+ use FacebookAds\ApiConfig;
28
  use FacebookAds\Http\Adapter\AdapterInterface;
29
  use FacebookAds\Http\Adapter\CurlAdapter;
30
  use FacebookAds\Http\Exception\EmptyResponseException;
128
  public function getDefaultRequestHeaderds() {
129
  if ($this->defaultRequestHeaders === null) {
130
  $this->defaultRequestHeaders = new Headers(array(
131
+ 'User-Agent' => 'fbbizsdk-php-v'.ApiConfig::SDKVersion,
132
  'Accept-Encoding' => '*',
133
  ));
134
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccount.php CHANGED
@@ -39,6 +39,7 @@ use FacebookAds\Object\Values\AdAccountDeliveryEstimateOptimizationGoalValues;
39
  use FacebookAds\Object\Values\AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues;
40
  use FacebookAds\Object\Values\AdAccountPermittedTasksValues;
41
  use FacebookAds\Object\Values\AdAccountSubtypeValues;
 
42
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedLimitTypeValues;
43
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedModeValues;
44
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedObjectiveValues;
@@ -102,6 +103,7 @@ use FacebookAds\Object\Values\CampaignEffectiveStatusValues;
102
  use FacebookAds\Object\Values\CampaignExecutionOptionsValues;
103
  use FacebookAds\Object\Values\CampaignObjectiveValues;
104
  use FacebookAds\Object\Values\CampaignOperatorValues;
 
105
  use FacebookAds\Object\Values\CampaignSpecialAdCategoriesValues;
106
  use FacebookAds\Object\Values\CampaignSpecialAdCategoryCountryValues;
107
  use FacebookAds\Object\Values\CampaignStatusValues;
@@ -344,6 +346,7 @@ class AdAccount extends AbstractCrudObject {
344
  'image_url' => 'string',
345
  'instagram_actor_id' => 'string',
346
  'instagram_permalink_url' => 'string',
 
347
  'instant_checkout_setting' => 'instant_checkout_setting_enum',
348
  'interactive_components_spec' => 'map',
349
  'is_dco_internal' => 'bool',
@@ -361,6 +364,7 @@ class AdAccount extends AbstractCrudObject {
361
  'portrait_customizations' => 'map',
362
  'product_set_id' => 'string',
363
  'recommender_settings' => 'map',
 
364
  'template_url' => 'string',
365
  'template_url_spec' => 'Object',
366
  'thumbnail_url' => 'string',
@@ -574,6 +578,7 @@ class AdAccount extends AbstractCrudObject {
574
  $param_types = array(
575
  'app_id' => 'string',
576
  'name' => 'string',
 
577
  'source' => 'file',
578
  'source_url' => 'string',
579
  'source_zip' => 'file',
@@ -1126,6 +1131,7 @@ class AdAccount extends AbstractCrudObject {
1126
  'sales_promo_id' => 'unsigned int',
1127
  'slideshow_spec' => 'map',
1128
  'source' => 'file',
 
1129
  'spherical' => 'bool',
1130
  'start_offset' => 'unsigned int',
1131
  'swap_mode' => 'swap_mode_enum',
@@ -1617,6 +1623,7 @@ class AdAccount extends AbstractCrudObject {
1617
  'objective' => 'objective_enum',
1618
  'pacing_type' => 'list<string>',
1619
  'promoted_object' => 'Object',
 
1620
  'source_campaign_id' => 'string',
1621
  'special_ad_categories' => 'list<special_ad_categories_enum>',
1622
  'special_ad_category_country' => 'list<special_ad_category_country_enum>',
@@ -1629,6 +1636,7 @@ class AdAccount extends AbstractCrudObject {
1629
  'bid_strategy_enum' => CampaignBidStrategyValues::getInstance()->getValues(),
1630
  'execution_options_enum' => CampaignExecutionOptionsValues::getInstance()->getValues(),
1631
  'objective_enum' => CampaignObjectiveValues::getInstance()->getValues(),
 
1632
  'special_ad_categories_enum' => CampaignSpecialAdCategoriesValues::getInstance()->getValues(),
1633
  'special_ad_category_country_enum' => CampaignSpecialAdCategoryCountryValues::getInstance()->getValues(),
1634
  'status_enum' => CampaignStatusValues::getInstance()->getValues(),
@@ -1675,6 +1683,29 @@ class AdAccount extends AbstractCrudObject {
1675
  return $pending ? $request : $request->execute();
1676
  }
1677
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1678
  public function getContentDeliveryReport(array $fields = array(), array $params = array(), $pending = false) {
1679
  $this->assureId();
1680
 
@@ -2719,9 +2750,12 @@ class AdAccount extends AbstractCrudObject {
2719
 
2720
  $param_types = array(
2721
  'allow_only_fat_head_interests' => 'bool',
 
2722
  'countries' => 'list<string>',
2723
  'is_exclusion' => 'bool',
2724
  'limit_type' => 'limit_type_enum',
 
 
2725
  'q' => 'string',
2726
  'regulated_categories' => 'list<regulated_categories_enum>',
2727
  'session_id' => 'unsigned int',
@@ -2729,7 +2763,9 @@ class AdAccount extends AbstractCrudObject {
2729
  'whitelisted_types' => 'list<whitelisted_types_enum>',
2730
  );
2731
  $enums = array(
 
2732
  'limit_type_enum' => AdAccountTargetingUnifiedLimitTypeValues::getInstance()->getValues(),
 
2733
  'regulated_categories_enum' => AdAccountTargetingUnifiedRegulatedCategoriesValues::getInstance()->getValues(),
2734
  'whitelisted_types_enum' => AdAccountTargetingUnifiedWhitelistedTypesValues::getInstance()->getValues(),
2735
  );
@@ -2780,6 +2816,7 @@ class AdAccount extends AbstractCrudObject {
2780
  $this->assureId();
2781
 
2782
  $param_types = array(
 
2783
  'countries' => 'list<string>',
2784
  'limit_type' => 'limit_type_enum',
2785
  'mode' => 'mode_enum',
@@ -2791,6 +2828,7 @@ class AdAccount extends AbstractCrudObject {
2791
  'whitelisted_types' => 'list<whitelisted_types_enum>',
2792
  );
2793
  $enums = array(
 
2794
  'limit_type_enum' => AdAccountTargetingUnifiedLimitTypeValues::getInstance()->getValues(),
2795
  'mode_enum' => AdAccountTargetingUnifiedModeValues::getInstance()->getValues(),
2796
  'objective_enum' => AdAccountTargetingUnifiedObjectiveValues::getInstance()->getValues(),
@@ -2840,30 +2878,6 @@ class AdAccount extends AbstractCrudObject {
2840
  return $pending ? $request : $request->execute();
2841
  }
2842
 
2843
- public function deleteTracking(array $fields = array(), array $params = array(), $pending = false) {
2844
- $this->assureId();
2845
-
2846
- $param_types = array(
2847
- 'tracking_specs' => 'Object',
2848
- );
2849
- $enums = array(
2850
- );
2851
-
2852
- $request = new ApiRequest(
2853
- $this->api,
2854
- $this->data['id'],
2855
- RequestInterface::METHOD_DELETE,
2856
- '/tracking',
2857
- new AbstractCrudObject(),
2858
- 'EDGE',
2859
- array(),
2860
- new TypeChecker($param_types, $enums)
2861
- );
2862
- $request->addParams($params);
2863
- $request->addFields($fields);
2864
- return $pending ? $request : $request->execute();
2865
- }
2866
-
2867
  public function getTracking(array $fields = array(), array $params = array(), $pending = false) {
2868
  $this->assureId();
2869
 
39
  use FacebookAds\Object\Values\AdAccountMatchedSearchApplicationsEdgeDataAppStoreValues;
40
  use FacebookAds\Object\Values\AdAccountPermittedTasksValues;
41
  use FacebookAds\Object\Values\AdAccountSubtypeValues;
42
+ use FacebookAds\Object\Values\AdAccountTargetingUnifiedAppStoreValues;
43
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedLimitTypeValues;
44
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedModeValues;
45
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedObjectiveValues;
103
  use FacebookAds\Object\Values\CampaignExecutionOptionsValues;
104
  use FacebookAds\Object\Values\CampaignObjectiveValues;
105
  use FacebookAds\Object\Values\CampaignOperatorValues;
106
+ use FacebookAds\Object\Values\CampaignSmartPromotionTypeValues;
107
  use FacebookAds\Object\Values\CampaignSpecialAdCategoriesValues;
108
  use FacebookAds\Object\Values\CampaignSpecialAdCategoryCountryValues;
109
  use FacebookAds\Object\Values\CampaignStatusValues;
346
  'image_url' => 'string',
347
  'instagram_actor_id' => 'string',
348
  'instagram_permalink_url' => 'string',
349
+ 'instagram_user_id' => 'string',
350
  'instant_checkout_setting' => 'instant_checkout_setting_enum',
351
  'interactive_components_spec' => 'map',
352
  'is_dco_internal' => 'bool',
364
  'portrait_customizations' => 'map',
365
  'product_set_id' => 'string',
366
  'recommender_settings' => 'map',
367
+ 'source_instagram_media_id' => 'string',
368
  'template_url' => 'string',
369
  'template_url_spec' => 'Object',
370
  'thumbnail_url' => 'string',
578
  $param_types = array(
579
  'app_id' => 'string',
580
  'name' => 'string',
581
+ 'session_id' => 'string',
582
  'source' => 'file',
583
  'source_url' => 'string',
584
  'source_zip' => 'file',
1131
  'sales_promo_id' => 'unsigned int',
1132
  'slideshow_spec' => 'map',
1133
  'source' => 'file',
1134
+ 'source_instagram_media_id' => 'string',
1135
  'spherical' => 'bool',
1136
  'start_offset' => 'unsigned int',
1137
  'swap_mode' => 'swap_mode_enum',
1623
  'objective' => 'objective_enum',
1624
  'pacing_type' => 'list<string>',
1625
  'promoted_object' => 'Object',
1626
+ 'smart_promotion_type' => 'smart_promotion_type_enum',
1627
  'source_campaign_id' => 'string',
1628
  'special_ad_categories' => 'list<special_ad_categories_enum>',
1629
  'special_ad_category_country' => 'list<special_ad_category_country_enum>',
1636
  'bid_strategy_enum' => CampaignBidStrategyValues::getInstance()->getValues(),
1637
  'execution_options_enum' => CampaignExecutionOptionsValues::getInstance()->getValues(),
1638
  'objective_enum' => CampaignObjectiveValues::getInstance()->getValues(),
1639
+ 'smart_promotion_type_enum' => CampaignSmartPromotionTypeValues::getInstance()->getValues(),
1640
  'special_ad_categories_enum' => CampaignSpecialAdCategoriesValues::getInstance()->getValues(),
1641
  'special_ad_category_country_enum' => CampaignSpecialAdCategoryCountryValues::getInstance()->getValues(),
1642
  'status_enum' => CampaignStatusValues::getInstance()->getValues(),
1683
  return $pending ? $request : $request->execute();
1684
  }
1685
 
1686
+ public function getConnectedInstagramAccounts(array $fields = array(), array $params = array(), $pending = false) {
1687
+ $this->assureId();
1688
+
1689
+ $param_types = array(
1690
+ );
1691
+ $enums = array(
1692
+ );
1693
+
1694
+ $request = new ApiRequest(
1695
+ $this->api,
1696
+ $this->data['id'],
1697
+ RequestInterface::METHOD_GET,
1698
+ '/connected_instagram_accounts',
1699
+ new IGUser(),
1700
+ 'EDGE',
1701
+ IGUser::getFieldsEnum()->getValues(),
1702
+ new TypeChecker($param_types, $enums)
1703
+ );
1704
+ $request->addParams($params);
1705
+ $request->addFields($fields);
1706
+ return $pending ? $request : $request->execute();
1707
+ }
1708
+
1709
  public function getContentDeliveryReport(array $fields = array(), array $params = array(), $pending = false) {
1710
  $this->assureId();
1711
 
2750
 
2751
  $param_types = array(
2752
  'allow_only_fat_head_interests' => 'bool',
2753
+ 'app_store' => 'app_store_enum',
2754
  'countries' => 'list<string>',
2755
  'is_exclusion' => 'bool',
2756
  'limit_type' => 'limit_type_enum',
2757
+ 'objective' => 'objective_enum',
2758
+ 'promoted_object' => 'Object',
2759
  'q' => 'string',
2760
  'regulated_categories' => 'list<regulated_categories_enum>',
2761
  'session_id' => 'unsigned int',
2763
  'whitelisted_types' => 'list<whitelisted_types_enum>',
2764
  );
2765
  $enums = array(
2766
+ 'app_store_enum' => AdAccountTargetingUnifiedAppStoreValues::getInstance()->getValues(),
2767
  'limit_type_enum' => AdAccountTargetingUnifiedLimitTypeValues::getInstance()->getValues(),
2768
+ 'objective_enum' => AdAccountTargetingUnifiedObjectiveValues::getInstance()->getValues(),
2769
  'regulated_categories_enum' => AdAccountTargetingUnifiedRegulatedCategoriesValues::getInstance()->getValues(),
2770
  'whitelisted_types_enum' => AdAccountTargetingUnifiedWhitelistedTypesValues::getInstance()->getValues(),
2771
  );
2816
  $this->assureId();
2817
 
2818
  $param_types = array(
2819
+ 'app_store' => 'app_store_enum',
2820
  'countries' => 'list<string>',
2821
  'limit_type' => 'limit_type_enum',
2822
  'mode' => 'mode_enum',
2828
  'whitelisted_types' => 'list<whitelisted_types_enum>',
2829
  );
2830
  $enums = array(
2831
+ 'app_store_enum' => AdAccountTargetingUnifiedAppStoreValues::getInstance()->getValues(),
2832
  'limit_type_enum' => AdAccountTargetingUnifiedLimitTypeValues::getInstance()->getValues(),
2833
  'mode_enum' => AdAccountTargetingUnifiedModeValues::getInstance()->getValues(),
2834
  'objective_enum' => AdAccountTargetingUnifiedObjectiveValues::getInstance()->getValues(),
2878
  return $pending ? $request : $request->execute();
2879
  }
2880
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2881
  public function getTracking(array $fields = array(), array $params = array(), $pending = false) {
2882
  $this->assureId();
2883
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdAccountTargetingUnified.php CHANGED
@@ -29,6 +29,7 @@ use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
  use FacebookAds\Object\Fields\AdAccountTargetingUnifiedFields;
 
32
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedLimitTypeValues;
33
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedModeValues;
34
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedObjectiveValues;
@@ -58,8 +59,9 @@ class AdAccountTargetingUnified extends AbstractCrudObject {
58
  $ref_enums['LimitType'] = AdAccountTargetingUnifiedLimitTypeValues::getInstance()->getValues();
59
  $ref_enums['RegulatedCategories'] = AdAccountTargetingUnifiedRegulatedCategoriesValues::getInstance()->getValues();
60
  $ref_enums['WhitelistedTypes'] = AdAccountTargetingUnifiedWhitelistedTypesValues::getInstance()->getValues();
61
- $ref_enums['Mode'] = AdAccountTargetingUnifiedModeValues::getInstance()->getValues();
62
  $ref_enums['Objective'] = AdAccountTargetingUnifiedObjectiveValues::getInstance()->getValues();
 
63
  return $ref_enums;
64
  }
65
 
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
  use FacebookAds\Object\Fields\AdAccountTargetingUnifiedFields;
32
+ use FacebookAds\Object\Values\AdAccountTargetingUnifiedAppStoreValues;
33
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedLimitTypeValues;
34
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedModeValues;
35
  use FacebookAds\Object\Values\AdAccountTargetingUnifiedObjectiveValues;
59
  $ref_enums['LimitType'] = AdAccountTargetingUnifiedLimitTypeValues::getInstance()->getValues();
60
  $ref_enums['RegulatedCategories'] = AdAccountTargetingUnifiedRegulatedCategoriesValues::getInstance()->getValues();
61
  $ref_enums['WhitelistedTypes'] = AdAccountTargetingUnifiedWhitelistedTypesValues::getInstance()->getValues();
62
+ $ref_enums['AppStore'] = AdAccountTargetingUnifiedAppStoreValues::getInstance()->getValues();
63
  $ref_enums['Objective'] = AdAccountTargetingUnifiedObjectiveValues::getInstance()->getValues();
64
+ $ref_enums['Mode'] = AdAccountTargetingUnifiedModeValues::getInstance()->getValues();
65
  return $ref_enums;
66
  }
67
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdCreative.php CHANGED
@@ -210,7 +210,6 @@ class AdCreative extends AbstractCrudObject {
210
  $param_types = array(
211
  'thumbnail_height' => 'unsigned int',
212
  'thumbnail_width' => 'unsigned int',
213
- 'with_unified_spec' => 'bool',
214
  );
215
  $enums = array(
216
  );
210
  $param_types = array(
211
  'thumbnail_height' => 'unsigned int',
212
  'thumbnail_width' => 'unsigned int',
 
213
  );
214
  $enums = array(
215
  );
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdStudy.php CHANGED
@@ -120,7 +120,6 @@ class AdStudy extends AbstractCrudObject {
120
  'is_primary' => 'bool',
121
  'name' => 'string',
122
  'offline_conversion_data_sets' => 'list<Object>',
123
- 'offsitepixels' => 'list<Object>',
124
  'product_catalogs' => 'list<Object>',
125
  'product_sets' => 'list<Object>',
126
  'type' => 'type_enum',
120
  'is_primary' => 'bool',
121
  'name' => 'string',
122
  'offline_conversion_data_sets' => 'list<Object>',
 
123
  'product_catalogs' => 'list<Object>',
124
  'product_sets' => 'list<Object>',
125
  'type' => 'type_enum',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/AdStudyObjective.php CHANGED
@@ -171,29 +171,6 @@ class AdStudyObjective extends AbstractCrudObject {
171
  return $pending ? $request : $request->execute();
172
  }
173
 
174
- public function getOffsitePixels(array $fields = array(), array $params = array(), $pending = false) {
175
- $this->assureId();
176
-
177
- $param_types = array(
178
- );
179
- $enums = array(
180
- );
181
-
182
- $request = new ApiRequest(
183
- $this->api,
184
- $this->data['id'],
185
- RequestInterface::METHOD_GET,
186
- '/offsitepixels',
187
- new OffsitePixel(),
188
- 'EDGE',
189
- OffsitePixel::getFieldsEnum()->getValues(),
190
- new TypeChecker($param_types, $enums)
191
- );
192
- $request->addParams($params);
193
- $request->addFields($fields);
194
- return $pending ? $request : $request->execute();
195
- }
196
-
197
  public function getPartnerStudies(array $fields = array(), array $params = array(), $pending = false) {
198
  $this->assureId();
199
 
@@ -281,7 +258,6 @@ class AdStudyObjective extends AbstractCrudObject {
281
  'is_primary' => 'bool',
282
  'name' => 'string',
283
  'offline_conversion_data_sets' => 'list<Object>',
284
- 'offsitepixels' => 'list<Object>',
285
  'product_catalogs' => 'list<Object>',
286
  'product_sets' => 'list<Object>',
287
  'type' => 'type_enum',
171
  return $pending ? $request : $request->execute();
172
  }
173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  public function getPartnerStudies(array $fields = array(), array $params = array(), $pending = false) {
175
  $this->assureId();
176
 
258
  'is_primary' => 'bool',
259
  'name' => 'string',
260
  'offline_conversion_data_sets' => 'list<Object>',
 
261
  'product_catalogs' => 'list<Object>',
262
  'product_sets' => 'list<Object>',
263
  'type' => 'type_enum',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Business.php CHANGED
@@ -42,7 +42,6 @@ use FacebookAds\Object\Values\BusinessPagePermittedTasksValues;
42
  use FacebookAds\Object\Values\BusinessPermittedTasksValues;
43
  use FacebookAds\Object\Values\BusinessSurveyBusinessTypeValues;
44
  use FacebookAds\Object\Values\BusinessTwoFactorTypeValues;
45
- use FacebookAds\Object\Values\BusinessUserRoleValues;
46
  use FacebookAds\Object\Values\BusinessVerticalValues;
47
  use FacebookAds\Object\Values\CPASCollaborationRequestRequesterAgencyOrBrandValues;
48
  use FacebookAds\Object\Values\ContentDeliveryReportPlatformValues;
@@ -57,7 +56,6 @@ use FacebookAds\Object\Values\OracleTransactionTypeValues;
57
  use FacebookAds\Object\Values\ProductCatalogVerticalValues;
58
  use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues;
59
  use FacebookAds\Object\Values\ProfilePictureSourceTypeValues;
60
- use FacebookAds\Object\Values\SystemUserRoleValues;
61
 
62
  /**
63
  * This class is auto-generated.
@@ -115,6 +113,30 @@ class Business extends AbstractCrudObject {
115
  return $pending ? $request : $request->execute();
116
  }
117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  public function getAdStudies(array $fields = array(), array $params = array(), $pending = false) {
119
  $this->assureId();
120
 
@@ -603,32 +625,6 @@ class Business extends AbstractCrudObject {
603
  return $pending ? $request : $request->execute();
604
  }
605
 
606
- public function createBusinessUser(array $fields = array(), array $params = array(), $pending = false) {
607
- $this->assureId();
608
-
609
- $param_types = array(
610
- 'email' => 'string',
611
- 'role' => 'role_enum',
612
- );
613
- $enums = array(
614
- 'role_enum' => BusinessUserRoleValues::getInstance()->getValues(),
615
- );
616
-
617
- $request = new ApiRequest(
618
- $this->api,
619
- $this->data['id'],
620
- RequestInterface::METHOD_POST,
621
- '/business_users',
622
- new BusinessUser(),
623
- 'EDGE',
624
- BusinessUser::getFieldsEnum()->getValues(),
625
- new TypeChecker($param_types, $enums)
626
- );
627
- $request->addParams($params);
628
- $request->addFields($fields);
629
- return $pending ? $request : $request->execute();
630
- }
631
-
632
  public function createClaimCustomConversion(array $fields = array(), array $params = array(), $pending = false) {
633
  $this->assureId();
634
 
@@ -1275,6 +1271,29 @@ class Business extends AbstractCrudObject {
1275
  return $pending ? $request : $request->execute();
1276
  }
1277
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1278
  public function deleteManagedBusinesses(array $fields = array(), array $params = array(), $pending = false) {
1279
  $this->assureId();
1280
 
@@ -1711,12 +1730,10 @@ class Business extends AbstractCrudObject {
1711
  $param_types = array(
1712
  'catalog_segment_filter' => 'Object',
1713
  'catalog_segment_product_set_id' => 'string',
1714
- 'commerce_merchant_settings' => 'Object',
1715
  'da_display_settings' => 'Object',
1716
  'destination_catalog_settings' => 'map',
1717
  'flight_catalog_settings' => 'map',
1718
  'name' => 'string',
1719
- 'onsite_commerce_merchant' => 'Object',
1720
  'parent_catalog_id' => 'string',
1721
  'store_catalog_settings' => 'map',
1722
  'vertical' => 'vertical_enum',
@@ -1740,6 +1757,29 @@ class Business extends AbstractCrudObject {
1740
  return $pending ? $request : $request->execute();
1741
  }
1742
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1743
  public function deletePages(array $fields = array(), array $params = array(), $pending = false) {
1744
  $this->assureId();
1745
 
@@ -2031,33 +2071,6 @@ class Business extends AbstractCrudObject {
2031
  return $pending ? $request : $request->execute();
2032
  }
2033
 
2034
- public function createSystemUser(array $fields = array(), array $params = array(), $pending = false) {
2035
- $this->assureId();
2036
-
2037
- $param_types = array(
2038
- 'name' => 'string',
2039
- 'role' => 'role_enum',
2040
- 'system_user_id' => 'int',
2041
- );
2042
- $enums = array(
2043
- 'role_enum' => SystemUserRoleValues::getInstance()->getValues(),
2044
- );
2045
-
2046
- $request = new ApiRequest(
2047
- $this->api,
2048
- $this->data['id'],
2049
- RequestInterface::METHOD_POST,
2050
- '/system_users',
2051
- new SystemUser(),
2052
- 'EDGE',
2053
- SystemUser::getFieldsEnum()->getValues(),
2054
- new TypeChecker($param_types, $enums)
2055
- );
2056
- $request->addParams($params);
2057
- $request->addFields($fields);
2058
- return $pending ? $request : $request->execute();
2059
- }
2060
-
2061
  public function getThirdPartyMeasurementReportDataset(array $fields = array(), array $params = array(), $pending = false) {
2062
  $this->assureId();
2063
 
42
  use FacebookAds\Object\Values\BusinessPermittedTasksValues;
43
  use FacebookAds\Object\Values\BusinessSurveyBusinessTypeValues;
44
  use FacebookAds\Object\Values\BusinessTwoFactorTypeValues;
 
45
  use FacebookAds\Object\Values\BusinessVerticalValues;
46
  use FacebookAds\Object\Values\CPASCollaborationRequestRequesterAgencyOrBrandValues;
47
  use FacebookAds\Object\Values\ContentDeliveryReportPlatformValues;
56
  use FacebookAds\Object\Values\ProductCatalogVerticalValues;
57
  use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues;
58
  use FacebookAds\Object\Values\ProfilePictureSourceTypeValues;
 
59
 
60
  /**
61
  * This class is auto-generated.
113
  return $pending ? $request : $request->execute();
114
  }
115
 
116
+ public function deleteAdAccounts(array $fields = array(), array $params = array(), $pending = false) {
117
+ $this->assureId();
118
+
119
+ $param_types = array(
120
+ 'adaccount_id' => 'string',
121
+ );
122
+ $enums = array(
123
+ );
124
+
125
+ $request = new ApiRequest(
126
+ $this->api,
127
+ $this->data['id'],
128
+ RequestInterface::METHOD_DELETE,
129
+ '/ad_accounts',
130
+ new AbstractCrudObject(),
131
+ 'EDGE',
132
+ array(),
133
+ new TypeChecker($param_types, $enums)
134
+ );
135
+ $request->addParams($params);
136
+ $request->addFields($fields);
137
+ return $pending ? $request : $request->execute();
138
+ }
139
+
140
  public function getAdStudies(array $fields = array(), array $params = array(), $pending = false) {
141
  $this->assureId();
142
 
625
  return $pending ? $request : $request->execute();
626
  }
627
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
628
  public function createClaimCustomConversion(array $fields = array(), array $params = array(), $pending = false) {
629
  $this->assureId();
630
 
1271
  return $pending ? $request : $request->execute();
1272
  }
1273
 
1274
+ public function getInstagramBusinessAccounts(array $fields = array(), array $params = array(), $pending = false) {
1275
+ $this->assureId();
1276
+
1277
+ $param_types = array(
1278
+ );
1279
+ $enums = array(
1280
+ );
1281
+
1282
+ $request = new ApiRequest(
1283
+ $this->api,
1284
+ $this->data['id'],
1285
+ RequestInterface::METHOD_GET,
1286
+ '/instagram_business_accounts',
1287
+ new IGUser(),
1288
+ 'EDGE',
1289
+ IGUser::getFieldsEnum()->getValues(),
1290
+ new TypeChecker($param_types, $enums)
1291
+ );
1292
+ $request->addParams($params);
1293
+ $request->addFields($fields);
1294
+ return $pending ? $request : $request->execute();
1295
+ }
1296
+
1297
  public function deleteManagedBusinesses(array $fields = array(), array $params = array(), $pending = false) {
1298
  $this->assureId();
1299
 
1730
  $param_types = array(
1731
  'catalog_segment_filter' => 'Object',
1732
  'catalog_segment_product_set_id' => 'string',
 
1733
  'da_display_settings' => 'Object',
1734
  'destination_catalog_settings' => 'map',
1735
  'flight_catalog_settings' => 'map',
1736
  'name' => 'string',
 
1737
  'parent_catalog_id' => 'string',
1738
  'store_catalog_settings' => 'map',
1739
  'vertical' => 'vertical_enum',
1757
  return $pending ? $request : $request->execute();
1758
  }
1759
 
1760
+ public function getOwnedWhatsAppBusinessAccounts(array $fields = array(), array $params = array(), $pending = false) {
1761
+ $this->assureId();
1762
+
1763
+ $param_types = array(
1764
+ );
1765
+ $enums = array(
1766
+ );
1767
+
1768
+ $request = new ApiRequest(
1769
+ $this->api,
1770
+ $this->data['id'],
1771
+ RequestInterface::METHOD_GET,
1772
+ '/owned_whatsapp_business_accounts',
1773
+ new WhatsAppBusinessAccount(),
1774
+ 'EDGE',
1775
+ WhatsAppBusinessAccount::getFieldsEnum()->getValues(),
1776
+ new TypeChecker($param_types, $enums)
1777
+ );
1778
+ $request->addParams($params);
1779
+ $request->addFields($fields);
1780
+ return $pending ? $request : $request->execute();
1781
+ }
1782
+
1783
  public function deletePages(array $fields = array(), array $params = array(), $pending = false) {
1784
  $this->assureId();
1785
 
2071
  return $pending ? $request : $request->execute();
2072
  }
2073
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2074
  public function getThirdPartyMeasurementReportDataset(array $fields = array(), array $params = array(), $pending = false) {
2075
  $this->assureId();
2076
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessUnit.php CHANGED
@@ -346,7 +346,6 @@ class BusinessUnit extends AbstractCrudObject {
346
 
347
  $param_types = array(
348
  'filter_by' => 'string',
349
- 'metric_scope' => 'map',
350
  'order_by' => 'string',
351
  );
352
  $enums = array(
346
 
347
  $param_types = array(
348
  'filter_by' => 'string',
 
349
  'order_by' => 'string',
350
  );
351
  $enums = array(
vendor/facebook/php-business-sdk/src/FacebookAds/Object/BusinessUser.php CHANGED
@@ -42,13 +42,6 @@ use FacebookAds\Object\Values\BusinessUserRoleValues;
42
 
43
  class BusinessUser extends AbstractCrudObject {
44
 
45
- /**
46
- * @deprecated getEndpoint function is deprecated
47
- */
48
- protected function getEndpoint() {
49
- return 'business_users';
50
- }
51
-
52
  /**
53
  * @return BusinessUserFields
54
  */
42
 
43
  class BusinessUser extends AbstractCrudObject {
44
 
 
 
 
 
 
 
 
45
  /**
46
  * @return BusinessUserFields
47
  */
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Campaign.php CHANGED
@@ -46,6 +46,7 @@ use FacebookAds\Object\Values\CampaignEffectiveStatusValues;
46
  use FacebookAds\Object\Values\CampaignExecutionOptionsValues;
47
  use FacebookAds\Object\Values\CampaignObjectiveValues;
48
  use FacebookAds\Object\Values\CampaignOperatorValues;
 
49
  use FacebookAds\Object\Values\CampaignSpecialAdCategoriesValues;
50
  use FacebookAds\Object\Values\CampaignSpecialAdCategoryCountryValues;
51
  use FacebookAds\Object\Values\CampaignSpecialAdCategoryValues;
@@ -93,6 +94,7 @@ class Campaign extends AbstractArchivableCrudObject {
93
  $ref_enums['DatePreset'] = CampaignDatePresetValues::getInstance()->getValues();
94
  $ref_enums['ExecutionOptions'] = CampaignExecutionOptionsValues::getInstance()->getValues();
95
  $ref_enums['Objective'] = CampaignObjectiveValues::getInstance()->getValues();
 
96
  $ref_enums['SpecialAdCategories'] = CampaignSpecialAdCategoriesValues::getInstance()->getValues();
97
  $ref_enums['SpecialAdCategoryCountry'] = CampaignSpecialAdCategoryCountryValues::getInstance()->getValues();
98
  $ref_enums['Operator'] = CampaignOperatorValues::getInstance()->getValues();
@@ -509,6 +511,7 @@ class Campaign extends AbstractArchivableCrudObject {
509
  'objective' => 'objective_enum',
510
  'pacing_type' => 'list<string>',
511
  'promoted_object' => 'Object',
 
512
  'special_ad_categories' => 'list<special_ad_categories_enum>',
513
  'special_ad_category' => 'special_ad_category_enum',
514
  'special_ad_category_country' => 'list<special_ad_category_country_enum>',
@@ -520,6 +523,7 @@ class Campaign extends AbstractArchivableCrudObject {
520
  'bid_strategy_enum' => CampaignBidStrategyValues::getInstance()->getValues(),
521
  'execution_options_enum' => CampaignExecutionOptionsValues::getInstance()->getValues(),
522
  'objective_enum' => CampaignObjectiveValues::getInstance()->getValues(),
 
523
  'special_ad_categories_enum' => CampaignSpecialAdCategoriesValues::getInstance()->getValues(),
524
  'special_ad_category_enum' => CampaignSpecialAdCategoryValues::getInstance()->getValues(),
525
  'special_ad_category_country_enum' => CampaignSpecialAdCategoryCountryValues::getInstance()->getValues(),
46
  use FacebookAds\Object\Values\CampaignExecutionOptionsValues;
47
  use FacebookAds\Object\Values\CampaignObjectiveValues;
48
  use FacebookAds\Object\Values\CampaignOperatorValues;
49
+ use FacebookAds\Object\Values\CampaignSmartPromotionTypeValues;
50
  use FacebookAds\Object\Values\CampaignSpecialAdCategoriesValues;
51
  use FacebookAds\Object\Values\CampaignSpecialAdCategoryCountryValues;
52
  use FacebookAds\Object\Values\CampaignSpecialAdCategoryValues;
94
  $ref_enums['DatePreset'] = CampaignDatePresetValues::getInstance()->getValues();
95
  $ref_enums['ExecutionOptions'] = CampaignExecutionOptionsValues::getInstance()->getValues();
96
  $ref_enums['Objective'] = CampaignObjectiveValues::getInstance()->getValues();
97
+ $ref_enums['SmartPromotionType'] = CampaignSmartPromotionTypeValues::getInstance()->getValues();
98
  $ref_enums['SpecialAdCategories'] = CampaignSpecialAdCategoriesValues::getInstance()->getValues();
99
  $ref_enums['SpecialAdCategoryCountry'] = CampaignSpecialAdCategoryCountryValues::getInstance()->getValues();
100
  $ref_enums['Operator'] = CampaignOperatorValues::getInstance()->getValues();
511
  'objective' => 'objective_enum',
512
  'pacing_type' => 'list<string>',
513
  'promoted_object' => 'Object',
514
+ 'smart_promotion_type' => 'smart_promotion_type_enum',
515
  'special_ad_categories' => 'list<special_ad_categories_enum>',
516
  'special_ad_category' => 'special_ad_category_enum',
517
  'special_ad_category_country' => 'list<special_ad_category_country_enum>',
523
  'bid_strategy_enum' => CampaignBidStrategyValues::getInstance()->getValues(),
524
  'execution_options_enum' => CampaignExecutionOptionsValues::getInstance()->getValues(),
525
  'objective_enum' => CampaignObjectiveValues::getInstance()->getValues(),
526
+ 'smart_promotion_type_enum' => CampaignSmartPromotionTypeValues::getInstance()->getValues(),
527
  'special_ad_categories_enum' => CampaignSpecialAdCategoriesValues::getInstance()->getValues(),
528
  'special_ad_category_enum' => CampaignSpecialAdCategoryValues::getInstance()->getValues(),
529
  'special_ad_category_country_enum' => CampaignSpecialAdCategoryCountryValues::getInstance()->getValues(),
vendor/facebook/php-business-sdk/src/FacebookAds/Object/CommerceMerchantSettings.php CHANGED
@@ -29,8 +29,6 @@ use FacebookAds\Cursor;
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
  use FacebookAds\Object\Fields\CommerceMerchantSettingsFields;
32
- use FacebookAds\Object\Values\CommerceMerchantSettingsCtaValues;
33
- use FacebookAds\Object\Values\CommerceMerchantSettingsMerchantStatusValues;
34
 
35
  /**
36
  * This class is auto-generated.
@@ -52,84 +50,10 @@ class CommerceMerchantSettings extends AbstractCrudObject {
52
 
53
  protected static function getReferencedEnums() {
54
  $ref_enums = array();
55
- $ref_enums['Cta'] = CommerceMerchantSettingsCtaValues::getInstance()->getValues();
56
- $ref_enums['MerchantStatus'] = CommerceMerchantSettingsMerchantStatusValues::getInstance()->getValues();
57
  return $ref_enums;
58
  }
59
 
60
 
61
- public function createFacebookChannel(array $fields = array(), array $params = array(), $pending = false) {
62
- $this->assureId();
63
-
64
- $param_types = array(
65
- 'pages' => 'list<string>',
66
- );
67
- $enums = array(
68
- );
69
-
70
- $request = new ApiRequest(
71
- $this->api,
72
- $this->data['id'],
73
- RequestInterface::METHOD_POST,
74
- '/facebook_channel',
75
- new CommerceMerchantSettings(),
76
- 'EDGE',
77
- CommerceMerchantSettings::getFieldsEnum()->getValues(),
78
- new TypeChecker($param_types, $enums)
79
- );
80
- $request->addParams($params);
81
- $request->addFields($fields);
82
- return $pending ? $request : $request->execute();
83
- }
84
-
85
- public function deleteInstagramChannel(array $fields = array(), array $params = array(), $pending = false) {
86
- $this->assureId();
87
-
88
- $param_types = array(
89
- );
90
- $enums = array(
91
- );
92
-
93
- $request = new ApiRequest(
94
- $this->api,
95
- $this->data['id'],
96
- RequestInterface::METHOD_DELETE,
97
- '/instagram_channel',
98
- new AbstractCrudObject(),
99
- 'EDGE',
100
- array(),
101
- new TypeChecker($param_types, $enums)
102
- );
103
- $request->addParams($params);
104
- $request->addFields($fields);
105
- return $pending ? $request : $request->execute();
106
- }
107
-
108
- public function createInstagramChannel(array $fields = array(), array $params = array(), $pending = false) {
109
- $this->assureId();
110
-
111
- $param_types = array(
112
- 'instagram_business_accounts' => 'list<string>',
113
- 'instagram_users' => 'list<string>',
114
- );
115
- $enums = array(
116
- );
117
-
118
- $request = new ApiRequest(
119
- $this->api,
120
- $this->data['id'],
121
- RequestInterface::METHOD_POST,
122
- '/instagram_channel',
123
- new CommerceMerchantSettings(),
124
- 'EDGE',
125
- CommerceMerchantSettings::getFieldsEnum()->getValues(),
126
- new TypeChecker($param_types, $enums)
127
- );
128
- $request->addParams($params);
129
- $request->addFields($fields);
130
- return $pending ? $request : $request->execute();
131
- }
132
-
133
  public function getOrderManagementApps(array $fields = array(), array $params = array(), $pending = false) {
134
  $this->assureId();
135
 
@@ -383,35 +307,4 @@ class CommerceMerchantSettings extends AbstractCrudObject {
383
  return $pending ? $request : $request->execute();
384
  }
385
 
386
- public function updateSelf(array $fields = array(), array $params = array(), $pending = false) {
387
- $this->assureId();
388
-
389
- $param_types = array(
390
- 'contact_email' => 'string',
391
- 'cta' => 'cta_enum',
392
- 'merchant_alert_email' => 'string',
393
- 'merchant_status' => 'merchant_status_enum',
394
- 'onsite_commerce_merchant' => 'Object',
395
- 'terms' => 'string',
396
- );
397
- $enums = array(
398
- 'cta_enum' => CommerceMerchantSettingsCtaValues::getInstance()->getValues(),
399
- 'merchant_status_enum' => CommerceMerchantSettingsMerchantStatusValues::getInstance()->getValues(),
400
- );
401
-
402
- $request = new ApiRequest(
403
- $this->api,
404
- $this->data['id'],
405
- RequestInterface::METHOD_POST,
406
- '/',
407
- new CommerceMerchantSettings(),
408
- 'NODE',
409
- CommerceMerchantSettings::getFieldsEnum()->getValues(),
410
- new TypeChecker($param_types, $enums)
411
- );
412
- $request->addParams($params);
413
- $request->addFields($fields);
414
- return $pending ? $request : $request->execute();
415
- }
416
-
417
  }
29
  use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
  use FacebookAds\Object\Fields\CommerceMerchantSettingsFields;
 
 
32
 
33
  /**
34
  * This class is auto-generated.
50
 
51
  protected static function getReferencedEnums() {
52
  $ref_enums = array();
 
 
53
  return $ref_enums;
54
  }
55
 
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  public function getOrderManagementApps(array $fields = array(), array $params = array(), $pending = false) {
58
  $this->assureId();
59
 
307
  return $pending ? $request : $request->execute();
308
  }
309
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
310
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCampaignActivityFields.php CHANGED
@@ -77,6 +77,8 @@ class AdCampaignActivityFields extends AbstractEnum {
77
  const OPTIMIZATION_GOAL_OLD = 'optimization_goal_old';
78
  const PACING_TYPE_NEW = 'pacing_type_new';
79
  const PACING_TYPE_OLD = 'pacing_type_old';
 
 
80
  const RUN_STATUS_NEW = 'run_status_new';
81
  const RUN_STATUS_OLD = 'run_status_old';
82
  const SCHEDULE_NEW = 'schedule_new';
@@ -89,6 +91,8 @@ class AdCampaignActivityFields extends AbstractEnum {
89
  const STOP_TIME_OLD = 'stop_time_old';
90
  const TARGETING_EXPANSION_NEW = 'targeting_expansion_new';
91
  const TARGETING_EXPANSION_OLD = 'targeting_expansion_old';
 
 
92
  const UPDATED_TIME_NEW = 'updated_time_new';
93
  const UPDATED_TIME_OLD = 'updated_time_old';
94
 
@@ -134,6 +138,8 @@ class AdCampaignActivityFields extends AbstractEnum {
134
  'optimization_goal_old' => 'OptimizationGoalOld',
135
  'pacing_type_new' => 'int',
136
  'pacing_type_old' => 'int',
 
 
137
  'run_status_new' => 'string',
138
  'run_status_old' => 'string',
139
  'schedule_new' => 'list<Object>',
@@ -146,6 +152,8 @@ class AdCampaignActivityFields extends AbstractEnum {
146
  'stop_time_old' => 'datetime',
147
  'targeting_expansion_new' => 'Object',
148
  'targeting_expansion_old' => 'Object',
 
 
149
  'updated_time_new' => 'datetime',
150
  'updated_time_old' => 'datetime',
151
  );
77
  const OPTIMIZATION_GOAL_OLD = 'optimization_goal_old';
78
  const PACING_TYPE_NEW = 'pacing_type_new';
79
  const PACING_TYPE_OLD = 'pacing_type_old';
80
+ const PROMOTED_OBJECT_ID_NEW = 'promoted_object_id_new';
81
+ const PROMOTED_OBJECT_ID_OLD = 'promoted_object_id_old';
82
  const RUN_STATUS_NEW = 'run_status_new';
83
  const RUN_STATUS_OLD = 'run_status_old';
84
  const SCHEDULE_NEW = 'schedule_new';
91
  const STOP_TIME_OLD = 'stop_time_old';
92
  const TARGETING_EXPANSION_NEW = 'targeting_expansion_new';
93
  const TARGETING_EXPANSION_OLD = 'targeting_expansion_old';
94
+ const TARGETING_NEW = 'targeting_new';
95
+ const TARGETING_OLD = 'targeting_old';
96
  const UPDATED_TIME_NEW = 'updated_time_new';
97
  const UPDATED_TIME_OLD = 'updated_time_old';
98
 
138
  'optimization_goal_old' => 'OptimizationGoalOld',
139
  'pacing_type_new' => 'int',
140
  'pacing_type_old' => 'int',
141
+ 'promoted_object_id_new' => 'string',
142
+ 'promoted_object_id_old' => 'string',
143
  'run_status_new' => 'string',
144
  'run_status_old' => 'string',
145
  'schedule_new' => 'list<Object>',
152
  'stop_time_old' => 'datetime',
153
  'targeting_expansion_new' => 'Object',
154
  'targeting_expansion_old' => 'Object',
155
+ 'targeting_new' => 'Object',
156
+ 'targeting_old' => 'Object',
157
  'updated_time_new' => 'datetime',
158
  'updated_time_old' => 'datetime',
159
  );
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdCreativeFields.php CHANGED
@@ -65,6 +65,7 @@ class AdCreativeFields extends AbstractEnum {
65
  const INSTAGRAM_ACTOR_ID = 'instagram_actor_id';
66
  const INSTAGRAM_PERMALINK_URL = 'instagram_permalink_url';
67
  const INSTAGRAM_STORY_ID = 'instagram_story_id';
 
68
  const INTERACTIVE_COMPONENTS_SPEC = 'interactive_components_spec';
69
  const LINK_DEEP_LINK_URL = 'link_deep_link_url';
70
  const LINK_DESTINATION_DISPLAY_URL = 'link_destination_display_url';
@@ -84,6 +85,7 @@ class AdCreativeFields extends AbstractEnum {
84
  const PORTRAIT_CUSTOMIZATIONS = 'portrait_customizations';
85
  const PRODUCT_SET_ID = 'product_set_id';
86
  const RECOMMENDER_SETTINGS = 'recommender_settings';
 
87
  const STATUS = 'status';
88
  const TEMPLATE_URL = 'template_url';
89
  const TEMPLATE_URL_SPEC = 'template_url_spec';
@@ -127,6 +129,7 @@ class AdCreativeFields extends AbstractEnum {
127
  'instagram_actor_id' => 'string',
128
  'instagram_permalink_url' => 'string',
129
  'instagram_story_id' => 'string',
 
130
  'interactive_components_spec' => 'AdCreativeInteractiveComponentsSpec',
131
  'link_deep_link_url' => 'string',
132
  'link_destination_display_url' => 'string',
@@ -146,6 +149,7 @@ class AdCreativeFields extends AbstractEnum {
146
  'portrait_customizations' => 'AdCreativePortraitCustomizations',
147
  'product_set_id' => 'string',
148
  'recommender_settings' => 'AdCreativeRecommenderSettings',
 
149
  'status' => 'Status',
150
  'template_url' => 'string',
151
  'template_url_spec' => 'AdCreativeTemplateURLSpec',
65
  const INSTAGRAM_ACTOR_ID = 'instagram_actor_id';
66
  const INSTAGRAM_PERMALINK_URL = 'instagram_permalink_url';
67
  const INSTAGRAM_STORY_ID = 'instagram_story_id';
68
+ const INSTAGRAM_USER_ID = 'instagram_user_id';
69
  const INTERACTIVE_COMPONENTS_SPEC = 'interactive_components_spec';
70
  const LINK_DEEP_LINK_URL = 'link_deep_link_url';
71
  const LINK_DESTINATION_DISPLAY_URL = 'link_destination_display_url';
85
  const PORTRAIT_CUSTOMIZATIONS = 'portrait_customizations';
86
  const PRODUCT_SET_ID = 'product_set_id';
87
  const RECOMMENDER_SETTINGS = 'recommender_settings';
88
+ const SOURCE_INSTAGRAM_MEDIA_ID = 'source_instagram_media_id';
89
  const STATUS = 'status';
90
  const TEMPLATE_URL = 'template_url';
91
  const TEMPLATE_URL_SPEC = 'template_url_spec';
129
  'instagram_actor_id' => 'string',
130
  'instagram_permalink_url' => 'string',
131
  'instagram_story_id' => 'string',
132
+ 'instagram_user_id' => 'string',
133
  'interactive_components_spec' => 'AdCreativeInteractiveComponentsSpec',
134
  'link_deep_link_url' => 'string',
135
  'link_destination_display_url' => 'string',
149
  'portrait_customizations' => 'AdCreativePortraitCustomizations',
150
  'product_set_id' => 'string',
151
  'recommender_settings' => 'AdCreativeRecommenderSettings',
152
+ 'source_instagram_media_id' => 'string',
153
  'status' => 'Status',
154
  'template_url' => 'string',
155
  'template_url_spec' => 'AdCreativeTemplateURLSpec',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdgroupActivityFields.php CHANGED
@@ -81,6 +81,8 @@ class AdgroupActivityFields extends AbstractEnum {
81
  const STOP_TIME_OLD = 'stop_time_old';
82
  const TARGET_SPEC_ID_NEW = 'target_spec_id_new';
83
  const TARGET_SPEC_ID_OLD = 'target_spec_id_old';
 
 
84
  const TRACKING_PIXEL_IDS_NEW = 'tracking_pixel_ids_new';
85
  const TRACKING_PIXEL_IDS_OLD = 'tracking_pixel_ids_old';
86
  const TRACKING_SPECS_NEW = 'tracking_specs_new';
@@ -136,6 +138,8 @@ class AdgroupActivityFields extends AbstractEnum {
136
  'stop_time_old' => 'datetime',
137
  'target_spec_id_new' => 'string',
138
  'target_spec_id_old' => 'string',
 
 
139
  'tracking_pixel_ids_new' => 'list<string>',
140
  'tracking_pixel_ids_old' => 'list<string>',
141
  'tracking_specs_new' => 'list<Object>',
81
  const STOP_TIME_OLD = 'stop_time_old';
82
  const TARGET_SPEC_ID_NEW = 'target_spec_id_new';
83
  const TARGET_SPEC_ID_OLD = 'target_spec_id_old';
84
+ const TARGETS_SPEC_NEW = 'targets_spec_new';
85
+ const TARGETS_SPEC_OLD = 'targets_spec_old';
86
  const TRACKING_PIXEL_IDS_NEW = 'tracking_pixel_ids_new';
87
  const TRACKING_PIXEL_IDS_OLD = 'tracking_pixel_ids_old';
88
  const TRACKING_SPECS_NEW = 'tracking_specs_new';
138
  'stop_time_old' => 'datetime',
139
  'target_spec_id_new' => 'string',
140
  'target_spec_id_old' => 'string',
141
+ 'targets_spec_new' => 'Object',
142
+ 'targets_spec_old' => 'Object',
143
  'tracking_pixel_ids_new' => 'list<string>',
144
  'tracking_pixel_ids_old' => 'list<string>',
145
  'tracking_specs_new' => 'list<Object>',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/AdoptablePetFields.php CHANGED
@@ -46,17 +46,24 @@ class AdoptablePetFields extends AbstractEnum {
46
  const AVAILABILITY = 'availability';
47
  const BREED = 'breed';
48
  const CATEGORY_SPECIFIC_FIELDS = 'category_specific_fields';
 
 
49
  const CURRENCY = 'currency';
50
  const DESCRIPTION = 'description';
 
51
  const GENDER = 'gender';
52
  const ID = 'id';
53
  const IMAGES = 'images';
54
  const NAME = 'name';
55
  const PRICE = 'price';
56
  const SANITIZED_IMAGES = 'sanitized_images';
 
 
57
  const SHELTER_NAME = 'shelter_name';
58
  const SHELTER_PAGE_ID = 'shelter_page_id';
 
59
  const SIZE = 'size';
 
60
  const URL = 'url';
61
 
62
  public function getFieldTypes() {
@@ -70,17 +77,24 @@ class AdoptablePetFields extends AbstractEnum {
70
  'availability' => 'string',
71
  'breed' => 'string',
72
  'category_specific_fields' => 'CatalogSubVerticalList',
 
 
73
  'currency' => 'string',
74
  'description' => 'string',
 
75
  'gender' => 'string',
76
  'id' => 'string',
77
  'images' => 'list<string>',
78
  'name' => 'string',
79
  'price' => 'string',
80
  'sanitized_images' => 'list<string>',
 
 
81
  'shelter_name' => 'string',
82
  'shelter_page_id' => 'Page',
 
83
  'size' => 'string',
 
84
  'url' => 'string',
85
  );
86
  }
46
  const AVAILABILITY = 'availability';
47
  const BREED = 'breed';
48
  const CATEGORY_SPECIFIC_FIELDS = 'category_specific_fields';
49
+ const COAT_LENGTH = 'coat_length';
50
+ const COLOR = 'color';
51
  const CURRENCY = 'currency';
52
  const DESCRIPTION = 'description';
53
+ const FEATURES = 'features';
54
  const GENDER = 'gender';
55
  const ID = 'id';
56
  const IMAGES = 'images';
57
  const NAME = 'name';
58
  const PRICE = 'price';
59
  const SANITIZED_IMAGES = 'sanitized_images';
60
+ const SECONDARY_COLOR = 'secondary_color';
61
+ const SHELTER_EMAIL = 'shelter_email';
62
  const SHELTER_NAME = 'shelter_name';
63
  const SHELTER_PAGE_ID = 'shelter_page_id';
64
+ const SHELTER_PHONE = 'shelter_phone';
65
  const SIZE = 'size';
66
+ const TERTIARY_COLOR = 'tertiary_color';
67
  const URL = 'url';
68
 
69
  public function getFieldTypes() {
77
  'availability' => 'string',
78
  'breed' => 'string',
79
  'category_specific_fields' => 'CatalogSubVerticalList',
80
+ 'coat_length' => 'string',
81
+ 'color' => 'string',
82
  'currency' => 'string',
83
  'description' => 'string',
84
+ 'features' => 'list<string>',
85
  'gender' => 'string',
86
  'id' => 'string',
87
  'images' => 'list<string>',
88
  'name' => 'string',
89
  'price' => 'string',
90
  'sanitized_images' => 'list<string>',
91
+ 'secondary_color' => 'string',
92
+ 'shelter_email' => 'string',
93
  'shelter_name' => 'string',
94
  'shelter_page_id' => 'Page',
95
+ 'shelter_phone' => 'string',
96
  'size' => 'string',
97
+ 'tertiary_color' => 'string',
98
  'url' => 'string',
99
  );
100
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/Agency.php CHANGED
@@ -22,7 +22,7 @@
22
  *
23
  */
24
 
25
- namespace FacebookAds\Object;
26
 
27
  class Agency extends AbstractObject {
28
 
22
  *
23
  */
24
 
25
+ namespace FacebookAds\Object\Fields;
26
 
27
  class Agency extends AbstractObject {
28
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ApplicationFields.php CHANGED
@@ -43,6 +43,7 @@ class ApplicationFields extends AbstractEnum {
43
  const ANDROID_KEY_HASH = 'android_key_hash';
44
  const ANDROID_SDK_ERROR_CATEGORIES = 'android_sdk_error_categories';
45
  const APP_DOMAINS = 'app_domains';
 
46
  const APP_EVENTS_FEATURE_BITMASK = 'app_events_feature_bitmask';
47
  const APP_EVENTS_SESSION_TIMEOUT = 'app_events_session_timeout';
48
  const APP_INSTALL_TRACKED = 'app_install_tracked';
@@ -146,6 +147,7 @@ class ApplicationFields extends AbstractEnum {
146
  'android_key_hash' => 'list<string>',
147
  'android_sdk_error_categories' => 'list<Object>',
148
  'app_domains' => 'list<string>',
 
149
  'app_events_feature_bitmask' => 'unsigned int',
150
  'app_events_session_timeout' => 'unsigned int',
151
  'app_install_tracked' => 'bool',
43
  const ANDROID_KEY_HASH = 'android_key_hash';
44
  const ANDROID_SDK_ERROR_CATEGORIES = 'android_sdk_error_categories';
45
  const APP_DOMAINS = 'app_domains';
46
+ const APP_EVENTS_CONFIG = 'app_events_config';
47
  const APP_EVENTS_FEATURE_BITMASK = 'app_events_feature_bitmask';
48
  const APP_EVENTS_SESSION_TIMEOUT = 'app_events_session_timeout';
49
  const APP_INSTALL_TRACKED = 'app_install_tracked';
147
  'android_key_hash' => 'list<string>',
148
  'android_sdk_error_categories' => 'list<Object>',
149
  'app_domains' => 'list<string>',
150
+ 'app_events_config' => 'Object',
151
  'app_events_feature_bitmask' => 'unsigned int',
152
  'app_events_session_timeout' => 'unsigned int',
153
  'app_install_tracked' => 'bool',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CampaignFields.php CHANGED
@@ -38,6 +38,7 @@ use FacebookAds\Enum\AbstractEnum;
38
  class CampaignFields extends AbstractEnum {
39
 
40
  const ACCOUNT_ID = 'account_id';
 
41
  const ADLABELS = 'adlabels';
42
  const BID_STRATEGY = 'bid_strategy';
43
  const BOOSTED_OBJECT_ID = 'boosted_object_id';
@@ -74,11 +75,13 @@ class CampaignFields extends AbstractEnum {
74
  const ADBATCH = 'adbatch';
75
  const EXECUTION_OPTIONS = 'execution_options';
76
  const ITERATIVE_SPLIT_TEST_CONFIGS = 'iterative_split_test_configs';
 
77
  const UPSTREAM_EVENTS = 'upstream_events';
78
 
79
  public function getFieldTypes() {
80
  return array(
81
  'account_id' => 'string',
 
82
  'adlabels' => 'list<AdLabel>',
83
  'bid_strategy' => 'BidStrategy',
84
  'boosted_object_id' => 'string',
@@ -115,6 +118,7 @@ class CampaignFields extends AbstractEnum {
115
  'adbatch' => 'list<Object>',
116
  'execution_options' => 'list<ExecutionOptions>',
117
  'iterative_split_test_configs' => 'list<Object>',
 
118
  'upstream_events' => 'map',
119
  );
120
  }
38
  class CampaignFields extends AbstractEnum {
39
 
40
  const ACCOUNT_ID = 'account_id';
41
+ const AD_STRATEGY_ID = 'ad_strategy_id';
42
  const ADLABELS = 'adlabels';
43
  const BID_STRATEGY = 'bid_strategy';
44
  const BOOSTED_OBJECT_ID = 'boosted_object_id';
75
  const ADBATCH = 'adbatch';
76
  const EXECUTION_OPTIONS = 'execution_options';
77
  const ITERATIVE_SPLIT_TEST_CONFIGS = 'iterative_split_test_configs';
78
+ const SMART_PROMOTION_TYPE = 'smart_promotion_type';
79
  const UPSTREAM_EVENTS = 'upstream_events';
80
 
81
  public function getFieldTypes() {
82
  return array(
83
  'account_id' => 'string',
84
+ 'ad_strategy_id' => 'string',
85
  'adlabels' => 'list<AdLabel>',
86
  'bid_strategy' => 'BidStrategy',
87
  'boosted_object_id' => 'string',
118
  'adbatch' => 'list<Object>',
119
  'execution_options' => 'list<ExecutionOptions>',
120
  'iterative_split_test_configs' => 'list<Object>',
121
+ 'smart_promotion_type' => 'SmartPromotionType',
122
  'upstream_events' => 'map',
123
  );
124
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceMerchantSettingsFields.php CHANGED
@@ -43,6 +43,7 @@ class CommerceMerchantSettingsFields extends AbstractEnum {
43
  const CTA = 'cta';
44
  const DISABLE_CHECKOUT_URLS = 'disable_checkout_urls';
45
  const DISPLAY_NAME = 'display_name';
 
46
  const FACEBOOK_CHANNEL = 'facebook_channel';
47
  const HAS_DISCOUNT_CODE = 'has_discount_code';
48
  const ID = 'id';
@@ -69,6 +70,7 @@ class CommerceMerchantSettingsFields extends AbstractEnum {
69
  'cta' => 'string',
70
  'disable_checkout_urls' => 'bool',
71
  'display_name' => 'string',
 
72
  'facebook_channel' => 'Object',
73
  'has_discount_code' => 'bool',
74
  'id' => 'string',
43
  const CTA = 'cta';
44
  const DISABLE_CHECKOUT_URLS = 'disable_checkout_urls';
45
  const DISPLAY_NAME = 'display_name';
46
+ const EXTERNAL_MERCHANT_ID = 'external_merchant_id';
47
  const FACEBOOK_CHANNEL = 'facebook_channel';
48
  const HAS_DISCOUNT_CODE = 'has_discount_code';
49
  const ID = 'id';
70
  'cta' => 'string',
71
  'disable_checkout_urls' => 'bool',
72
  'display_name' => 'string',
73
+ 'external_merchant_id' => 'string',
74
  'facebook_channel' => 'Object',
75
  'has_discount_code' => 'bool',
76
  'id' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/CommerceMerchantSettingsSetupStatusFields.php CHANGED
@@ -41,6 +41,7 @@ class CommerceMerchantSettingsSetupStatusFields extends AbstractEnum {
41
  const MARKETPLACE_APPROVAL_STATUS = 'marketplace_approval_status';
42
  const MARKETPLACE_APPROVAL_STATUS_DETAILS = 'marketplace_approval_status_details';
43
  const PAYMENT_SETUP = 'payment_setup';
 
44
  const SHOP_SETUP = 'shop_setup';
45
 
46
  public function getFieldTypes() {
@@ -49,6 +50,7 @@ class CommerceMerchantSettingsSetupStatusFields extends AbstractEnum {
49
  'marketplace_approval_status' => 'string',
50
  'marketplace_approval_status_details' => 'Object',
51
  'payment_setup' => 'string',
 
52
  'shop_setup' => 'string',
53
  );
54
  }
41
  const MARKETPLACE_APPROVAL_STATUS = 'marketplace_approval_status';
42
  const MARKETPLACE_APPROVAL_STATUS_DETAILS = 'marketplace_approval_status_details';
43
  const PAYMENT_SETUP = 'payment_setup';
44
+ const REVIEW_STATUS = 'review_status';
45
  const SHOP_SETUP = 'shop_setup';
46
 
47
  public function getFieldTypes() {
50
  'marketplace_approval_status' => 'string',
51
  'marketplace_approval_status_details' => 'Object',
52
  'payment_setup' => 'string',
53
+ 'review_status' => 'Object',
54
  'shop_setup' => 'string',
55
  );
56
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ExtendedCreditFields.php CHANGED
@@ -44,7 +44,6 @@ class ExtendedCreditFields extends AbstractEnum {
44
  const ID = 'id';
45
  const IS_ACCESS_REVOKED = 'is_access_revoked';
46
  const IS_AUTOMATED_EXPERIENCE = 'is_automated_experience';
47
- const LAST_PAYMENT_TIME = 'last_payment_time';
48
  const LEGAL_ENTITY_NAME = 'legal_entity_name';
49
  const LIABLE_BIZ_NAME = 'liable_biz_name';
50
  const MAX_BALANCE = 'max_balance';
@@ -64,7 +63,6 @@ class ExtendedCreditFields extends AbstractEnum {
64
  'id' => 'string',
65
  'is_access_revoked' => 'bool',
66
  'is_automated_experience' => 'bool',
67
- 'last_payment_time' => 'datetime',
68
  'legal_entity_name' => 'string',
69
  'liable_biz_name' => 'string',
70
  'max_balance' => 'CurrencyAmount',
44
  const ID = 'id';
45
  const IS_ACCESS_REVOKED = 'is_access_revoked';
46
  const IS_AUTOMATED_EXPERIENCE = 'is_automated_experience';
 
47
  const LEGAL_ENTITY_NAME = 'legal_entity_name';
48
  const LIABLE_BIZ_NAME = 'liable_biz_name';
49
  const MAX_BALANCE = 'max_balance';
63
  'id' => 'string',
64
  'is_access_revoked' => 'bool',
65
  'is_automated_experience' => 'bool',
 
66
  'legal_entity_name' => 'string',
67
  'liable_biz_name' => 'string',
68
  'max_balance' => 'CurrencyAmount',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PageFields.php CHANGED
@@ -60,6 +60,7 @@ class PageFields extends AbstractEnum {
60
  const CHECKINS = 'checkins';
61
  const COMPANY_OVERVIEW = 'company_overview';
62
  const CONNECTED_INSTAGRAM_ACCOUNT = 'connected_instagram_account';
 
63
  const CONTACT_ADDRESS = 'contact_address';
64
  const COPYRIGHT_WHITELISTED_IG_PARTNERS = 'copyright_whitelisted_ig_partners';
65
  const COUNTRY_PAGE_LIKES = 'country_page_likes';
@@ -204,6 +205,7 @@ class PageFields extends AbstractEnum {
204
  'checkins' => 'unsigned int',
205
  'company_overview' => 'string',
206
  'connected_instagram_account' => 'IGUser',
 
207
  'contact_address' => 'MailingAddress',
208
  'copyright_whitelisted_ig_partners' => 'list<string>',
209
  'country_page_likes' => 'unsigned int',
60
  const CHECKINS = 'checkins';
61
  const COMPANY_OVERVIEW = 'company_overview';
62
  const CONNECTED_INSTAGRAM_ACCOUNT = 'connected_instagram_account';
63
+ const CONNECTED_PAGE_BACKED_INSTAGRAM_ACCOUNT = 'connected_page_backed_instagram_account';
64
  const CONTACT_ADDRESS = 'contact_address';
65
  const COPYRIGHT_WHITELISTED_IG_PARTNERS = 'copyright_whitelisted_ig_partners';
66
  const COUNTRY_PAGE_LIKES = 'country_page_likes';
205
  'checkins' => 'unsigned int',
206
  'company_overview' => 'string',
207
  'connected_instagram_account' => 'IGUser',
208
+ 'connected_page_backed_instagram_account' => 'IGUser',
209
  'contact_address' => 'MailingAddress',
210
  'copyright_whitelisted_ig_partners' => 'list<string>',
211
  'country_page_likes' => 'unsigned int',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/PlayableContentFields.php CHANGED
@@ -41,6 +41,7 @@ class PlayableContentFields extends AbstractEnum {
41
  const NAME = 'name';
42
  const OWNER = 'owner';
43
  const APP_ID = 'app_id';
 
44
  const SOURCE = 'source';
45
  const SOURCE_URL = 'source_url';
46
  const SOURCE_ZIP = 'source_zip';
@@ -51,6 +52,7 @@ class PlayableContentFields extends AbstractEnum {
51
  'name' => 'string',
52
  'owner' => 'Profile',
53
  'app_id' => 'string',
 
54
  'source' => 'file',
55
  'source_url' => 'string',
56
  'source_zip' => 'file',
41
  const NAME = 'name';
42
  const OWNER = 'owner';
43
  const APP_ID = 'app_id';
44
+ const SESSION_ID = 'session_id';
45
  const SOURCE = 'source';
46
  const SOURCE_URL = 'source_url';
47
  const SOURCE_ZIP = 'source_zip';
52
  'name' => 'string',
53
  'owner' => 'Profile',
54
  'app_id' => 'string',
55
+ 'session_id' => 'string',
56
  'source' => 'file',
57
  'source_url' => 'string',
58
  'source_zip' => 'file',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductCatalogFields.php CHANGED
@@ -53,7 +53,6 @@ class ProductCatalogFields extends AbstractEnum {
53
  const CATALOG_SEGMENT_PRODUCT_SET_ID = 'catalog_segment_product_set_id';
54
  const DESTINATION_CATALOG_SETTINGS = 'destination_catalog_settings';
55
  const FLIGHT_CATALOG_SETTINGS = 'flight_catalog_settings';
56
- const ONSITE_COMMERCE_MERCHANT = 'onsite_commerce_merchant';
57
  const PARENT_CATALOG_ID = 'parent_catalog_id';
58
 
59
  public function getFieldTypes() {
@@ -74,7 +73,6 @@ class ProductCatalogFields extends AbstractEnum {
74
  'catalog_segment_product_set_id' => 'string',
75
  'destination_catalog_settings' => 'map',
76
  'flight_catalog_settings' => 'map',
77
- 'onsite_commerce_merchant' => 'Object',
78
  'parent_catalog_id' => 'string',
79
  );
80
  }
53
  const CATALOG_SEGMENT_PRODUCT_SET_ID = 'catalog_segment_product_set_id';
54
  const DESTINATION_CATALOG_SETTINGS = 'destination_catalog_settings';
55
  const FLIGHT_CATALOG_SETTINGS = 'flight_catalog_settings';
 
56
  const PARENT_CATALOG_ID = 'parent_catalog_id';
57
 
58
  public function getFieldTypes() {
73
  'catalog_segment_product_set_id' => 'string',
74
  'destination_catalog_settings' => 'map',
75
  'flight_catalog_settings' => 'map',
 
76
  'parent_catalog_id' => 'string',
77
  );
78
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductFeedFields.php CHANGED
@@ -47,6 +47,7 @@ class ProductFeedFields extends AbstractEnum {
47
  const ID = 'id';
48
  const ITEM_SUB_TYPE = 'item_sub_type';
49
  const LATEST_UPLOAD = 'latest_upload';
 
50
  const NAME = 'name';
51
  const OVERRIDE_TYPE = 'override_type';
52
  const PRODUCT_COUNT = 'product_count';
@@ -70,6 +71,7 @@ class ProductFeedFields extends AbstractEnum {
70
  'id' => 'string',
71
  'item_sub_type' => 'string',
72
  'latest_upload' => 'ProductFeedUpload',
 
73
  'name' => 'string',
74
  'override_type' => 'string',
75
  'product_count' => 'int',
47
  const ID = 'id';
48
  const ITEM_SUB_TYPE = 'item_sub_type';
49
  const LATEST_UPLOAD = 'latest_upload';
50
+ const MIGRATED_FROM_FEED_ID = 'migrated_from_feed_id';
51
  const NAME = 'name';
52
  const OVERRIDE_TYPE = 'override_type';
53
  const PRODUCT_COUNT = 'product_count';
71
  'id' => 'string',
72
  'item_sub_type' => 'string',
73
  'latest_upload' => 'ProductFeedUpload',
74
+ 'migrated_from_feed_id' => 'string',
75
  'name' => 'string',
76
  'override_type' => 'string',
77
  'product_count' => 'int',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ProductItemFields.php CHANGED
@@ -65,6 +65,7 @@ class ProductItemFields extends AbstractEnum {
65
  const ID = 'id';
66
  const IMAGE_CDN_URLS = 'image_cdn_urls';
67
  const IMAGE_URL = 'image_url';
 
68
  const INVENTORY = 'inventory';
69
  const MANUFACTURER_PART_NUMBER = 'manufacturer_part_number';
70
  const MATERIAL = 'material';
@@ -92,6 +93,7 @@ class ProductItemFields extends AbstractEnum {
92
  const URL = 'url';
93
  const VISIBILITY = 'visibility';
94
  const ADDITIONAL_IMAGE_FILES = 'additional_image_files';
 
95
  const ANDROID_APP_NAME = 'android_app_name';
96
  const ANDROID_CLASS = 'android_class';
97
  const ANDROID_PACKAGE = 'android_package';
@@ -146,6 +148,7 @@ class ProductItemFields extends AbstractEnum {
146
  'id' => 'string',
147
  'image_cdn_urls' => 'map<string, string>',
148
  'image_url' => 'string',
 
149
  'inventory' => 'int',
150
  'manufacturer_part_number' => 'string',
151
  'material' => 'string',
@@ -173,6 +176,7 @@ class ProductItemFields extends AbstractEnum {
173
  'url' => 'string',
174
  'visibility' => 'Visibility',
175
  'additional_image_files' => 'list<file>',
 
176
  'android_app_name' => 'string',
177
  'android_class' => 'string',
178
  'android_package' => 'string',
65
  const ID = 'id';
66
  const IMAGE_CDN_URLS = 'image_cdn_urls';
67
  const IMAGE_URL = 'image_url';
68
+ const IMAGES = 'images';
69
  const INVENTORY = 'inventory';
70
  const MANUFACTURER_PART_NUMBER = 'manufacturer_part_number';
71
  const MATERIAL = 'material';
93
  const URL = 'url';
94
  const VISIBILITY = 'visibility';
95
  const ADDITIONAL_IMAGE_FILES = 'additional_image_files';
96
+ const ADDITIONAL_UPLOADED_IMAGE_IDS = 'additional_uploaded_image_ids';
97
  const ANDROID_APP_NAME = 'android_app_name';
98
  const ANDROID_CLASS = 'android_class';
99
  const ANDROID_PACKAGE = 'android_package';
148
  'id' => 'string',
149
  'image_cdn_urls' => 'map<string, string>',
150
  'image_url' => 'string',
151
+ 'images' => 'list<string>',
152
  'inventory' => 'int',
153
  'manufacturer_part_number' => 'string',
154
  'material' => 'string',
176
  'url' => 'string',
177
  'visibility' => 'Visibility',
178
  'additional_image_files' => 'list<file>',
179
+ 'additional_uploaded_image_ids' => 'list<string>',
180
  'android_app_name' => 'string',
181
  'android_class' => 'string',
182
  'android_package' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/ReferralFields.php CHANGED
@@ -44,10 +44,12 @@ class ReferralFields extends AbstractEnum {
44
  const NAMESPACE = 'namespace';
45
  const NEED_PROMO_CODE = 'need_promo_code';
46
  const OFFER_ORIGIN = 'offer_origin';
 
47
  const PROMOTION_TEXT = 'promotion_text';
48
  const RECEIVER_BENEFITS_TEXT = 'receiver_benefits_text';
49
  const REFERRAL_LINK_URI = 'referral_link_uri';
50
  const SENDER_BENEFITS_TEXT = 'sender_benefits_text';
 
51
 
52
  public function getFieldTypes() {
53
  return array(
@@ -58,10 +60,12 @@ class ReferralFields extends AbstractEnum {
58
  'namespace' => 'string',
59
  'need_promo_code' => 'bool',
60
  'offer_origin' => 'string',
 
61
  'promotion_text' => 'string',
62
  'receiver_benefits_text' => 'string',
63
  'referral_link_uri' => 'string',
64
  'sender_benefits_text' => 'string',
 
65
  );
66
  }
67
  }
44
  const NAMESPACE = 'namespace';
45
  const NEED_PROMO_CODE = 'need_promo_code';
46
  const OFFER_ORIGIN = 'offer_origin';
47
+ const PRIVACY_POLICY_LINK = 'privacy_policy_link';
48
  const PROMOTION_TEXT = 'promotion_text';
49
  const RECEIVER_BENEFITS_TEXT = 'receiver_benefits_text';
50
  const REFERRAL_LINK_URI = 'referral_link_uri';
51
  const SENDER_BENEFITS_TEXT = 'sender_benefits_text';
52
+ const TERMS_AND_CONDITION_LINK = 'terms_and_condition_link';
53
 
54
  public function getFieldTypes() {
55
  return array(
60
  'namespace' => 'string',
61
  'need_promo_code' => 'bool',
62
  'offer_origin' => 'string',
63
+ 'privacy_policy_link' => 'string',
64
  'promotion_text' => 'string',
65
  'receiver_benefits_text' => 'string',
66
  'referral_link_uri' => 'string',
67
  'sender_benefits_text' => 'string',
68
+ 'terms_and_condition_link' => 'string',
69
  );
70
  }
71
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/UserFields.php CHANGED
@@ -68,6 +68,7 @@ class UserFields extends AbstractEnum {
68
  const LOCALE = 'locale';
69
  const LOCATION = 'location';
70
  const MEETING_FOR = 'meeting_for';
 
71
  const MIDDLE_NAME = 'middle_name';
72
  const NAME = 'name';
73
  const NAME_FORMAT = 'name_format';
@@ -75,6 +76,7 @@ class UserFields extends AbstractEnum {
75
  const POLITICAL = 'political';
76
  const PROFILE_PIC = 'profile_pic';
77
  const PUBLIC_KEY = 'public_key';
 
78
  const QUOTES = 'quotes';
79
  const RELATIONSHIP_STATUS = 'relationship_status';
80
  const RELIGION = 'religion';
@@ -87,6 +89,8 @@ class UserFields extends AbstractEnum {
87
  const TIMEZONE = 'timezone';
88
  const TOKEN_FOR_BUSINESS = 'token_for_business';
89
  const UPDATED_TIME = 'updated_time';
 
 
90
  const VERIFIED = 'verified';
91
  const VIDEO_UPLOAD_LIMITS = 'video_upload_limits';
92
  const WEBSITE = 'website';
@@ -125,6 +129,7 @@ class UserFields extends AbstractEnum {
125
  'locale' => 'string',
126
  'location' => 'Page',
127
  'meeting_for' => 'list<string>',
 
128
  'middle_name' => 'string',
129
  'name' => 'string',
130
  'name_format' => 'string',
@@ -132,6 +137,7 @@ class UserFields extends AbstractEnum {
132
  'political' => 'string',
133
  'profile_pic' => 'string',
134
  'public_key' => 'string',
 
135
  'quotes' => 'string',
136
  'relationship_status' => 'string',
137
  'religion' => 'string',
@@ -144,6 +150,8 @@ class UserFields extends AbstractEnum {
144
  'timezone' => 'float',
145
  'token_for_business' => 'string',
146
  'updated_time' => 'datetime',
 
 
147
  'verified' => 'bool',
148
  'video_upload_limits' => 'VideoUploadLimits',
149
  'website' => 'string',
68
  const LOCALE = 'locale';
69
  const LOCATION = 'location';
70
  const MEETING_FOR = 'meeting_for';
71
+ const MESSENGER_JOIN_NOTIFICATIONS_ENABLED = 'messenger_join_notifications_enabled';
72
  const MIDDLE_NAME = 'middle_name';
73
  const NAME = 'name';
74
  const NAME_FORMAT = 'name_format';
76
  const POLITICAL = 'political';
77
  const PROFILE_PIC = 'profile_pic';
78
  const PUBLIC_KEY = 'public_key';
79
+ const PUBLISHED_TIMELINE = 'published_timeline';
80
  const QUOTES = 'quotes';
81
  const RELATIONSHIP_STATUS = 'relationship_status';
82
  const RELIGION = 'religion';
89
  const TIMEZONE = 'timezone';
90
  const TOKEN_FOR_BUSINESS = 'token_for_business';
91
  const UPDATED_TIME = 'updated_time';
92
+ const USER_STORAGE_KEY = 'user_storage_key';
93
+ const USERNAME = 'username';
94
  const VERIFIED = 'verified';
95
  const VIDEO_UPLOAD_LIMITS = 'video_upload_limits';
96
  const WEBSITE = 'website';
129
  'locale' => 'string',
130
  'location' => 'Page',
131
  'meeting_for' => 'list<string>',
132
+ 'messenger_join_notifications_enabled' => 'bool',
133
  'middle_name' => 'string',
134
  'name' => 'string',
135
  'name_format' => 'string',
137
  'political' => 'string',
138
  'profile_pic' => 'string',
139
  'public_key' => 'string',
140
+ 'published_timeline' => 'bool',
141
  'quotes' => 'string',
142
  'relationship_status' => 'string',
143
  'religion' => 'string',
150
  'timezone' => 'float',
151
  'token_for_business' => 'string',
152
  'updated_time' => 'datetime',
153
+ 'user_storage_key' => 'string',
154
+ 'username' => 'string',
155
  'verified' => 'bool',
156
  'video_upload_limits' => 'VideoUploadLimits',
157
  'website' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Fields/WhatsAppBusinessAccountFields.php CHANGED
@@ -43,6 +43,7 @@ class WhatsAppBusinessAccountFields extends AbstractEnum {
43
  const MESSAGE_TEMPLATE_NAMESPACE = 'message_template_namespace';
44
  const NAME = 'name';
45
  const ON_BEHALF_OF_BUSINESS_INFO = 'on_behalf_of_business_info';
 
46
  const PRIMARY_FUNDING_ID = 'primary_funding_id';
47
  const PURCHASE_ORDER_NUMBER = 'purchase_order_number';
48
  const STATUS = 'status';
@@ -56,6 +57,7 @@ class WhatsAppBusinessAccountFields extends AbstractEnum {
56
  'message_template_namespace' => 'string',
57
  'name' => 'string',
58
  'on_behalf_of_business_info' => 'Object',
 
59
  'primary_funding_id' => 'string',
60
  'purchase_order_number' => 'string',
61
  'status' => 'string',
43
  const MESSAGE_TEMPLATE_NAMESPACE = 'message_template_namespace';
44
  const NAME = 'name';
45
  const ON_BEHALF_OF_BUSINESS_INFO = 'on_behalf_of_business_info';
46
+ const OWNER_BUSINESS_INFO = 'owner_business_info';
47
  const PRIMARY_FUNDING_ID = 'primary_funding_id';
48
  const PURCHASE_ORDER_NUMBER = 'purchase_order_number';
49
  const STATUS = 'status';
57
  'message_template_namespace' => 'string',
58
  'name' => 'string',
59
  'on_behalf_of_business_info' => 'Object',
60
+ 'owner_business_info' => 'Object',
61
  'primary_funding_id' => 'string',
62
  'purchase_order_number' => 'string',
63
  'status' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Flight.php CHANGED
@@ -84,8 +84,10 @@ class Flight extends AbstractCrudObject {
84
  'currency' => 'string',
85
  'description' => 'string',
86
  'destination_airport' => 'string',
 
87
  'images' => 'list<Object>',
88
  'origin_airport' => 'string',
 
89
  'price' => 'unsigned int',
90
  'url' => 'string',
91
  );
84
  'currency' => 'string',
85
  'description' => 'string',
86
  'destination_airport' => 'string',
87
+ 'destination_city' => 'string',
88
  'images' => 'list<Object>',
89
  'origin_airport' => 'string',
90
+ 'origin_city' => 'string',
91
  'price' => 'unsigned int',
92
  'url' => 'string',
93
  );
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Group.php CHANGED
@@ -823,6 +823,7 @@ class Group extends AbstractCrudObject {
823
  'scheduled_publish_time' => 'unsigned int',
824
  'slideshow_spec' => 'map',
825
  'source' => 'string',
 
826
  'spherical' => 'bool',
827
  'start_offset' => 'unsigned int',
828
  'swap_mode' => 'swap_mode_enum',
823
  'scheduled_publish_time' => 'unsigned int',
824
  'slideshow_spec' => 'map',
825
  'source' => 'string',
826
+ 'source_instagram_media_id' => 'string',
827
  'spherical' => 'bool',
828
  'start_offset' => 'unsigned int',
829
  'swap_mode' => 'swap_mode_enum',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/HotelRoom.php CHANGED
@@ -77,29 +77,6 @@ class HotelRoom extends AbstractCrudObject {
77
  return $pending ? $request : $request->execute();
78
  }
79
 
80
- public function deleteSelf(array $fields = array(), array $params = array(), $pending = false) {
81
- $this->assureId();
82
-
83
- $param_types = array(
84
- );
85
- $enums = array(
86
- );
87
-
88
- $request = new ApiRequest(
89
- $this->api,
90
- $this->data['id'],
91
- RequestInterface::METHOD_DELETE,
92
- '/',
93
- new AbstractCrudObject(),
94
- 'NODE',
95
- array(),
96
- new TypeChecker($param_types, $enums)
97
- );
98
- $request->addParams($params);
99
- $request->addFields($fields);
100
- return $pending ? $request : $request->execute();
101
- }
102
-
103
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
104
  $this->assureId();
105
 
77
  return $pending ? $request : $request->execute();
78
  }
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  public function getSelf(array $fields = array(), array $params = array(), $pending = false) {
81
  $this->assureId();
82
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/IGUser.php CHANGED
@@ -261,6 +261,7 @@ class IGUser extends AbstractCrudObject {
261
  $this->assureId();
262
 
263
  $param_types = array(
 
264
  );
265
  $enums = array(
266
  );
261
  $this->assureId();
262
 
263
  $param_types = array(
264
+ 'adgroup_id' => 'string',
265
  );
266
  $enums = array(
267
  );
vendor/facebook/php-business-sdk/src/FacebookAds/Object/InstagramUser.php CHANGED
@@ -154,6 +154,7 @@ class InstagramUser extends AbstractCrudObject {
154
  $this->assureId();
155
 
156
  $param_types = array(
 
157
  );
158
  $enums = array(
159
  );
154
  $this->assureId();
155
 
156
  $param_types = array(
157
+ 'adgroup_id' => 'string',
158
  );
159
  $enums = array(
160
  );
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Link.php CHANGED
@@ -30,6 +30,9 @@ use FacebookAds\Http\RequestInterface;
30
  use FacebookAds\TypeChecker;
31
  use FacebookAds\Object\Fields\LinkFields;
32
  use FacebookAds\Object\Values\CommentCommentPrivacyValueValues;
 
 
 
33
 
34
  /**
35
  * This class is auto-generated.
@@ -55,6 +58,36 @@ class Link extends AbstractCrudObject {
55
  }
56
 
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  public function createComment(array $fields = array(), array $params = array(), $pending = false) {
59
  $this->assureId();
60
 
30
  use FacebookAds\TypeChecker;
31
  use FacebookAds\Object\Fields\LinkFields;
32
  use FacebookAds\Object\Values\CommentCommentPrivacyValueValues;
33
+ use FacebookAds\Object\Values\CommentFilterValues;
34
+ use FacebookAds\Object\Values\CommentLiveFilterValues;
35
+ use FacebookAds\Object\Values\CommentOrderValues;
36
 
37
  /**
38
  * This class is auto-generated.
58
  }
59
 
60
 
61
+ public function getComments(array $fields = array(), array $params = array(), $pending = false) {
62
+ $this->assureId();
63
+
64
+ $param_types = array(
65
+ 'filter' => 'filter_enum',
66
+ 'live_filter' => 'live_filter_enum',
67
+ 'order' => 'order_enum',
68
+ 'since' => 'datetime',
69
+ );
70
+ $enums = array(
71
+ 'filter_enum' => CommentFilterValues::getInstance()->getValues(),
72
+ 'live_filter_enum' => CommentLiveFilterValues::getInstance()->getValues(),
73
+ 'order_enum' => CommentOrderValues::getInstance()->getValues(),
74
+ );
75
+
76
+ $request = new ApiRequest(
77
+ $this->api,
78
+ $this->data['id'],
79
+ RequestInterface::METHOD_GET,
80
+ '/comments',
81
+ new Comment(),
82
+ 'EDGE',
83
+ Comment::getFieldsEnum()->getValues(),
84
+ new TypeChecker($param_types, $enums)
85
+ );
86
+ $request->addParams($params);
87
+ $request->addFields($fields);
88
+ return $pending ? $request : $request->execute();
89
+ }
90
+
91
  public function createComment(array $fields = array(), array $params = array(), $pending = false) {
92
  $this->assureId();
93
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/LiveVideo.php CHANGED
@@ -349,15 +349,7 @@ class LiveVideo extends AbstractCrudObject {
349
  $this->assureId();
350
 
351
  $param_types = array(
352
- 'ad_break_drop_live_stream' => 'bool',
353
- 'ad_break_duration' => 'unsigned int',
354
- 'ad_break_encoder_drops_live_stream' => 'bool',
355
- 'ad_break_intent' => 'bool',
356
- 'ad_break_start_now' => 'bool',
357
- 'ad_break_time_offset' => 'float',
358
  'allow_bm_crossposting' => 'bool',
359
- 'attribution_app_id' => 'string',
360
- 'commercial_break_durations' => 'list<unsigned int>',
361
  'content_tags' => 'list<string>',
362
  'crossposting_actions' => 'list<map>',
363
  'custom_labels' => 'list<string>',
349
  $this->assureId();
350
 
351
  $param_types = array(
 
 
 
 
 
 
352
  'allow_bm_crossposting' => 'bool',
 
 
353
  'content_tags' => 'list<string>',
354
  'crossposting_actions' => 'list<map>',
355
  'custom_labels' => 'list<string>',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Page.php CHANGED
@@ -645,30 +645,6 @@ class Page extends AbstractCrudObject {
645
  return $pending ? $request : $request->execute();
646
  }
647
 
648
- public function createClaimedUrl(array $fields = array(), array $params = array(), $pending = false) {
649
- $this->assureId();
650
-
651
- $param_types = array(
652
- 'url' => 'string',
653
- );
654
- $enums = array(
655
- );
656
-
657
- $request = new ApiRequest(
658
- $this->api,
659
- $this->data['id'],
660
- RequestInterface::METHOD_POST,
661
- '/claimed_urls',
662
- new Page(),
663
- 'EDGE',
664
- Page::getFieldsEnum()->getValues(),
665
- new TypeChecker($param_types, $enums)
666
- );
667
- $request->addParams($params);
668
- $request->addFields($fields);
669
- return $pending ? $request : $request->execute();
670
- }
671
-
672
  public function getCommerceMerchantSettings(array $fields = array(), array $params = array(), $pending = false) {
673
  $this->assureId();
674
 
@@ -1895,29 +1871,6 @@ class Page extends AbstractCrudObject {
1895
  return $pending ? $request : $request->execute();
1896
  }
1897
 
1898
- public function getMessengerAdsPageWelcomeMessages(array $fields = array(), array $params = array(), $pending = false) {
1899
- $this->assureId();
1900
-
1901
- $param_types = array(
1902
- );
1903
- $enums = array(
1904
- );
1905
-
1906
- $request = new ApiRequest(
1907
- $this->api,
1908
- $this->data['id'],
1909
- RequestInterface::METHOD_GET,
1910
- '/messenger_ads_page_welcome_messages',
1911
- new MessengerDestinationPageWelcomeMessage(),
1912
- 'EDGE',
1913
- MessengerDestinationPageWelcomeMessage::getFieldsEnum()->getValues(),
1914
- new TypeChecker($param_types, $enums)
1915
- );
1916
- $request->addParams($params);
1917
- $request->addFields($fields);
1918
- return $pending ? $request : $request->execute();
1919
- }
1920
-
1921
  public function deleteMessengerProfile(array $fields = array(), array $params = array(), $pending = false) {
1922
  $this->assureId();
1923
 
@@ -2205,6 +2158,32 @@ class Page extends AbstractCrudObject {
2205
  return $pending ? $request : $request->execute();
2206
  }
2207
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2208
  public function getPersonas(array $fields = array(), array $params = array(), $pending = false) {
2209
  $this->assureId();
2210
 
@@ -2539,6 +2518,30 @@ class Page extends AbstractCrudObject {
2539
  return $pending ? $request : $request->execute();
2540
  }
2541
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2542
  public function createRequestThreadControl(array $fields = array(), array $params = array(), $pending = false) {
2543
  $this->assureId();
2544
 
@@ -3023,6 +3026,31 @@ class Page extends AbstractCrudObject {
3023
  return $pending ? $request : $request->execute();
3024
  }
3025
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3026
  public function createVideoCopyright(array $fields = array(), array $params = array(), $pending = false) {
3027
  $this->assureId();
3028
 
@@ -3185,6 +3213,7 @@ class Page extends AbstractCrudObject {
3185
  'slideshow_spec' => 'map',
3186
  'social_actions' => 'bool',
3187
  'source' => 'string',
 
3188
  'specified_dialect' => 'string',
3189
  'spherical' => 'bool',
3190
  'sponsor_id' => 'string',
645
  return $pending ? $request : $request->execute();
646
  }
647
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
648
  public function getCommerceMerchantSettings(array $fields = array(), array $params = array(), $pending = false) {
649
  $this->assureId();
650
 
1871
  return $pending ? $request : $request->execute();
1872
  }
1873
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1874
  public function deleteMessengerProfile(array $fields = array(), array $params = array(), $pending = false) {
1875
  $this->assureId();
1876
 
2158
  return $pending ? $request : $request->execute();
2159
  }
2160
 
2161
+ public function createPassThreadMetadatum(array $fields = array(), array $params = array(), $pending = false) {
2162
+ $this->assureId();
2163
+
2164
+ $param_types = array(
2165
+ 'metadata' => 'string',
2166
+ 'recipient' => 'Object',
2167
+ 'target_app_id' => 'int',
2168
+ );
2169
+ $enums = array(
2170
+ );
2171
+
2172
+ $request = new ApiRequest(
2173
+ $this->api,
2174
+ $this->data['id'],
2175
+ RequestInterface::METHOD_POST,
2176
+ '/pass_thread_metadata',
2177
+ new Page(),
2178
+ 'EDGE',
2179
+ Page::getFieldsEnum()->getValues(),
2180
+ new TypeChecker($param_types, $enums)
2181
+ );
2182
+ $request->addParams($params);
2183
+ $request->addFields($fields);
2184
+ return $pending ? $request : $request->execute();
2185
+ }
2186
+
2187
  public function getPersonas(array $fields = array(), array $params = array(), $pending = false) {
2188
  $this->assureId();
2189
 
2518
  return $pending ? $request : $request->execute();
2519
  }
2520
 
2521
+ public function createReleaseThreadControl(array $fields = array(), array $params = array(), $pending = false) {
2522
+ $this->assureId();
2523
+
2524
+ $param_types = array(
2525
+ 'recipient' => 'Object',
2526
+ );
2527
+ $enums = array(
2528
+ );
2529
+
2530
+ $request = new ApiRequest(
2531
+ $this->api,
2532
+ $this->data['id'],
2533
+ RequestInterface::METHOD_POST,
2534
+ '/release_thread_control',
2535
+ new Page(),
2536
+ 'EDGE',
2537
+ Page::getFieldsEnum()->getValues(),
2538
+ new TypeChecker($param_types, $enums)
2539
+ );
2540
+ $request->addParams($params);
2541
+ $request->addFields($fields);
2542
+ return $pending ? $request : $request->execute();
2543
+ }
2544
+
2545
  public function createRequestThreadControl(array $fields = array(), array $params = array(), $pending = false) {
2546
  $this->assureId();
2547
 
3026
  return $pending ? $request : $request->execute();
3027
  }
3028
 
3029
+ public function createVideoCopyrightRule(array $fields = array(), array $params = array(), $pending = false) {
3030
+ $this->assureId();
3031
+
3032
+ $param_types = array(
3033
+ 'condition_groups' => 'list<Object>',
3034
+ 'name' => 'string',
3035
+ );
3036
+ $enums = array(
3037
+ );
3038
+
3039
+ $request = new ApiRequest(
3040
+ $this->api,
3041
+ $this->data['id'],
3042
+ RequestInterface::METHOD_POST,
3043
+ '/video_copyright_rules',
3044
+ new VideoCopyrightRule(),
3045
+ 'EDGE',
3046
+ VideoCopyrightRule::getFieldsEnum()->getValues(),
3047
+ new TypeChecker($param_types, $enums)
3048
+ );
3049
+ $request->addParams($params);
3050
+ $request->addFields($fields);
3051
+ return $pending ? $request : $request->execute();
3052
+ }
3053
+
3054
  public function createVideoCopyright(array $fields = array(), array $params = array(), $pending = false) {
3055
  $this->assureId();
3056
 
3213
  'slideshow_spec' => 'map',
3214
  'social_actions' => 'bool',
3215
  'source' => 'string',
3216
+ 'source_instagram_media_id' => 'string',
3217
  'specified_dialect' => 'string',
3218
  'spherical' => 'bool',
3219
  'sponsor_id' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Post.php CHANGED
@@ -36,8 +36,15 @@ use FacebookAds\Object\Values\CommentOrderValues;
36
  use FacebookAds\Object\Values\InsightsResultDatePresetValues;
37
  use FacebookAds\Object\Values\InsightsResultPeriodValues;
38
  use FacebookAds\Object\Values\PostBackdatedTimeGranularityValues;
 
39
  use FacebookAds\Object\Values\PostFeedStoryVisibilityValues;
 
 
 
 
 
40
  use FacebookAds\Object\Values\PostTimelineVisibilityValues;
 
41
  use FacebookAds\Object\Values\ProfileTypeValues;
42
 
43
  /**
@@ -63,6 +70,13 @@ class Post extends AbstractCrudObject {
63
  $ref_enums['BackdatedTimeGranularity'] = PostBackdatedTimeGranularityValues::getInstance()->getValues();
64
  $ref_enums['FeedStoryVisibility'] = PostFeedStoryVisibilityValues::getInstance()->getValues();
65
  $ref_enums['TimelineVisibility'] = PostTimelineVisibilityValues::getInstance()->getValues();
 
 
 
 
 
 
 
66
  return $ref_enums;
67
  }
68
 
@@ -343,6 +357,7 @@ class Post extends AbstractCrudObject {
343
  'PLAY_GAME',
344
  'PURCHASE_GIFT_CARDS',
345
  'RECORD_NOW',
 
346
  'REQUEST_TIME',
347
  'SAY_THANKS',
348
  'SEE_MORE',
@@ -352,7 +367,10 @@ class Post extends AbstractCrudObject {
352
  'SHOP_NOW',
353
  'SIGN_UP',
354
  'SOTTO_SUBSCRIBE',
 
355
  'SUBSCRIBE',
 
 
356
  'UPDATE_APP',
357
  'USE_APP',
358
  'USE_MOBILE_APP',
36
  use FacebookAds\Object\Values\InsightsResultDatePresetValues;
37
  use FacebookAds\Object\Values\InsightsResultPeriodValues;
38
  use FacebookAds\Object\Values\PostBackdatedTimeGranularityValues;
39
+ use FacebookAds\Object\Values\PostCheckinEntryPointValues;
40
  use FacebookAds\Object\Values\PostFeedStoryVisibilityValues;
41
+ use FacebookAds\Object\Values\PostFormattingValues;
42
+ use FacebookAds\Object\Values\PostPlaceAttachmentSettingValues;
43
+ use FacebookAds\Object\Values\PostPostSurfacesBlacklistValues;
44
+ use FacebookAds\Object\Values\PostPostingToRedspaceValues;
45
+ use FacebookAds\Object\Values\PostTargetSurfaceValues;
46
  use FacebookAds\Object\Values\PostTimelineVisibilityValues;
47
+ use FacebookAds\Object\Values\PostUnpublishedContentTypeValues;
48
  use FacebookAds\Object\Values\ProfileTypeValues;
49
 
50
  /**
70
  $ref_enums['BackdatedTimeGranularity'] = PostBackdatedTimeGranularityValues::getInstance()->getValues();
71
  $ref_enums['FeedStoryVisibility'] = PostFeedStoryVisibilityValues::getInstance()->getValues();
72
  $ref_enums['TimelineVisibility'] = PostTimelineVisibilityValues::getInstance()->getValues();
73
+ $ref_enums['CheckinEntryPoint'] = PostCheckinEntryPointValues::getInstance()->getValues();
74
+ $ref_enums['Formatting'] = PostFormattingValues::getInstance()->getValues();
75
+ $ref_enums['PlaceAttachmentSetting'] = PostPlaceAttachmentSettingValues::getInstance()->getValues();
76
+ $ref_enums['PostSurfacesBlacklist'] = PostPostSurfacesBlacklistValues::getInstance()->getValues();
77
+ $ref_enums['PostingToRedspace'] = PostPostingToRedspaceValues::getInstance()->getValues();
78
+ $ref_enums['TargetSurface'] = PostTargetSurfaceValues::getInstance()->getValues();
79
+ $ref_enums['UnpublishedContentType'] = PostUnpublishedContentTypeValues::getInstance()->getValues();
80
  return $ref_enums;
81
  }
82
 
357
  'PLAY_GAME',
358
  'PURCHASE_GIFT_CARDS',
359
  'RECORD_NOW',
360
+ 'REFER_FRIENDS',
361
  'REQUEST_TIME',
362
  'SAY_THANKS',
363
  'SEE_MORE',
367
  'SHOP_NOW',
368
  'SIGN_UP',
369
  'SOTTO_SUBSCRIBE',
370
+ 'START_ORDER',
371
  'SUBSCRIBE',
372
+ 'SWIPE_UP_PRODUCT',
373
+ 'SWIPE_UP_SHOP',
374
  'UPDATE_APP',
375
  'USE_APP',
376
  'USE_MOBILE_APP',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductCatalog.php CHANGED
@@ -745,30 +745,6 @@ class ProductCatalog extends AbstractCrudObject {
745
  return $pending ? $request : $request->execute();
746
  }
747
 
748
- public function createOnsiteCommerceMerchant(array $fields = array(), array $params = array(), $pending = false) {
749
- $this->assureId();
750
-
751
- $param_types = array(
752
- 'onsite_commerce_merchant' => 'Object',
753
- );
754
- $enums = array(
755
- );
756
-
757
- $request = new ApiRequest(
758
- $this->api,
759
- $this->data['id'],
760
- RequestInterface::METHOD_POST,
761
- '/onsite_commerce_merchant',
762
- new ProductCatalog(),
763
- 'EDGE',
764
- ProductCatalog::getFieldsEnum()->getValues(),
765
- new TypeChecker($param_types, $enums)
766
- );
767
- $request->addParams($params);
768
- $request->addFields($fields);
769
- return $pending ? $request : $request->execute();
770
- }
771
-
772
  public function getPricingVariablesBatch(array $fields = array(), array $params = array(), $pending = false) {
773
  $this->assureId();
774
 
@@ -858,6 +834,7 @@ class ProductCatalog extends AbstractCrudObject {
858
  'feed_type' => 'feed_type_enum',
859
  'file_name' => 'string',
860
  'item_sub_type' => 'item_sub_type_enum',
 
861
  'name' => 'string',
862
  'override_type' => 'override_type_enum',
863
  'override_value' => 'string',
@@ -1049,6 +1026,7 @@ class ProductCatalog extends AbstractCrudObject {
1049
  $param_types = array(
1050
  'additional_image_files' => 'list<file>',
1051
  'additional_image_urls' => 'list<string>',
 
1052
  'additional_variant_attributes' => 'map',
1053
  'android_app_name' => 'string',
1054
  'android_class' => 'string',
@@ -1279,7 +1257,9 @@ class ProductCatalog extends AbstractCrudObject {
1279
  'segment_use_cases_enum' => array(
1280
  'COLLAB_ADS',
1281
  'COLLAB_ADS_FOR_MARKETPLACE_PARTNER',
 
1282
  'IG_SHOPPING',
 
1283
  'MARKETPLACE_SHOPS',
1284
  'TEST',
1285
  ),
745
  return $pending ? $request : $request->execute();
746
  }
747
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
748
  public function getPricingVariablesBatch(array $fields = array(), array $params = array(), $pending = false) {
749
  $this->assureId();
750
 
834
  'feed_type' => 'feed_type_enum',
835
  'file_name' => 'string',
836
  'item_sub_type' => 'item_sub_type_enum',
837
+ 'migrated_from_feed_id' => 'string',
838
  'name' => 'string',
839
  'override_type' => 'override_type_enum',
840
  'override_value' => 'string',
1026
  $param_types = array(
1027
  'additional_image_files' => 'list<file>',
1028
  'additional_image_urls' => 'list<string>',
1029
+ 'additional_uploaded_image_ids' => 'list<string>',
1030
  'additional_variant_attributes' => 'map',
1031
  'android_app_name' => 'string',
1032
  'android_class' => 'string',
1257
  'segment_use_cases_enum' => array(
1258
  'COLLAB_ADS',
1259
  'COLLAB_ADS_FOR_MARKETPLACE_PARTNER',
1260
+ 'COLLAB_ADS_SEGMENT_WITHOUT_SEGMENT_SYNCING',
1261
  'IG_SHOPPING',
1262
+ 'IG_SHOPPING_SUGGESTED_PRODUCTS',
1263
  'MARKETPLACE_SHOPS',
1264
  'TEST',
1265
  ),
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductFeed.php CHANGED
@@ -477,6 +477,7 @@ class ProductFeed extends AbstractCrudObject {
477
  'deletion_enabled' => 'bool',
478
  'delimiter' => 'delimiter_enum',
479
  'encoding' => 'encoding_enum',
 
480
  'name' => 'string',
481
  'quoted_fields_mode' => 'quoted_fields_mode_enum',
482
  'schedule' => 'string',
477
  'deletion_enabled' => 'bool',
478
  'delimiter' => 'delimiter_enum',
479
  'encoding' => 'encoding_enum',
480
+ 'migrated_from_feed_id' => 'string',
481
  'name' => 'string',
482
  'quoted_fields_mode' => 'quoted_fields_mode_enum',
483
  'schedule' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductItem.php CHANGED
@@ -154,6 +154,7 @@ class ProductItem extends AbstractCrudObject {
154
  $param_types = array(
155
  'additional_image_files' => 'list<file>',
156
  'additional_image_urls' => 'list<string>',
 
157
  'additional_variant_attributes' => 'map',
158
  'android_app_name' => 'string',
159
  'android_class' => 'string',
154
  $param_types = array(
155
  'additional_image_files' => 'list<file>',
156
  'additional_image_urls' => 'list<string>',
157
+ 'additional_uploaded_image_ids' => 'list<string>',
158
  'additional_variant_attributes' => 'map',
159
  'android_app_name' => 'string',
160
  'android_class' => 'string',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ProductSet.php CHANGED
@@ -265,6 +265,7 @@ class ProductSet extends AbstractCrudObject {
265
  $this->assureId();
266
 
267
  $param_types = array(
 
268
  );
269
  $enums = array(
270
  );
265
  $this->assureId();
266
 
267
  $param_types = array(
268
+ 'allow_live_product_set_deletion' => 'bool',
269
  );
270
  $enums = array(
271
  );
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Referral.php CHANGED
@@ -110,10 +110,12 @@ class Referral extends AbstractCrudObject {
110
  'namespace' => 'unsigned int',
111
  'need_promo_code' => 'bool',
112
  'offer_origin' => 'string',
 
113
  'promotion_text' => 'string',
114
  'receiver_benefits_text' => 'string',
115
  'referral_link_uri' => 'string',
116
  'sender_benefits_text' => 'string',
 
117
  );
118
  $enums = array(
119
  );
110
  'namespace' => 'unsigned int',
111
  'need_promo_code' => 'bool',
112
  'offer_origin' => 'string',
113
+ 'privacy_policy_link' => 'string',
114
  'promotion_text' => 'string',
115
  'receiver_benefits_text' => 'string',
116
  'referral_link_uri' => 'string',
117
  'sender_benefits_text' => 'string',
118
+ 'terms_and_condition_link' => 'string',
119
  );
120
  $enums = array(
121
  );
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Content.php CHANGED
@@ -45,6 +45,7 @@ class Content implements ArrayAccess {
45
  $this->container['description'] = isset($data['description']) ? $data['description'] : null;
46
  $this->container['brand'] = isset($data['brand']) ? $data['brand'] : null;
47
  $this->container['category'] = isset($data['category']) ? $data['category'] : null;
 
48
  }
49
 
50
 
@@ -181,6 +182,24 @@ class Content implements ArrayAccess {
181
  return $this;
182
  }
183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  /**
185
  * Returns true if offset exists. False otherwise.
186
  * @param integer $offset Offset
@@ -247,6 +266,9 @@ class Content implements ArrayAccess {
247
  'description' => $this->container['description'],
248
  'brand' => $this->container['brand'],
249
  'category' => $this->container['category'],
 
 
 
250
  );
251
 
252
  $normalized_payload = array_filter($normalized_payload);
45
  $this->container['description'] = isset($data['description']) ? $data['description'] : null;
46
  $this->container['brand'] = isset($data['brand']) ? $data['brand'] : null;
47
  $this->container['category'] = isset($data['category']) ? $data['category'] : null;
48
+ $this->container['delivery_category'] = isset($data['delivery_category']) ? $data['delivery_category'] : null;
49
  }
50
 
51
 
182
  return $this;
183
  }
184
 
185
+ /**
186
+ * Gets Type of delivery for a purchase event.
187
+ * @return string delivery_category
188
+ */
189
+ public function getDeliveryCategory() {
190
+ return $this->container['delivery_category'];
191
+ }
192
+
193
+ /**
194
+ * Sets Type of delivery for a purchase event.
195
+ * @param string $delivery_category
196
+ * @return $this
197
+ */
198
+ public function setDeliveryCategory($delivery_category) {
199
+ $this->container['delivery_category'] = $delivery_category;
200
+ return $this;
201
+ }
202
+
203
  /**
204
  * Returns true if offset exists. False otherwise.
205
  * @param integer $offset Offset
266
  'description' => $this->container['description'],
267
  'brand' => $this->container['brand'],
268
  'category' => $this->container['category'],
269
+ 'delivery_category' => Normalizer::normalize(
270
+ 'delivery_category', $this->container['delivery_category']
271
+ ),
272
  );
273
 
274
  $normalized_payload = array_filter($normalized_payload);
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/CustomData.php CHANGED
@@ -455,7 +455,13 @@ class CustomData implements ArrayAccess {
455
  }
456
  }
457
 
458
- $normalized_payload = array_filter($normalized_payload);
 
 
 
 
 
 
459
 
460
  return $normalized_payload;
461
 
455
  }
456
  }
457
 
458
+ $normalized_payload = array_filter($normalized_payload, function($val) {
459
+ if (is_array($val)) {
460
+ return true;
461
+ } else {
462
+ return strlen($val);
463
+ }
464
+ });
465
 
466
  return $normalized_payload;
467
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php CHANGED
@@ -93,7 +93,7 @@ class EventRequest implements ArrayAccess {
93
  */
94
  protected $container = array();
95
 
96
- protected $http_service_class = null;
97
 
98
  /**
99
  * Constructor
@@ -204,13 +204,13 @@ class EventRequest implements ArrayAccess {
204
  }
205
 
206
  /**
207
- * Sets a Custom HTTP Service, which overrides the default HTTP service
208
  * used to send the event request.
209
- * @param string $http_service_class The class name that implements the HttpServiceInterface
210
  * @return $this
211
  */
212
- public function setHttpService(string $http_service_class) {
213
- $this->http_service_class = $http_service_class;
214
 
215
  return $this;
216
  }
@@ -220,16 +220,16 @@ class EventRequest implements ArrayAccess {
220
  * @return EventResponse
221
  */
222
  public function execute() {
223
- $http_service_class = null;
224
 
225
- if ($this->http_service_class != null) {
226
- $http_service_class = $this->http_service_class;
227
  } else {
228
- $http_service_class = HttpServiceClientConfig::getInstance()->getClient();
229
  }
230
 
231
- if ($http_service_class != null) {
232
- return $this->customHttpServiceExecute($http_service_class);
233
  }
234
 
235
  return $this->defaultExecute();
@@ -247,12 +247,12 @@ class EventRequest implements ArrayAccess {
247
  return $event_response;
248
  }
249
 
250
- private function customHttpServiceExecute($http_service_class) {
251
  $base_url = 'https://graph.facebook.com/v' . ApiConfig::APIVersion;
252
  $url = $base_url . '/' . $this->container['pixel_id'] . '/events';
253
 
254
  $headers = array(
255
- 'User-Agent' => 'fbbizsdk-php-v' . ApiConfig::APIVersion,
256
  'Accept-Encoding' => '*',
257
  );
258
 
@@ -271,8 +271,17 @@ class EventRequest implements ArrayAccess {
271
  $params['access_token'] = HttpServiceClientConfig::getInstance()->getAccessToken();
272
  }
273
 
274
- $http_service = new $http_service_class();
275
- return $http_service->executeRequest(
 
 
 
 
 
 
 
 
 
276
  $url,
277
  HttpMethod::POST,
278
  $curl_options,
93
  */
94
  protected $container = array();
95
 
96
+ protected $http_client = null;
97
 
98
  /**
99
  * Constructor
204
  }
205
 
206
  /**
207
+ * Sets a custom HTTP Client object, which overrides the default HTTP service
208
  * used to send the event request.
209
+ * @param HttpServiceInterface $http_client An object that implements the HttpServiceInterface
210
  * @return $this
211
  */
212
+ public function setHttpClient($http_client) {
213
+ $this->http_client = $http_client;
214
 
215
  return $this;
216
  }
220
  * @return EventResponse
221
  */
222
  public function execute() {
223
+ $http_client = null;
224
 
225
+ if ($this->http_client != null) {
226
+ $http_client = $this->http_client;
227
  } else {
228
+ $http_client = HttpServiceClientConfig::getInstance()->getClient();
229
  }
230
 
231
+ if ($http_client != null) {
232
+ return $this->httpClientExecute($http_client);
233
  }
234
 
235
  return $this->defaultExecute();
247
  return $event_response;
248
  }
249
 
250
+ private function httpClientExecute($http_client) {
251
  $base_url = 'https://graph.facebook.com/v' . ApiConfig::APIVersion;
252
  $url = $base_url . '/' . $this->container['pixel_id'] . '/events';
253
 
254
  $headers = array(
255
+ 'User-Agent' => 'fbbizsdk-php-v' . ApiConfig::SDKVersion,
256
  'Accept-Encoding' => '*',
257
  );
258
 
271
  $params['access_token'] = HttpServiceClientConfig::getInstance()->getAccessToken();
272
  }
273
 
274
+ $appsecret = null;
275
+ if (HttpServiceClientConfig::getInstance()->getAppsecret() == null) {
276
+ $appsecret = Api::instance()->getSession()->getAppSecret();
277
+ } else {
278
+ $appsecret = HttpServiceClientConfig::getInstance()->getAppsecret();
279
+ }
280
+ if ($appsecret != null) {
281
+ $params['appsecret_proof'] = Util::getAppsecretProof($params['access_token'], $appsecret);
282
+ }
283
+
284
+ return $http_client->executeRequest(
285
  $url,
286
  HttpMethod::POST,
287
  $curl_options,
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/HttpServiceClientConfig.php CHANGED
@@ -25,24 +25,33 @@
25
  namespace FacebookAds\Object\ServerSide;
26
 
27
  class HttpServiceClientConfig extends Singleton {
28
- protected $client_class = null;
29
  protected $access_token = null;
 
30
 
31
  public function __construct() {}
32
 
33
  public function getClient() {
34
- return $this->client_class;
35
  }
36
 
37
  public function getAccessToken() {
38
  return $this->access_token;
39
  }
40
 
41
- public function setClient($client_class) {
42
- $this->client_class = $client_class;
 
 
 
 
43
  }
44
 
45
  public function setAccessToken($access_token) {
46
  $this->access_token = $access_token;
47
  }
 
 
 
 
48
  }
25
  namespace FacebookAds\Object\ServerSide;
26
 
27
  class HttpServiceClientConfig extends Singleton {
28
+ protected $client = null;
29
  protected $access_token = null;
30
+ protected $appsecret = null;
31
 
32
  public function __construct() {}
33
 
34
  public function getClient() {
35
+ return $this->client;
36
  }
37
 
38
  public function getAccessToken() {
39
  return $this->access_token;
40
  }
41
 
42
+ public function getAppsecret() {
43
+ return $this->appsecret;
44
+ }
45
+
46
+ public function setClient($client) {
47
+ $this->client = $client;
48
  }
49
 
50
  public function setAccessToken($access_token) {
51
  $this->access_token = $access_token;
52
  }
53
+
54
+ public function setAppsecret($appsecret) {
55
+ $this->appsecret = $appsecret;
56
+ }
57
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/HttpServiceInterface.php CHANGED
@@ -31,6 +31,7 @@ interface HttpServiceInterface {
31
  * @param array $curl_options Contains curl options
32
  * @param array $headers Contains HTTP request headers including User-Agent and Accept-Encoding
33
  * @param array $params Contains request parameters including access_token, data, test_event_code, etc.
 
34
  */
35
  public function executeRequest($url, $method, array $curl_options, array $headers, array $params);
36
  }
31
  * @param array $curl_options Contains curl options
32
  * @param array $headers Contains HTTP request headers including User-Agent and Accept-Encoding
33
  * @param array $params Contains request parameters including access_token, data, test_event_code, etc.
34
+ * @return FacebookAds\Object\ServerSide\EventResponse
35
  */
36
  public function executeRequest($url, $method, array $curl_options, array $headers, array $params);
37
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Util.php CHANGED
@@ -138,4 +138,12 @@ class Util {
138
  .str_repeat('..'.DIRECTORY_SEPARATOR, 4)
139
  .'fb_ca_chain_bundle.crt';
140
  }
 
 
 
 
 
 
 
 
141
  }
138
  .str_repeat('..'.DIRECTORY_SEPARATOR, 4)
139
  .'fb_ca_chain_bundle.crt';
140
  }
141
+
142
+ public static function getAppsecretProof($access_token, $appsecret) {
143
+ return hash_hmac(
144
+ 'sha256',
145
+ $access_token,
146
+ $appsecret
147
+ );
148
+ }
149
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/ThirdPartyMeasurementReportDataset.php CHANGED
@@ -77,4 +77,28 @@ class ThirdPartyMeasurementReportDataset extends AbstractCrudObject {
77
  return $pending ? $request : $request->execute();
78
  }
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  }
77
  return $pending ? $request : $request->execute();
78
  }
79
 
80
+ public function updateSelf(array $fields = array(), array $params = array(), $pending = false) {
81
+ $this->assureId();
82
+
83
+ $param_types = array(
84
+ 'data' => 'list<map>',
85
+ );
86
+ $enums = array(
87
+ );
88
+
89
+ $request = new ApiRequest(
90
+ $this->api,
91
+ $this->data['id'],
92
+ RequestInterface::METHOD_POST,
93
+ '/',
94
+ new ThirdPartyMeasurementReportDataset(),
95
+ 'NODE',
96
+ ThirdPartyMeasurementReportDataset::getFieldsEnum()->getValues(),
97
+ new TypeChecker($param_types, $enums)
98
+ );
99
+ $request->addParams($params);
100
+ $request->addFields($fields);
101
+ return $pending ? $request : $request->execute();
102
+ }
103
+
104
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/User.php CHANGED
@@ -52,6 +52,14 @@ use FacebookAds\Object\Values\PermissionStatusValues;
52
  use FacebookAds\Object\Values\PhotoBackdatedTimeGranularityValues;
53
  use FacebookAds\Object\Values\PhotoTypeValues;
54
  use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues;
 
 
 
 
 
 
 
 
55
  use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues;
56
  use FacebookAds\Object\Values\ProfilePictureSourceTypeValues;
57
  use FacebookAds\Object\Values\UserFilteringValues;
@@ -110,32 +118,6 @@ class User extends AbstractCrudObject {
110
  return $pending ? $request : $request->execute();
111
  }
112
 
113
- public function createAccessToken(array $fields = array(), array $params = array(), $pending = false) {
114
- $this->assureId();
115
-
116
- $param_types = array(
117
- 'business_app' => 'int',
118
- 'page_id' => 'string',
119
- 'scope' => 'list<Permission>',
120
- );
121
- $enums = array(
122
- );
123
-
124
- $request = new ApiRequest(
125
- $this->api,
126
- $this->data['id'],
127
- RequestInterface::METHOD_POST,
128
- '/access_tokens',
129
- new User(),
130
- 'EDGE',
131
- User::getFieldsEnum()->getValues(),
132
- new TypeChecker($param_types, $enums)
133
- );
134
- $request->addParams($params);
135
- $request->addFields($fields);
136
- return $pending ? $request : $request->execute();
137
- }
138
-
139
  public function getAccounts(array $fields = array(), array $params = array(), $pending = false) {
140
  $this->assureId();
141
 
@@ -648,6 +630,35 @@ class User extends AbstractCrudObject {
648
  return $pending ? $request : $request->execute();
649
  }
650
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
651
  public function createFeed(array $fields = array(), array $params = array(), $pending = false) {
652
  $this->assureId();
653
 
@@ -766,52 +777,14 @@ class User extends AbstractCrudObject {
766
  'width' => 'unsigned int',
767
  );
768
  $enums = array(
769
- 'backdated_time_granularity_enum' => array(
770
- 'day',
771
- 'hour',
772
- 'min',
773
- 'month',
774
- 'none',
775
- 'year',
776
- ),
777
- 'checkin_entry_point_enum' => array(
778
- 'BRANDING_CHECKIN',
779
- 'BRANDING_OTHER',
780
- 'BRANDING_PHOTO',
781
- 'BRANDING_STATUS',
782
- ),
783
- 'formatting_enum' => array(
784
- 'MARKDOWN',
785
- 'PLAINTEXT',
786
- ),
787
- 'place_attachment_setting_enum' => array(
788
- '1',
789
- '2',
790
- ),
791
- 'post_surfaces_blacklist_enum' => array(
792
- '1',
793
- '2',
794
- '3',
795
- '4',
796
- '5',
797
- ),
798
- 'posting_to_redspace_enum' => array(
799
- 'disabled',
800
- 'enabled',
801
- ),
802
- 'target_surface_enum' => array(
803
- 'STORY',
804
- 'TIMELINE',
805
- ),
806
- 'unpublished_content_type_enum' => array(
807
- 'ADS_POST',
808
- 'DRAFT',
809
- 'INLINE_CREATED',
810
- 'PUBLISHED',
811
- 'REVIEWABLE_BRANDED_CONTENT',
812
- 'SCHEDULED',
813
- 'SCHEDULED_RECURRING',
814
- ),
815
  );
816
 
817
  $request = new ApiRequest(
@@ -819,9 +792,9 @@ class User extends AbstractCrudObject {
819
  $this->data['id'],
820
  RequestInterface::METHOD_POST,
821
  '/feed',
822
- new AbstractCrudObject(),
823
  'EDGE',
824
- array(),
825
  new TypeChecker($param_types, $enums)
826
  );
827
  $request->addParams($params);
@@ -1639,6 +1612,7 @@ class User extends AbstractCrudObject {
1639
  'sales_promo_id' => 'unsigned int',
1640
  'slideshow_spec' => 'map',
1641
  'source' => 'string',
 
1642
  'spherical' => 'bool',
1643
  'sponsor_id' => 'string',
1644
  'start_offset' => 'unsigned int',
52
  use FacebookAds\Object\Values\PhotoBackdatedTimeGranularityValues;
53
  use FacebookAds\Object\Values\PhotoTypeValues;
54
  use FacebookAds\Object\Values\PhotoUnpublishedContentTypeValues;
55
+ use FacebookAds\Object\Values\PostBackdatedTimeGranularityValues;
56
+ use FacebookAds\Object\Values\PostCheckinEntryPointValues;
57
+ use FacebookAds\Object\Values\PostFormattingValues;
58
+ use FacebookAds\Object\Values\PostPlaceAttachmentSettingValues;
59
+ use FacebookAds\Object\Values\PostPostSurfacesBlacklistValues;
60
+ use FacebookAds\Object\Values\PostPostingToRedspaceValues;
61
+ use FacebookAds\Object\Values\PostTargetSurfaceValues;
62
+ use FacebookAds\Object\Values\PostUnpublishedContentTypeValues;
63
  use FacebookAds\Object\Values\ProfilePictureSourceBreakingChangeValues;
64
  use FacebookAds\Object\Values\ProfilePictureSourceTypeValues;
65
  use FacebookAds\Object\Values\UserFilteringValues;
118
  return $pending ? $request : $request->execute();
119
  }
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  public function getAccounts(array $fields = array(), array $params = array(), $pending = false) {
122
  $this->assureId();
123
 
630
  return $pending ? $request : $request->execute();
631
  }
632
 
633
+ public function getFeed(array $fields = array(), array $params = array(), $pending = false) {
634
+ $this->assureId();
635
+
636
+ $param_types = array(
637
+ 'include_hidden' => 'bool',
638
+ 'q' => 'string',
639
+ 'show_expired' => 'bool',
640
+ 'since' => 'datetime',
641
+ 'until' => 'datetime',
642
+ 'with' => 'string',
643
+ );
644
+ $enums = array(
645
+ );
646
+
647
+ $request = new ApiRequest(
648
+ $this->api,
649
+ $this->data['id'],
650
+ RequestInterface::METHOD_GET,
651
+ '/feed',
652
+ new Post(),
653
+ 'EDGE',
654
+ Post::getFieldsEnum()->getValues(),
655
+ new TypeChecker($param_types, $enums)
656
+ );
657
+ $request->addParams($params);
658
+ $request->addFields($fields);
659
+ return $pending ? $request : $request->execute();
660
+ }
661
+
662
  public function createFeed(array $fields = array(), array $params = array(), $pending = false) {
663
  $this->assureId();
664
 
777
  'width' => 'unsigned int',
778
  );
779
  $enums = array(
780
+ 'backdated_time_granularity_enum' => PostBackdatedTimeGranularityValues::getInstance()->getValues(),
781
+ 'checkin_entry_point_enum' => PostCheckinEntryPointValues::getInstance()->getValues(),
782
+ 'formatting_enum' => PostFormattingValues::getInstance()->getValues(),
783
+ 'place_attachment_setting_enum' => PostPlaceAttachmentSettingValues::getInstance()->getValues(),
784
+ 'post_surfaces_blacklist_enum' => PostPostSurfacesBlacklistValues::getInstance()->getValues(),
785
+ 'posting_to_redspace_enum' => PostPostingToRedspaceValues::getInstance()->getValues(),
786
+ 'target_surface_enum' => PostTargetSurfaceValues::getInstance()->getValues(),
787
+ 'unpublished_content_type_enum' => PostUnpublishedContentTypeValues::getInstance()->getValues(),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
788
  );
789
 
790
  $request = new ApiRequest(
792
  $this->data['id'],
793
  RequestInterface::METHOD_POST,
794
  '/feed',
795
+ new Post(),
796
  'EDGE',
797
+ Post::getFieldsEnum()->getValues(),
798
  new TypeChecker($param_types, $enums)
799
  );
800
  $request->addParams($params);
1612
  'sales_promo_id' => 'unsigned int',
1613
  'slideshow_spec' => 'map',
1614
  'source' => 'string',
1615
+ 'source_instagram_media_id' => 'string',
1616
  'spherical' => 'bool',
1617
  'sponsor_id' => 'string',
1618
  'start_offset' => 'unsigned int',
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountAdVolumeRecommendationTypeValues.php CHANGED
@@ -37,6 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum {
39
 
 
40
  const AGGREGATED_BID_LIMITED = 'AGGREGATED_BID_LIMITED';
41
  const AGGREGATED_BUDGET_LIMITED = 'AGGREGATED_BUDGET_LIMITED';
42
  const AGGREGATED_COST_LIMITED = 'AGGREGATED_COST_LIMITED';
37
  */
38
  class AdAccountAdVolumeRecommendationTypeValues extends AbstractEnum {
39
 
40
+ const ACO_TOGGLE = 'ACO_TOGGLE';
41
  const AGGREGATED_BID_LIMITED = 'AGGREGATED_BID_LIMITED';
42
  const AGGREGATED_BUDGET_LIMITED = 'AGGREGATED_BUDGET_LIMITED';
43
  const AGGREGATED_COST_LIMITED = 'AGGREGATED_COST_LIMITED';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedAppStoreValues.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static AdAccountTargetingUnifiedAppStoreValues getInstance()
37
+ */
38
+ class AdAccountTargetingUnifiedAppStoreValues extends AbstractEnum {
39
+
40
+ const AMAZON_APP_STORE = 'amazon_app_store';
41
+ const DOES_NOT_EXIST = 'does_not_exist';
42
+ const FB_ANDROID_STORE = 'fb_android_store';
43
+ const FB_CANVAS = 'fb_canvas';
44
+ const FB_GAMEROOM = 'fb_gameroom';
45
+ const GOOGLE_PLAY = 'google_play';
46
+ const INSTANT_GAME = 'instant_game';
47
+ const ITUNES = 'itunes';
48
+ const ITUNES_IPAD = 'itunes_ipad';
49
+ const OCULUS_APP_STORE = 'oculus_app_store';
50
+ const ROKU_CHANNEL_STORE = 'roku_channel_store';
51
+ const WINDOWS_10_STORE = 'windows_10_store';
52
+ const WINDOWS_STORE = 'windows_store';
53
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAccountTargetingUnifiedObjectiveValues.php CHANGED
@@ -46,6 +46,7 @@ class AdAccountTargetingUnifiedObjectiveValues extends AbstractEnum {
46
  const LOCAL_AWARENESS = 'LOCAL_AWARENESS';
47
  const MESSAGES = 'MESSAGES';
48
  const OFFER_CLAIMS = 'OFFER_CLAIMS';
 
49
  const PAGE_LIKES = 'PAGE_LIKES';
50
  const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
51
  const PRODUCT_CATALOG_SALES = 'PRODUCT_CATALOG_SALES';
46
  const LOCAL_AWARENESS = 'LOCAL_AWARENESS';
47
  const MESSAGES = 'MESSAGES';
48
  const OFFER_CLAIMS = 'OFFER_CLAIMS';
49
+ const OUTCOME_LEADS = 'OUTCOME_LEADS';
50
  const PAGE_LIKES = 'PAGE_LIKES';
51
  const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
52
  const PRODUCT_CATALOG_SALES = 'PRODUCT_CATALOG_SALES';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdActivityEventTypeValues.php CHANGED
@@ -106,7 +106,6 @@ class AdActivityEventTypeValues extends AbstractEnum {
106
  const UPDATE_CAMPAIGN_BUDGET = 'update_campaign_budget';
107
  const UPDATE_CAMPAIGN_BUDGET_OPTIMIZATION_TOGGLING_STATUS = 'update_campaign_budget_optimization_toggling_status';
108
  const UPDATE_CAMPAIGN_DELIVERY_TYPE = 'update_campaign_delivery_type';
109
- const UPDATE_CAMPAIGN_DURATION = 'update_campaign_duration';
110
  const UPDATE_CAMPAIGN_GROUP_AD_SCHEDULING = 'update_campaign_group_ad_scheduling';
111
  const UPDATE_CAMPAIGN_GROUP_DELIVERY_TYPE = 'update_campaign_group_delivery_type';
112
  const UPDATE_CAMPAIGN_GROUP_SPEND_CAP = 'update_campaign_group_spend_cap';
106
  const UPDATE_CAMPAIGN_BUDGET = 'update_campaign_budget';
107
  const UPDATE_CAMPAIGN_BUDGET_OPTIMIZATION_TOGGLING_STATUS = 'update_campaign_budget_optimization_toggling_status';
108
  const UPDATE_CAMPAIGN_DELIVERY_TYPE = 'update_campaign_delivery_type';
 
109
  const UPDATE_CAMPAIGN_GROUP_AD_SCHEDULING = 'update_campaign_group_ad_scheduling';
110
  const UPDATE_CAMPAIGN_GROUP_DELIVERY_TYPE = 'update_campaign_group_delivery_type';
111
  const UPDATE_CAMPAIGN_GROUP_SPEND_CAP = 'update_campaign_group_spend_cap';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAssetFeedSpecCallToActionTypesValues.php CHANGED
@@ -77,6 +77,7 @@ class AdAssetFeedSpecCallToActionTypesValues extends AbstractEnum {
77
  const PLAY_GAME = 'PLAY_GAME';
78
  const PURCHASE_GIFT_CARDS = 'PURCHASE_GIFT_CARDS';
79
  const RECORD_NOW = 'RECORD_NOW';
 
80
  const REQUEST_TIME = 'REQUEST_TIME';
81
  const SAY_THANKS = 'SAY_THANKS';
82
  const SEE_MORE = 'SEE_MORE';
@@ -86,7 +87,10 @@ class AdAssetFeedSpecCallToActionTypesValues extends AbstractEnum {
86
  const SHOP_NOW = 'SHOP_NOW';
87
  const SIGN_UP = 'SIGN_UP';
88
  const SOTTO_SUBSCRIBE = 'SOTTO_SUBSCRIBE';
 
89
  const SUBSCRIBE = 'SUBSCRIBE';
 
 
90
  const UPDATE_APP = 'UPDATE_APP';
91
  const USE_APP = 'USE_APP';
92
  const USE_MOBILE_APP = 'USE_MOBILE_APP';
77
  const PLAY_GAME = 'PLAY_GAME';
78
  const PURCHASE_GIFT_CARDS = 'PURCHASE_GIFT_CARDS';
79
  const RECORD_NOW = 'RECORD_NOW';
80
+ const REFER_FRIENDS = 'REFER_FRIENDS';
81
  const REQUEST_TIME = 'REQUEST_TIME';
82
  const SAY_THANKS = 'SAY_THANKS';
83
  const SEE_MORE = 'SEE_MORE';
87
  const SHOP_NOW = 'SHOP_NOW';
88
  const SIGN_UP = 'SIGN_UP';
89
  const SOTTO_SUBSCRIBE = 'SOTTO_SUBSCRIBE';
90
+ const START_ORDER = 'START_ORDER';
91
  const SUBSCRIBE = 'SUBSCRIBE';
92
+ const SWIPE_UP_PRODUCT = 'SWIPE_UP_PRODUCT';
93
+ const SWIPE_UP_SHOP = 'SWIPE_UP_SHOP';
94
  const UPDATE_APP = 'UPDATE_APP';
95
  const USE_APP = 'USE_APP';
96
  const USE_MOBILE_APP = 'USE_MOBILE_APP';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdAsyncRequestStatusesValues.php CHANGED
@@ -45,6 +45,8 @@ class AdAsyncRequestStatusesValues extends AbstractEnum {
45
  const INITIAL = 'INITIAL';
46
  const IN_PROGRESS = 'IN_PROGRESS';
47
  const PENDING_DEPENDENCY = 'PENDING_DEPENDENCY';
 
 
48
  const SUCCESS = 'SUCCESS';
49
  const USER_CANCELED = 'USER_CANCELED';
50
  const USER_CANCELED_DEPENDENCY = 'USER_CANCELED_DEPENDENCY';
45
  const INITIAL = 'INITIAL';
46
  const IN_PROGRESS = 'IN_PROGRESS';
47
  const PENDING_DEPENDENCY = 'PENDING_DEPENDENCY';
48
+ const PROCESS_BY_AD_ASYNC_ENGINE = 'PROCESS_BY_AD_ASYNC_ENGINE';
49
+ const PROCESS_BY_EVENT_PROCESSOR = 'PROCESS_BY_EVENT_PROCESSOR';
50
  const SUCCESS = 'SUCCESS';
51
  const USER_CANCELED = 'USER_CANCELED';
52
  const USER_CANCELED_DEPENDENCY = 'USER_CANCELED_DEPENDENCY';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeCallToActionTypeValues.php CHANGED
@@ -77,6 +77,7 @@ class AdCreativeCallToActionTypeValues extends AbstractEnum {
77
  const PLAY_GAME = 'PLAY_GAME';
78
  const PURCHASE_GIFT_CARDS = 'PURCHASE_GIFT_CARDS';
79
  const RECORD_NOW = 'RECORD_NOW';
 
80
  const REQUEST_TIME = 'REQUEST_TIME';
81
  const SAY_THANKS = 'SAY_THANKS';
82
  const SEE_MORE = 'SEE_MORE';
@@ -86,7 +87,10 @@ class AdCreativeCallToActionTypeValues extends AbstractEnum {
86
  const SHOP_NOW = 'SHOP_NOW';
87
  const SIGN_UP = 'SIGN_UP';
88
  const SOTTO_SUBSCRIBE = 'SOTTO_SUBSCRIBE';
 
89
  const SUBSCRIBE = 'SUBSCRIBE';
 
 
90
  const UPDATE_APP = 'UPDATE_APP';
91
  const USE_APP = 'USE_APP';
92
  const USE_MOBILE_APP = 'USE_MOBILE_APP';
77
  const PLAY_GAME = 'PLAY_GAME';
78
  const PURCHASE_GIFT_CARDS = 'PURCHASE_GIFT_CARDS';
79
  const RECORD_NOW = 'RECORD_NOW';
80
+ const REFER_FRIENDS = 'REFER_FRIENDS';
81
  const REQUEST_TIME = 'REQUEST_TIME';
82
  const SAY_THANKS = 'SAY_THANKS';
83
  const SEE_MORE = 'SEE_MORE';
87
  const SHOP_NOW = 'SHOP_NOW';
88
  const SIGN_UP = 'SIGN_UP';
89
  const SOTTO_SUBSCRIBE = 'SOTTO_SUBSCRIBE';
90
+ const START_ORDER = 'START_ORDER';
91
  const SUBSCRIBE = 'SUBSCRIBE';
92
+ const SWIPE_UP_PRODUCT = 'SWIPE_UP_PRODUCT';
93
+ const SWIPE_UP_SHOP = 'SWIPE_UP_SHOP';
94
  const UPDATE_APP = 'UPDATE_APP';
95
  const USE_APP = 'USE_APP';
96
  const USE_MOBILE_APP = 'USE_MOBILE_APP';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdCreativeLinkDataCallToActionTypeValues.php CHANGED
@@ -77,6 +77,7 @@ class AdCreativeLinkDataCallToActionTypeValues extends AbstractEnum {
77
  const PLAY_GAME = 'PLAY_GAME';
78
  const PURCHASE_GIFT_CARDS = 'PURCHASE_GIFT_CARDS';
79
  const RECORD_NOW = 'RECORD_NOW';
 
80
  const REQUEST_TIME = 'REQUEST_TIME';
81
  const SAY_THANKS = 'SAY_THANKS';
82
  const SEE_MORE = 'SEE_MORE';
@@ -86,7 +87,10 @@ class AdCreativeLinkDataCallToActionTypeValues extends AbstractEnum {
86
  const SHOP_NOW = 'SHOP_NOW';
87
  const SIGN_UP = 'SIGN_UP';
88
  const SOTTO_SUBSCRIBE = 'SOTTO_SUBSCRIBE';
 
89
  const SUBSCRIBE = 'SUBSCRIBE';
 
 
90
  const UPDATE_APP = 'UPDATE_APP';
91
  const USE_APP = 'USE_APP';
92
  const USE_MOBILE_APP = 'USE_MOBILE_APP';
77
  const PLAY_GAME = 'PLAY_GAME';
78
  const PURCHASE_GIFT_CARDS = 'PURCHASE_GIFT_CARDS';
79
  const RECORD_NOW = 'RECORD_NOW';
80
+ const REFER_FRIENDS = 'REFER_FRIENDS';
81
  const REQUEST_TIME = 'REQUEST_TIME';
82
  const SAY_THANKS = 'SAY_THANKS';
83
  const SEE_MORE = 'SEE_MORE';
87
  const SHOP_NOW = 'SHOP_NOW';
88
  const SIGN_UP = 'SIGN_UP';
89
  const SOTTO_SUBSCRIBE = 'SOTTO_SUBSCRIBE';
90
+ const START_ORDER = 'START_ORDER';
91
  const SUBSCRIBE = 'SUBSCRIBE';
92
+ const SWIPE_UP_PRODUCT = 'SWIPE_UP_PRODUCT';
93
+ const SWIPE_UP_SHOP = 'SWIPE_UP_SHOP';
94
  const UPDATE_APP = 'UPDATE_APP';
95
  const USE_APP = 'USE_APP';
96
  const USE_MOBILE_APP = 'USE_MOBILE_APP';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdPreviewAdFormatValues.php CHANGED
@@ -67,5 +67,6 @@ class AdPreviewAdFormatValues extends AbstractEnum {
67
  const RIGHT_COLUMN_STANDARD = 'RIGHT_COLUMN_STANDARD';
68
  const SUGGESTED_VIDEO_DESKTOP = 'SUGGESTED_VIDEO_DESKTOP';
69
  const SUGGESTED_VIDEO_MOBILE = 'SUGGESTED_VIDEO_MOBILE';
 
70
  const WATCH_FEED_MOBILE = 'WATCH_FEED_MOBILE';
71
  }
67
  const RIGHT_COLUMN_STANDARD = 'RIGHT_COLUMN_STANDARD';
68
  const SUGGESTED_VIDEO_DESKTOP = 'SUGGESTED_VIDEO_DESKTOP';
69
  const SUGGESTED_VIDEO_MOBILE = 'SUGGESTED_VIDEO_MOBILE';
70
+ const WATCH_FEED_HOME = 'WATCH_FEED_HOME';
71
  const WATCH_FEED_MOBILE = 'WATCH_FEED_MOBILE';
72
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdRuleExecutionSpecExecutionTypeValues.php CHANGED
@@ -37,13 +37,17 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class AdRuleExecutionSpecExecutionTypeValues extends AbstractEnum {
39
 
 
 
40
  const CHANGE_BID = 'CHANGE_BID';
41
  const CHANGE_BUDGET = 'CHANGE_BUDGET';
42
  const CHANGE_CAMPAIGN_BUDGET = 'CHANGE_CAMPAIGN_BUDGET';
 
43
  const NOTIFICATION = 'NOTIFICATION';
44
  const PAUSE = 'PAUSE';
45
  const PING_ENDPOINT = 'PING_ENDPOINT';
46
  const REBALANCE_BUDGET = 'REBALANCE_BUDGET';
47
  const ROTATE = 'ROTATE';
48
  const UNPAUSE = 'UNPAUSE';
 
49
  }
37
  */
38
  class AdRuleExecutionSpecExecutionTypeValues extends AbstractEnum {
39
 
40
+ const ADD_INTEREST_RELAXATION = 'ADD_INTEREST_RELAXATION';
41
+ const ADD_QUESTIONNAIRE_INTERESTS = 'ADD_QUESTIONNAIRE_INTERESTS';
42
  const CHANGE_BID = 'CHANGE_BID';
43
  const CHANGE_BUDGET = 'CHANGE_BUDGET';
44
  const CHANGE_CAMPAIGN_BUDGET = 'CHANGE_CAMPAIGN_BUDGET';
45
+ const INCREASE_RADIUS = 'INCREASE_RADIUS';
46
  const NOTIFICATION = 'NOTIFICATION';
47
  const PAUSE = 'PAUSE';
48
  const PING_ENDPOINT = 'PING_ENDPOINT';
49
  const REBALANCE_BUDGET = 'REBALANCE_BUDGET';
50
  const ROTATE = 'ROTATE';
51
  const UNPAUSE = 'UNPAUSE';
52
+ const UPDATE_CREATIVE = 'UPDATE_CREATIVE';
53
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdVideoContainerTypeValues.php CHANGED
@@ -53,6 +53,7 @@ class AdVideoContainerTypeValues extends AbstractEnum {
53
  const CANDIDATE_VIDEOS = 'CANDIDATE_VIDEOS';
54
  const CANVAS = 'CANVAS';
55
  const CFC_VIDEO = 'CFC_VIDEO';
 
56
  const CONTAINED_POST_ATTACHMENT = 'CONTAINED_POST_ATTACHMENT';
57
  const CONTAINED_POST_AUDIO_BROADCAST = 'CONTAINED_POST_AUDIO_BROADCAST';
58
  const CONTAINED_POST_BROADCAST = 'CONTAINED_POST_BROADCAST';
@@ -87,6 +88,7 @@ class AdVideoContainerTypeValues extends AbstractEnum {
87
  const HEURISTIC_CLUSTER_VIDEO = 'HEURISTIC_CLUSTER_VIDEO';
88
  const HEURISTIC_PREVIEW = 'HEURISTIC_PREVIEW';
89
  const HIGHLIGHT_CLIP_VIDEO = 'HIGHLIGHT_CLIP_VIDEO';
 
90
  const IG_STORIES_READER = 'IG_STORIES_READER';
91
  const INSPIRATION_VIDEO = 'INSPIRATION_VIDEO';
92
  const INSTAGRAM_VIDEO_COPY = 'INSTAGRAM_VIDEO_COPY';
@@ -139,6 +141,7 @@ class AdVideoContainerTypeValues extends AbstractEnum {
139
  const STORYLINE_WITH_EXTERNAL_MUSIC = 'STORYLINE_WITH_EXTERNAL_MUSIC';
140
  const STORY_ARCHIVE_VIDEO = 'STORY_ARCHIVE_VIDEO';
141
  const STORY_CARD_TEMPLATE = 'STORY_CARD_TEMPLATE';
 
142
  const TAROT_DIGEST = 'TAROT_DIGEST';
143
  const TEMP_MULTIMEDIA_POST = 'TEMP_MULTIMEDIA_POST';
144
  const UNLISTED = 'UNLISTED';
53
  const CANDIDATE_VIDEOS = 'CANDIDATE_VIDEOS';
54
  const CANVAS = 'CANVAS';
55
  const CFC_VIDEO = 'CFC_VIDEO';
56
+ const CMS_MEDIA_MANAGER = 'CMS_MEDIA_MANAGER';
57
  const CONTAINED_POST_ATTACHMENT = 'CONTAINED_POST_ATTACHMENT';
58
  const CONTAINED_POST_AUDIO_BROADCAST = 'CONTAINED_POST_AUDIO_BROADCAST';
59
  const CONTAINED_POST_BROADCAST = 'CONTAINED_POST_BROADCAST';
88
  const HEURISTIC_CLUSTER_VIDEO = 'HEURISTIC_CLUSTER_VIDEO';
89
  const HEURISTIC_PREVIEW = 'HEURISTIC_PREVIEW';
90
  const HIGHLIGHT_CLIP_VIDEO = 'HIGHLIGHT_CLIP_VIDEO';
91
+ const IG_REELS_XPV = 'IG_REELS_XPV';
92
  const IG_STORIES_READER = 'IG_STORIES_READER';
93
  const INSPIRATION_VIDEO = 'INSPIRATION_VIDEO';
94
  const INSTAGRAM_VIDEO_COPY = 'INSTAGRAM_VIDEO_COPY';
141
  const STORYLINE_WITH_EXTERNAL_MUSIC = 'STORYLINE_WITH_EXTERNAL_MUSIC';
142
  const STORY_ARCHIVE_VIDEO = 'STORY_ARCHIVE_VIDEO';
143
  const STORY_CARD_TEMPLATE = 'STORY_CARD_TEMPLATE';
144
+ const STREAM_HIGHLIGHTS_VIDEO = 'STREAM_HIGHLIGHTS_VIDEO';
145
  const TAROT_DIGEST = 'TAROT_DIGEST';
146
  const TEMP_MULTIMEDIA_POST = 'TEMP_MULTIMEDIA_POST';
147
  const UNLISTED = 'UNLISTED';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsInsightsActionReportTimeValues.php CHANGED
@@ -39,4 +39,5 @@ class AdsInsightsActionReportTimeValues extends AbstractEnum {
39
 
40
  const CONVERSION = 'conversion';
41
  const IMPRESSION = 'impression';
 
42
  }
39
 
40
  const CONVERSION = 'conversion';
41
  const IMPRESSION = 'impression';
42
+ const MIXED = 'mixed';
43
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsPixelAutomaticMatchingFieldsValues.php CHANGED
@@ -41,6 +41,7 @@ class AdsPixelAutomaticMatchingFieldsValues extends AbstractEnum {
41
  const CT = 'ct';
42
  const DB = 'db';
43
  const EM = 'em';
 
44
  const FN = 'fn';
45
  const GE = 'ge';
46
  const LN = 'ln';
41
  const CT = 'ct';
42
  const DB = 'db';
43
  const EM = 'em';
44
+ const EXTERNAL_ID = 'external_id';
45
  const FN = 'fn';
46
  const GE = 'ge';
47
  const LN = 'ln';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsPixelDataUseSettingValues.php CHANGED
@@ -39,5 +39,5 @@ class AdsPixelDataUseSettingValues extends AbstractEnum {
39
 
40
  const ADVERTISING_AND_ANALYTICS = 'ADVERTISING_AND_ANALYTICS';
41
  const ANALYTICS_ONLY = 'ANALYTICS_ONLY';
42
- const EMPTY = 'EMPTY';
43
  }
39
 
40
  const ADVERTISING_AND_ANALYTICS = 'ADVERTISING_AND_ANALYTICS';
41
  const ANALYTICS_ONLY = 'ANALYTICS_ONLY';
42
+ const VALUE_EMPTY = 'EMPTY';
43
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/AdsPixelFirstPartyCookieStatusValues.php CHANGED
@@ -37,7 +37,7 @@ use FacebookAds\Enum\AbstractEnum;
37
  */
38
  class AdsPixelFirstPartyCookieStatusValues extends AbstractEnum {
39
 
40
- const EMPTY = 'EMPTY';
41
  const FIRST_PARTY_COOKIE_DISABLED = 'FIRST_PARTY_COOKIE_DISABLED';
42
  const FIRST_PARTY_COOKIE_ENABLED = 'FIRST_PARTY_COOKIE_ENABLED';
43
  }
37
  */
38
  class AdsPixelFirstPartyCookieStatusValues extends AbstractEnum {
39
 
40
+ const VALUE_EMPTY = 'EMPTY';
41
  const FIRST_PARTY_COOKIE_DISABLED = 'FIRST_PARTY_COOKIE_DISABLED';
42
  const FIRST_PARTY_COOKIE_ENABLED = 'FIRST_PARTY_COOKIE_ENABLED';
43
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessAssetGroupPageTasksValues.php CHANGED
@@ -52,7 +52,6 @@ class BusinessAssetGroupPageTasksValues extends AbstractEnum {
52
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
53
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
54
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
55
- const PROFILE_PLUS_LIVE_STREAM_MODERATION = 'PROFILE_PLUS_LIVE_STREAM_MODERATION';
56
  const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
57
  const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
58
  const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
52
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
53
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
54
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
 
55
  const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
56
  const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
57
  const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessPagePermittedTasksValues.php CHANGED
@@ -52,7 +52,6 @@ class BusinessPagePermittedTasksValues extends AbstractEnum {
52
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
53
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
54
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
55
- const PROFILE_PLUS_LIVE_STREAM_MODERATION = 'PROFILE_PLUS_LIVE_STREAM_MODERATION';
56
  const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
57
  const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
58
  const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
52
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
53
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
54
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
 
55
  const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
56
  const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
57
  const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessRoleRequestRoleValues.php CHANGED
@@ -39,14 +39,14 @@ class BusinessRoleRequestRoleValues extends AbstractEnum {
39
 
40
  const ADMIN = 'ADMIN';
41
  const ADS_RIGHTS_REVIEWER = 'ADS_RIGHTS_REVIEWER';
 
42
  const DEVELOPER = 'DEVELOPER';
43
  const EMPLOYEE = 'EMPLOYEE';
44
  const FINANCE_ANALYST = 'FINANCE_ANALYST';
 
45
  const FINANCE_EDITOR = 'FINANCE_EDITOR';
46
- const FINANCE_EDIT_TASK = 'FINANCE_EDIT_TASK';
47
- const FINANCE_VIEW_TASK = 'FINANCE_VIEW_TASK';
48
- const MODERATE_TASK = 'MODERATE_TASK';
49
- const OPERATE_TASK = 'OPERATE_TASK';
50
  const PARTNER_CENTER_ADMIN = 'PARTNER_CENTER_ADMIN';
51
  const PARTNER_CENTER_ANALYST = 'PARTNER_CENTER_ANALYST';
52
  const PARTNER_CENTER_EDUCATION = 'PARTNER_CENTER_EDUCATION';
39
 
40
  const ADMIN = 'ADMIN';
41
  const ADS_RIGHTS_REVIEWER = 'ADS_RIGHTS_REVIEWER';
42
+ const VALUE_DEFAULT = 'DEFAULT';
43
  const DEVELOPER = 'DEVELOPER';
44
  const EMPLOYEE = 'EMPLOYEE';
45
  const FINANCE_ANALYST = 'FINANCE_ANALYST';
46
+ const FINANCE_EDIT = 'FINANCE_EDIT';
47
  const FINANCE_EDITOR = 'FINANCE_EDITOR';
48
+ const FINANCE_VIEW = 'FINANCE_VIEW';
49
+ const MANAGE = 'MANAGE';
 
 
50
  const PARTNER_CENTER_ADMIN = 'PARTNER_CENTER_ADMIN';
51
  const PARTNER_CENTER_ANALYST = 'PARTNER_CENTER_ANALYST';
52
  const PARTNER_CENTER_EDUCATION = 'PARTNER_CENTER_EDUCATION';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/BusinessUserRoleValues.php CHANGED
@@ -39,14 +39,14 @@ class BusinessUserRoleValues extends AbstractEnum {
39
 
40
  const ADMIN = 'ADMIN';
41
  const ADS_RIGHTS_REVIEWER = 'ADS_RIGHTS_REVIEWER';
 
42
  const DEVELOPER = 'DEVELOPER';
43
  const EMPLOYEE = 'EMPLOYEE';
44
  const FINANCE_ANALYST = 'FINANCE_ANALYST';
 
45
  const FINANCE_EDITOR = 'FINANCE_EDITOR';
46
- const FINANCE_EDIT_TASK = 'FINANCE_EDIT_TASK';
47
- const FINANCE_VIEW_TASK = 'FINANCE_VIEW_TASK';
48
- const MODERATE_TASK = 'MODERATE_TASK';
49
- const OPERATE_TASK = 'OPERATE_TASK';
50
  const PARTNER_CENTER_ADMIN = 'PARTNER_CENTER_ADMIN';
51
  const PARTNER_CENTER_ANALYST = 'PARTNER_CENTER_ANALYST';
52
  const PARTNER_CENTER_EDUCATION = 'PARTNER_CENTER_EDUCATION';
39
 
40
  const ADMIN = 'ADMIN';
41
  const ADS_RIGHTS_REVIEWER = 'ADS_RIGHTS_REVIEWER';
42
+ const VALUE_DEFAULT = 'DEFAULT';
43
  const DEVELOPER = 'DEVELOPER';
44
  const EMPLOYEE = 'EMPLOYEE';
45
  const FINANCE_ANALYST = 'FINANCE_ANALYST';
46
+ const FINANCE_EDIT = 'FINANCE_EDIT';
47
  const FINANCE_EDITOR = 'FINANCE_EDITOR';
48
+ const FINANCE_VIEW = 'FINANCE_VIEW';
49
+ const MANAGE = 'MANAGE';
 
 
50
  const PARTNER_CENTER_ADMIN = 'PARTNER_CENTER_ADMIN';
51
  const PARTNER_CENTER_ANALYST = 'PARTNER_CENTER_ANALYST';
52
  const PARTNER_CENTER_EDUCATION = 'PARTNER_CENTER_EDUCATION';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/CampaignObjectiveValues.php CHANGED
@@ -46,6 +46,7 @@ class CampaignObjectiveValues extends AbstractEnum {
46
  const LOCAL_AWARENESS = 'LOCAL_AWARENESS';
47
  const MESSAGES = 'MESSAGES';
48
  const OFFER_CLAIMS = 'OFFER_CLAIMS';
 
49
  const PAGE_LIKES = 'PAGE_LIKES';
50
  const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
51
  const PRODUCT_CATALOG_SALES = 'PRODUCT_CATALOG_SALES';
46
  const LOCAL_AWARENESS = 'LOCAL_AWARENESS';
47
  const MESSAGES = 'MESSAGES';
48
  const OFFER_CLAIMS = 'OFFER_CLAIMS';
49
+ const OUTCOME_LEADS = 'OUTCOME_LEADS';
50
  const PAGE_LIKES = 'PAGE_LIKES';
51
  const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
52
  const PRODUCT_CATALOG_SALES = 'PRODUCT_CATALOG_SALES';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{CommerceMerchantSettingsMerchantStatusValues.php → CampaignSmartPromotionTypeValues.php} RENAMED
@@ -33,10 +33,10 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static CommerceMerchantSettingsMerchantStatusValues getInstance()
37
  */
38
- class CommerceMerchantSettingsMerchantStatusValues extends AbstractEnum {
39
 
40
- const ENABLED = 'ENABLED';
41
- const EXTERNALLY_DISABLED = 'EXTERNALLY_DISABLED';
42
  }
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static CampaignSmartPromotionTypeValues getInstance()
37
  */
38
+ class CampaignSmartPromotionTypeValues extends AbstractEnum {
39
 
40
+ const GUIDED_CREATION = 'GUIDED_CREATION';
41
+ const SMART_APP_PROMOTION = 'SMART_APP_PROMOTION';
42
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupGroupTypeValues.php CHANGED
@@ -68,6 +68,7 @@ class GroupGroupTypeValues extends AbstractEnum {
68
  const SCHOOL_CLASS = 'SCHOOL_CLASS';
69
  const SORORITY = 'SORORITY';
70
  const SPORTS = 'SPORTS';
 
71
  const STUDY_GROUP = 'STUDY_GROUP';
72
  const SUPPORT = 'SUPPORT';
73
  const TEAMMATES = 'TEAMMATES';
68
  const SCHOOL_CLASS = 'SCHOOL_CLASS';
69
  const SORORITY = 'SORORITY';
70
  const SPORTS = 'SPORTS';
71
+ const STREAMER = 'STREAMER';
72
  const STUDY_GROUP = 'STUDY_GROUP';
73
  const SUPPORT = 'SUPPORT';
74
  const TEAMMATES = 'TEAMMATES';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/GroupPurposeValues.php CHANGED
@@ -68,6 +68,7 @@ class GroupPurposeValues extends AbstractEnum {
68
  const SCHOOL_CLASS = 'SCHOOL_CLASS';
69
  const SORORITY = 'SORORITY';
70
  const SPORTS = 'SPORTS';
 
71
  const STUDY_GROUP = 'STUDY_GROUP';
72
  const SUPPORT = 'SUPPORT';
73
  const TEAMMATES = 'TEAMMATES';
68
  const SCHOOL_CLASS = 'SCHOOL_CLASS';
69
  const SORORITY = 'SORORITY';
70
  const SPORTS = 'SPORTS';
71
+ const STREAMER = 'STREAMER';
72
  const STUDY_GROUP = 'STUDY_GROUP';
73
  const SUPPORT = 'SUPPORT';
74
  const TEAMMATES = 'TEAMMATES';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PagePermittedTasksValues.php CHANGED
@@ -52,7 +52,6 @@ class PagePermittedTasksValues extends AbstractEnum {
52
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
53
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
54
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
55
- const PROFILE_PLUS_LIVE_STREAM_MODERATION = 'PROFILE_PLUS_LIVE_STREAM_MODERATION';
56
  const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
57
  const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
58
  const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
52
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
53
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
54
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
 
55
  const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
56
  const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
57
  const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageSubscribedFieldsValues.php CHANGED
@@ -64,6 +64,7 @@ class PageSubscribedFieldsValues extends AbstractEnum {
64
  const LEADGEN = 'leadgen';
65
  const LEADGEN_FAT = 'leadgen_fat';
66
  const LIVE_VIDEOS = 'live_videos';
 
67
  const LOCATION = 'location';
68
  const MCOM_INVOICE_CHANGE = 'mcom_invoice_change';
69
  const MEMBERS = 'members';
64
  const LEADGEN = 'leadgen';
65
  const LEADGEN_FAT = 'leadgen_fat';
66
  const LIVE_VIDEOS = 'live_videos';
67
+ const LOCAL_DELIVERY = 'local_delivery';
68
  const LOCATION = 'location';
69
  const MCOM_INVOICE_CHANGE = 'mcom_invoice_change';
70
  const MEMBERS = 'members';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PageTasksValues.php CHANGED
@@ -52,7 +52,6 @@ class PageTasksValues extends AbstractEnum {
52
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
53
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
54
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
55
- const PROFILE_PLUS_LIVE_STREAM_MODERATION = 'PROFILE_PLUS_LIVE_STREAM_MODERATION';
56
  const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
57
  const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
58
  const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
52
  const PROFILE_PLUS_ADVERTISE = 'PROFILE_PLUS_ADVERTISE';
53
  const PROFILE_PLUS_ANALYZE = 'PROFILE_PLUS_ANALYZE';
54
  const PROFILE_PLUS_CREATE_CONTENT = 'PROFILE_PLUS_CREATE_CONTENT';
 
55
  const PROFILE_PLUS_MANAGE = 'PROFILE_PLUS_MANAGE';
56
  const PROFILE_PLUS_MESSAGING = 'PROFILE_PLUS_MESSAGING';
57
  const PROFILE_PLUS_MODERATE = 'PROFILE_PLUS_MODERATE';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PostCheckinEntryPointValues.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static PostCheckinEntryPointValues getInstance()
37
+ */
38
+ class PostCheckinEntryPointValues extends AbstractEnum {
39
+
40
+ const BRANDING_CHECKIN = 'BRANDING_CHECKIN';
41
+ const BRANDING_OTHER = 'BRANDING_OTHER';
42
+ const BRANDING_PHOTO = 'BRANDING_PHOTO';
43
+ const BRANDING_STATUS = 'BRANDING_STATUS';
44
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/{CommerceMerchantSettingsCtaValues.php → PostFormattingValues.php} RENAMED
@@ -33,10 +33,10 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
- * @method static CommerceMerchantSettingsCtaValues getInstance()
37
  */
38
- class CommerceMerchantSettingsCtaValues extends AbstractEnum {
39
 
40
- const CONTACT_MERCHANT = 'CONTACT_MERCHANT';
41
- const OFFSITE_LINK = 'OFFSITE_LINK';
42
  }
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static PostFormattingValues getInstance()
37
  */
38
+ class PostFormattingValues extends AbstractEnum {
39
 
40
+ const MARKDOWN = 'MARKDOWN';
41
+ const PLAINTEXT = 'PLAINTEXT';
42
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/{AdCreativeInstagramBrandedContent.php → Values/PostPlaceAttachmentSettingValues.php} RENAMED
@@ -22,13 +22,9 @@
22
  *
23
  */
24
 
25
- namespace FacebookAds\Object;
26
 
27
- use FacebookAds\ApiRequest;
28
- use FacebookAds\Cursor;
29
- use FacebookAds\Http\RequestInterface;
30
- use FacebookAds\TypeChecker;
31
- use FacebookAds\Object\Fields\AdCreativeInstagramBrandedContentFields;
32
 
33
  /**
34
  * This class is auto-generated.
@@ -37,21 +33,10 @@ use FacebookAds\Object\Fields\AdCreativeInstagramBrandedContentFields;
37
  * on github and we'll fix in our codegen framework. We'll not be able to accept
38
  * pull request for this class.
39
  *
 
40
  */
 
41
 
42
- class AdCreativeInstagramBrandedContent extends AbstractObject {
43
-
44
- /**
45
- * @return AdCreativeInstagramBrandedContentFields
46
- */
47
- public static function getFieldsEnum() {
48
- return AdCreativeInstagramBrandedContentFields::getInstance();
49
- }
50
-
51
- protected static function getReferencedEnums() {
52
- $ref_enums = array();
53
- return $ref_enums;
54
- }
55
-
56
-
57
  }
22
  *
23
  */
24
 
25
+ namespace FacebookAds\Object\Values;
26
 
27
+ use FacebookAds\Enum\AbstractEnum;
 
 
 
 
28
 
29
  /**
30
  * This class is auto-generated.
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static PostPlaceAttachmentSettingValues getInstance()
37
  */
38
+ class PostPlaceAttachmentSettingValues extends AbstractEnum {
39
 
40
+ const VALUE_1 = '1';
41
+ const VALUE_2 = '2';
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PostPostSurfacesBlacklistValues.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static PostPostSurfacesBlacklistValues getInstance()
37
+ */
38
+ class PostPostSurfacesBlacklistValues extends AbstractEnum {
39
+
40
+ const VALUE_1 = '1';
41
+ const VALUE_2 = '2';
42
+ const VALUE_3 = '3';
43
+ const VALUE_4 = '4';
44
+ const VALUE_5 = '5';
45
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PostPostingToRedspaceValues.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static PostPostingToRedspaceValues getInstance()
37
+ */
38
+ class PostPostingToRedspaceValues extends AbstractEnum {
39
+
40
+ const DISABLED = 'disabled';
41
+ const ENABLED = 'enabled';
42
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/{Fields/AdCreativeInstagramBrandedContentFields.php → Values/PostTargetSurfaceValues.php} RENAMED
@@ -22,7 +22,7 @@
22
  *
23
  */
24
 
25
- namespace FacebookAds\Object\Fields;
26
 
27
  use FacebookAds\Enum\AbstractEnum;
28
 
@@ -33,13 +33,10 @@ use FacebookAds\Enum\AbstractEnum;
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
 
36
  */
 
37
 
38
- class AdCreativeInstagramBrandedContentFields extends AbstractEnum {
39
-
40
-
41
- public function getFieldTypes() {
42
- return array(
43
- );
44
- }
45
  }
22
  *
23
  */
24
 
25
+ namespace FacebookAds\Object\Values;
26
 
27
  use FacebookAds\Enum\AbstractEnum;
28
 
33
  * on github and we'll fix in our codegen framework. We'll not be able to accept
34
  * pull request for this class.
35
  *
36
+ * @method static PostTargetSurfaceValues getInstance()
37
  */
38
+ class PostTargetSurfaceValues extends AbstractEnum {
39
 
40
+ const STORY = 'STORY';
41
+ const TIMELINE = 'TIMELINE';
 
 
 
 
 
42
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/PostUnpublishedContentTypeValues.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
+ *
5
+ * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
+ * use, copy, modify, and distribute this software in source code or binary
7
+ * form for use in connection with the web services and APIs provided by
8
+ * Facebook.
9
+ *
10
+ * As with any software that integrates with the Facebook platform, your use
11
+ * of this software is subject to the Facebook Developer Principles and
12
+ * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
+ * shall be included in all copies or substantial portions of the software.
14
+ *
15
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ namespace FacebookAds\Object\Values;
26
+
27
+ use FacebookAds\Enum\AbstractEnum;
28
+
29
+ /**
30
+ * This class is auto-generated.
31
+ *
32
+ * For any issues or feature requests related to this class, please let us know
33
+ * on github and we'll fix in our codegen framework. We'll not be able to accept
34
+ * pull request for this class.
35
+ *
36
+ * @method static PostUnpublishedContentTypeValues getInstance()
37
+ */
38
+ class PostUnpublishedContentTypeValues extends AbstractEnum {
39
+
40
+ const ADS_POST = 'ADS_POST';
41
+ const DRAFT = 'DRAFT';
42
+ const INLINE_CREATED = 'INLINE_CREATED';
43
+ const PUBLISHED = 'PUBLISHED';
44
+ const REVIEWABLE_BRANDED_CONTENT = 'REVIEWABLE_BRANDED_CONTENT';
45
+ const SCHEDULED = 'SCHEDULED';
46
+ const SCHEDULED_RECURRING = 'SCHEDULED_RECURRING';
47
+ }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/ProductCatalogVerticalValues.php CHANGED
@@ -45,6 +45,7 @@ class ProductCatalogVerticalValues extends AbstractEnum {
45
  const HOME_LISTINGS = 'home_listings';
46
  const HOTELS = 'hotels';
47
  const JOBS = 'jobs';
 
48
  const LOCAL_SERVICE_BUSINESSES = 'local_service_businesses';
49
  const OFFER_ITEMS = 'offer_items';
50
  const OFFLINE_COMMERCE = 'offline_commerce';
45
  const HOME_LISTINGS = 'home_listings';
46
  const HOTELS = 'hotels';
47
  const JOBS = 'jobs';
48
+ const LOCAL_DELIVERY_SHIPPING_PROFILES = 'local_delivery_shipping_profiles';
49
  const LOCAL_SERVICE_BUSINESSES = 'local_service_businesses';
50
  const OFFER_ITEMS = 'offer_items';
51
  const OFFLINE_COMMERCE = 'offline_commerce';
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/SystemUserRoleValues.php DELETED
@@ -1,55 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAds\Object\Values;
26
-
27
- use FacebookAds\Enum\AbstractEnum;
28
-
29
- /**
30
- * This class is auto-generated.
31
- *
32
- * For any issues or feature requests related to this class, please let us know
33
- * on github and we'll fix in our codegen framework. We'll not be able to accept
34
- * pull request for this class.
35
- *
36
- * @method static SystemUserRoleValues getInstance()
37
- */
38
- class SystemUserRoleValues extends AbstractEnum {
39
-
40
- const ADMIN = 'ADMIN';
41
- const ADS_RIGHTS_REVIEWER = 'ADS_RIGHTS_REVIEWER';
42
- const DEVELOPER = 'DEVELOPER';
43
- const EMPLOYEE = 'EMPLOYEE';
44
- const FINANCE_ANALYST = 'FINANCE_ANALYST';
45
- const FINANCE_EDITOR = 'FINANCE_EDITOR';
46
- const FINANCE_EDIT_TASK = 'FINANCE_EDIT_TASK';
47
- const FINANCE_VIEW_TASK = 'FINANCE_VIEW_TASK';
48
- const MODERATE_TASK = 'MODERATE_TASK';
49
- const OPERATE_TASK = 'OPERATE_TASK';
50
- const PARTNER_CENTER_ADMIN = 'PARTNER_CENTER_ADMIN';
51
- const PARTNER_CENTER_ANALYST = 'PARTNER_CENTER_ANALYST';
52
- const PARTNER_CENTER_EDUCATION = 'PARTNER_CENTER_EDUCATION';
53
- const PARTNER_CENTER_MARKETING = 'PARTNER_CENTER_MARKETING';
54
- const PARTNER_CENTER_OPERATIONS = 'PARTNER_CENTER_OPERATIONS';
55
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/facebook/php-business-sdk/src/FacebookAds/Object/Values/VehicleAvailabilityValues.php CHANGED
@@ -39,4 +39,5 @@ class VehicleAvailabilityValues extends AbstractEnum {
39
 
40
  const AVAILABLE = 'AVAILABLE';
41
  const NOT_AVAILABLE = 'NOT_AVAILABLE';
 
42
  }
39
 
40
  const AVAILABLE = 'AVAILABLE';
41
  const NOT_AVAILABLE = 'NOT_AVAILABLE';
42
+ const PENDING = 'PENDING';
43
  }
vendor/facebook/php-business-sdk/src/FacebookAds/Object/WhatsAppBusinessAccount.php CHANGED
@@ -246,6 +246,52 @@ class WhatsAppBusinessAccount extends AbstractCrudObject {
246
  return $pending ? $request : $request->execute();
247
  }
248
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  public function createSubscribedApp(array $fields = array(), array $params = array(), $pending = false) {
250
  $this->assureId();
251
 
246
  return $pending ? $request : $request->execute();
247
  }
248
 
249
+ public function deleteSubscribedApps(array $fields = array(), array $params = array(), $pending = false) {
250
+ $this->assureId();
251
+
252
+ $param_types = array(
253
+ );
254
+ $enums = array(
255
+ );
256
+
257
+ $request = new ApiRequest(
258
+ $this->api,
259
+ $this->data['id'],
260
+ RequestInterface::METHOD_DELETE,
261
+ '/subscribed_apps',
262
+ new AbstractCrudObject(),
263
+ 'EDGE',
264
+ array(),
265
+ new TypeChecker($param_types, $enums)
266
+ );
267
+ $request->addParams($params);
268
+ $request->addFields($fields);
269
+ return $pending ? $request : $request->execute();
270
+ }
271
+
272
+ public function getSubscribedApps(array $fields = array(), array $params = array(), $pending = false) {
273
+ $this->assureId();
274
+
275
+ $param_types = array(
276
+ );
277
+ $enums = array(
278
+ );
279
+
280
+ $request = new ApiRequest(
281
+ $this->api,
282
+ $this->data['id'],
283
+ RequestInterface::METHOD_GET,
284
+ '/subscribed_apps',
285
+ new AbstractCrudObject(),
286
+ 'EDGE',
287
+ array(),
288
+ new TypeChecker($param_types, $enums)
289
+ );
290
+ $request->addParams($params);
291
+ $request->addFields($fields);
292
+ return $pending ? $request : $request->execute();
293
+ }
294
+
295
  public function createSubscribedApp(array $fields = array(), array $params = array(), $pending = false) {
296
  $this->assureId();
297
 
vendor/facebook/php-business-sdk/test/FacebookAdsTest/Http/ClientTest.php CHANGED
@@ -24,7 +24,7 @@
24
 
25
  namespace FacebookAdsTest\Http;
26
 
27
- use FacebookAds\Api;
28
  use FacebookAds\Http\Adapter\AdapterInterface;
29
  use FacebookAds\Http\Adapter\CurlAdapter;
30
  use FacebookAds\Http\Client;
@@ -91,7 +91,7 @@ class ClientTest extends AbstractUnitTestCase {
91
  $this->assertTrue($headers instanceof Headers);
92
  $this->assertTrue($headers === $client->getDefaultRequestHeaderds());
93
  $this->assertArrayHasKey('User-Agent', $headers);
94
- $this->assertEquals('fbbizsdk-php-v'.Api::VERSION, $headers['User-Agent']);
95
  }
96
 
97
  public function testDomain() {
24
 
25
  namespace FacebookAdsTest\Http;
26
 
27
+ use FacebookAds\ApiConfig;
28
  use FacebookAds\Http\Adapter\AdapterInterface;
29
  use FacebookAds\Http\Adapter\CurlAdapter;
30
  use FacebookAds\Http\Client;
91
  $this->assertTrue($headers instanceof Headers);
92
  $this->assertTrue($headers === $client->getDefaultRequestHeaderds());
93
  $this->assertArrayHasKey('User-Agent', $headers);
94
+ $this->assertEquals('fbbizsdk-php-v'.ApiConfig::SDKVersion, $headers['User-Agent']);
95
  }
96
 
97
  public function testDomain() {
vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/ContentTest.php CHANGED
@@ -26,6 +26,7 @@ namespace FacebookAdsTest\Object;
26
 
27
  use FacebookAdsTest\AbstractUnitTestCase;
28
  use FacebookAds\Object\ServerSide\Content;
 
29
 
30
 
31
  class ContentTest extends AbstractUnitTestCase {
@@ -38,6 +39,7 @@ class ContentTest extends AbstractUnitTestCase {
38
  'description' => 'description-test',
39
  'brand' => 'brand-test',
40
  'category' => 'category-test',
 
41
  );
42
 
43
  $content = (new Content())
@@ -47,7 +49,8 @@ class ContentTest extends AbstractUnitTestCase {
47
  ->setTitle($expected['title'])
48
  ->setDescription($expected['description'])
49
  ->setBrand($expected['brand'])
50
- ->setCategory($expected['category']);
 
51
 
52
  $this->assertEquals($content->normalize(), $expected);
53
  }
@@ -61,6 +64,7 @@ class ContentTest extends AbstractUnitTestCase {
61
  'description' => 'description-test',
62
  'brand' => 'brand-test',
63
  'category' => 'category-test',
 
64
  );
65
  $expected = array(
66
  'id' => $initial['product_id'],
@@ -70,9 +74,24 @@ class ContentTest extends AbstractUnitTestCase {
70
  'description' => $initial['description'],
71
  'brand' => $initial['brand'],
72
  'category' => $initial['category'],
 
73
  );
74
  $content = new Content($initial);
75
 
76
  $this->assertEquals($content->normalize(), $expected);
77
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  }
26
 
27
  use FacebookAdsTest\AbstractUnitTestCase;
28
  use FacebookAds\Object\ServerSide\Content;
29
+ use FacebookAds\Object\ServerSide\DeliveryCategory;
30
 
31
 
32
  class ContentTest extends AbstractUnitTestCase {
39
  'description' => 'description-test',
40
  'brand' => 'brand-test',
41
  'category' => 'category-test',
42
+ 'delivery_category' => DeliveryCategory::CURBSIDE,
43
  );
44
 
45
  $content = (new Content())
49
  ->setTitle($expected['title'])
50
  ->setDescription($expected['description'])
51
  ->setBrand($expected['brand'])
52
+ ->setCategory($expected['category'])
53
+ ->setDeliveryCategory($expected['delivery_category']);
54
 
55
  $this->assertEquals($content->normalize(), $expected);
56
  }
64
  'description' => 'description-test',
65
  'brand' => 'brand-test',
66
  'category' => 'category-test',
67
+ 'delivery_category' => DeliveryCategory::CURBSIDE,
68
  );
69
  $expected = array(
70
  'id' => $initial['product_id'],
74
  'description' => $initial['description'],
75
  'brand' => $initial['brand'],
76
  'category' => $initial['category'],
77
+ 'delivery_category' => DeliveryCategory::CURBSIDE,
78
  );
79
  $content = new Content($initial);
80
 
81
  $this->assertEquals($content->normalize(), $expected);
82
  }
83
+
84
+ public function testInvalidDeliveryCategory() {
85
+ $test_delivery_category = 'invalid_delivery_category';
86
+ $content = (new Content())->setDeliveryCategory($test_delivery_category);
87
+ try {
88
+ $normalized_payload = $content->normalize();
89
+ } catch (\Exception $exception) {
90
+ $threw_exception = true;
91
+ $expected_string = sprintf("Invalid delivery_category passed: %s", $test_delivery_category);
92
+ $this->assertStringContainsString($expected_string, $exception->getMessage());
93
+ }
94
+
95
+ $this->assertTrue($threw_exception);
96
+ }
97
  }
vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/CustomDataTest.php CHANGED
@@ -110,4 +110,11 @@ class CustomDataTest extends AbstractUnitTestCase {
110
 
111
  $this->assertTrue($has_throw_exception);
112
  }
 
 
 
 
 
 
 
113
  }
110
 
111
  $this->assertTrue($has_throw_exception);
112
  }
113
+
114
+ public function testZeroCustomDataValue() {
115
+ $custom_data = (new CustomData())->setValue(0.0);
116
+
117
+ $normalized_payload = $custom_data->normalize();
118
+ $this->assertEquals($normalized_payload['value'], 0);
119
+ }
120
  }
vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/EventRequestTest.php CHANGED
@@ -47,7 +47,7 @@ class EventRequestTest extends AbstractUnitTestCase {
47
  . $this->expected_pixel_id
48
  . '/events';
49
  $this->expected_headers = array(
50
- 'User-Agent' => 'fbbizsdk-php-v' . ApiConfig::APIVersion,
51
  'Accept-Encoding' => '*',
52
  );
53
  $this->expected_access_token = 'a-test-token';
@@ -58,6 +58,10 @@ class EventRequestTest extends AbstractUnitTestCase {
58
  CURLOPT_HEADER => true,
59
  CURLOPT_CAINFO => Util::getCaBundlePath(),
60
  );
 
 
 
 
61
  }
62
 
63
  protected function tearDown(): void {
@@ -130,9 +134,10 @@ class EventRequestTest extends AbstractUnitTestCase {
130
  $this->assertEquals($expected_event_response, $actual_event_response);
131
  }
132
 
133
- public function testSetHttpService() {
134
- Api::init(null, null, $this->expected_access_token, false);
135
- $mock_fake_service_class = m::mock('overload:FacebookAdsTest\Object\ServerSide\TestHelpers\FakeHttpService');
 
136
  $expected_event_response = new EventResponse(
137
  array(
138
  'data' => array('events_received' => 1)
@@ -140,8 +145,8 @@ class EventRequestTest extends AbstractUnitTestCase {
140
  );
141
  $event_request = new EventRequest($this->expected_pixel_id);
142
  $event_request->setEvents(array(new Event(array('event_name' => 'event-123'))));
143
- $event_request->setHttpService(FakeHttpService::class);
144
- $mock_fake_service_class
145
  ->shouldReceive('executeRequest')
146
  ->once()
147
  ->with(
@@ -149,7 +154,7 @@ class EventRequestTest extends AbstractUnitTestCase {
149
  'POST',
150
  $this->expected_curl_options,
151
  $this->expected_headers,
152
- $this->normalize_and_merge($event_request, $this->expected_access_token)
153
  )
154
  ->andReturn($expected_event_response);
155
  $actual_event_response = $event_request->execute();
@@ -157,8 +162,8 @@ class EventRequestTest extends AbstractUnitTestCase {
157
  $this->assertEquals($expected_event_response, $actual_event_response);
158
  }
159
 
160
- public function testSetHttpServiceClientConfig() {
161
- $mock_fake_service_class = m::mock('overload:FacebookAdsTest\Object\ServerSide\TestHelpers\FakeHttpService');
162
  $expected_event_response = new EventResponse(
163
  array(
164
  'data' => array('events_received' => 1)
@@ -166,7 +171,7 @@ class EventRequestTest extends AbstractUnitTestCase {
166
  );
167
  $event_request = new EventRequest($this->expected_pixel_id);
168
  $event_request->setEvents(array(new Event(array('event_name' => 'event-123'))));
169
- $mock_fake_service_class
170
  ->shouldReceive('executeRequest')
171
  ->once()
172
  ->with(
@@ -174,19 +179,21 @@ class EventRequestTest extends AbstractUnitTestCase {
174
  'POST',
175
  $this->expected_curl_options,
176
  $this->expected_headers,
177
- $this->normalize_and_merge($event_request, $this->expected_access_token)
178
  )
179
  ->andReturn($expected_event_response);
180
- HttpServiceClientConfig::getInstance()->setClient(FakeHttpService::class);
181
  HttpServiceClientConfig::getInstance()->setAccessToken($this->expected_access_token);
182
  $actual_event_response = $event_request->execute();
183
 
184
  $this->assertEquals($expected_event_response, $actual_event_response);
185
  }
186
 
187
- public function testEventRequestHttpServiceOverridesClientConfig() {
188
- Api::init(null, null, 'a-different-access-token', false);
189
- $mock_fake_service_class = m::mock('overload:FacebookAdsTest\Object\ServerSide\TestHelpers\AnotherHttpService');
 
 
190
  $expected_event_response = new EventResponse(
191
  array(
192
  'data' => array('events_received' => 1)
@@ -194,8 +201,8 @@ class EventRequestTest extends AbstractUnitTestCase {
194
  );
195
  $event_request = new EventRequest($this->expected_pixel_id);
196
  $event_request->setEvents(array(new Event(array('event_name' => 'event-123'))));
197
- $event_request->setHttpService(AnotherHttpService::class);
198
- $mock_fake_service_class
199
  ->shouldReceive('executeRequest')
200
  ->once()
201
  ->with(
@@ -203,11 +210,12 @@ class EventRequestTest extends AbstractUnitTestCase {
203
  'POST',
204
  $this->expected_curl_options,
205
  $this->expected_headers,
206
- $this->normalize_and_merge($event_request, $this->expected_access_token)
207
  )
208
  ->andReturn($expected_event_response);
209
- HttpServiceClientConfig::getInstance()->setClient(FakeHttpService::class);
210
  HttpServiceClientConfig::getInstance()->setAccessToken($this->expected_access_token);
 
211
  $actual_event_response = $event_request->execute();
212
 
213
  $this->assertEquals($expected_event_response, $actual_event_response);
@@ -215,9 +223,12 @@ class EventRequestTest extends AbstractUnitTestCase {
215
 
216
  // Test helper functions
217
 
218
- protected function normalize_and_merge($event_request, $access_token) {
219
  $normalized_merged = $event_request->normalize();
220
  $normalized_merged['access_token'] = $access_token;
 
 
 
221
  return $normalized_merged;
222
  }
223
  }
47
  . $this->expected_pixel_id
48
  . '/events';
49
  $this->expected_headers = array(
50
+ 'User-Agent' => 'fbbizsdk-php-v' . ApiConfig::SDKVersion,
51
  'Accept-Encoding' => '*',
52
  );
53
  $this->expected_access_token = 'a-test-token';
58
  CURLOPT_HEADER => true,
59
  CURLOPT_CAINFO => Util::getCaBundlePath(),
60
  );
61
+ HttpServiceClientConfig::getInstance()->setAccessToken(null);
62
+ HttpServiceClientConfig::getInstance()->setClient(null);
63
+ HttpServiceClientConfig::getInstance()->setAppsecret(null);
64
+ Api::init(null, null, null, false);
65
  }
66
 
67
  protected function tearDown(): void {
134
  $this->assertEquals($expected_event_response, $actual_event_response);
135
  }
136
 
137
+ public function testSetHttpClient() {
138
+ $appsecret = 'appsecret-012';
139
+ Api::init(null, $appsecret, $this->expected_access_token, false);
140
+ $mock_client = m::mock('FacebookAdsTest\Object\ServerSide\TestHelpers\FakeHttpService');
141
  $expected_event_response = new EventResponse(
142
  array(
143
  'data' => array('events_received' => 1)
145
  );
146
  $event_request = new EventRequest($this->expected_pixel_id);
147
  $event_request->setEvents(array(new Event(array('event_name' => 'event-123'))));
148
+ $event_request->setHttpClient($mock_client);
149
+ $mock_client
150
  ->shouldReceive('executeRequest')
151
  ->once()
152
  ->with(
154
  'POST',
155
  $this->expected_curl_options,
156
  $this->expected_headers,
157
+ $this->normalize_and_merge($event_request, $this->expected_access_token, $appsecret)
158
  )
159
  ->andReturn($expected_event_response);
160
  $actual_event_response = $event_request->execute();
162
  $this->assertEquals($expected_event_response, $actual_event_response);
163
  }
164
 
165
+ public function testSetHttpClientClientConfig() {
166
+ $mock_client = m::mock('FacebookAdsTest\Object\ServerSide\TestHelpers\FakeHttpService');
167
  $expected_event_response = new EventResponse(
168
  array(
169
  'data' => array('events_received' => 1)
171
  );
172
  $event_request = new EventRequest($this->expected_pixel_id);
173
  $event_request->setEvents(array(new Event(array('event_name' => 'event-123'))));
174
+ $mock_client
175
  ->shouldReceive('executeRequest')
176
  ->once()
177
  ->with(
179
  'POST',
180
  $this->expected_curl_options,
181
  $this->expected_headers,
182
+ $this->normalize_and_merge($event_request, $this->expected_access_token, null)
183
  )
184
  ->andReturn($expected_event_response);
185
+ HttpServiceClientConfig::getInstance()->setClient($mock_client);
186
  HttpServiceClientConfig::getInstance()->setAccessToken($this->expected_access_token);
187
  $actual_event_response = $event_request->execute();
188
 
189
  $this->assertEquals($expected_event_response, $actual_event_response);
190
  }
191
 
192
+ public function testEventRequestHttpClientOverridesClientConfig() {
193
+ $appsecret = 'appsecret-012';
194
+ Api::init(null, 'a-different-app-secret', 'a-different-access-token', false);
195
+ $mock_used_client = m::mock('FacebookAdsTest\Object\ServerSide\TestHelpers\AnotherHttpService');
196
+ $mock_unused_client = m::mock('FacebookAdsTest\Object\ServerSide\TestHelpers\AnotherHttpService');
197
  $expected_event_response = new EventResponse(
198
  array(
199
  'data' => array('events_received' => 1)
201
  );
202
  $event_request = new EventRequest($this->expected_pixel_id);
203
  $event_request->setEvents(array(new Event(array('event_name' => 'event-123'))));
204
+ $event_request->setHttpClient($mock_used_client);
205
+ $mock_used_client
206
  ->shouldReceive('executeRequest')
207
  ->once()
208
  ->with(
210
  'POST',
211
  $this->expected_curl_options,
212
  $this->expected_headers,
213
+ $this->normalize_and_merge($event_request, $this->expected_access_token, $appsecret)
214
  )
215
  ->andReturn($expected_event_response);
216
+ HttpServiceClientConfig::getInstance()->setClient($mock_unused_client);
217
  HttpServiceClientConfig::getInstance()->setAccessToken($this->expected_access_token);
218
+ HttpServiceClientConfig::getInstance()->setAppsecret($appsecret);
219
  $actual_event_response = $event_request->execute();
220
 
221
  $this->assertEquals($expected_event_response, $actual_event_response);
223
 
224
  // Test helper functions
225
 
226
+ protected function normalize_and_merge($event_request, $access_token, $appsecret) {
227
  $normalized_merged = $event_request->normalize();
228
  $normalized_merged['access_token'] = $access_token;
229
+ if ($appsecret != null) {
230
+ $normalized_merged['appsecret_proof'] = Util::getAppsecretProof($access_token, $appsecret);
231
+ }
232
  return $normalized_merged;
233
  }
234
  }
vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/ServerSideUtilTest.php CHANGED
@@ -103,4 +103,19 @@ class ServerSideUtilTest extends TestCase {
103
  public function testGetCaBundlePath() {
104
  $this->assertTrue(file_exists(Util::getCaBundlePath()));
105
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  }
103
  public function testGetCaBundlePath() {
104
  $this->assertTrue(file_exists(Util::getCaBundlePath()));
105
  }
106
+
107
+ public function testGetAppsecretProof() {
108
+ $access_token = 'accesstoken0';
109
+ $appsecret = 'appsecret1';
110
+ $expected_appsecret_proof = hash_hmac(
111
+ 'sha256',
112
+ $access_token,
113
+ $appsecret
114
+ );
115
+
116
+ $this->assertEquals(
117
+ Util::getAppsecretProof($access_token, $appsecret),
118
+ $expected_appsecret_proof
119
+ );
120
+ }
121
  }
vendor/facebook/php-business-sdk/test/FacebookAdsTest/Object/ServerSide/TestHelpers/E2ETestHttpService.php DELETED
@@ -1,64 +0,0 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
4
- *
5
- * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
- * use, copy, modify, and distribute this software in source code or binary
7
- * form for use in connection with the web services and APIs provided by
8
- * Facebook.
9
- *
10
- * As with any software that integrates with the Facebook platform, your use
11
- * of this software is subject to the Facebook Developer Principles and
12
- * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
- * shall be included in all copies or substantial portions of the software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
- * DEALINGS IN THE SOFTWARE.
22
- *
23
- */
24
-
25
- namespace FacebookAdsTest\Object\ServerSide\TestHelpers;
26
- use FacebookAds\Object\ServerSide\HttpServiceInterface;
27
-
28
- use GuzzleHttp\Client;
29
- use GuzzleHttp\HandlerStack;
30
- use GuzzleHttp\Handler\CurlHandler;
31
- use GuzzleHttp\Psr7\MultipartStream;
32
- use GuzzleHttp\Psr7\Request;
33
-
34
- class E2ETestHttpService implements HttpServiceInterface {
35
- public function executeRequest($url, $method, array $curl_options, array $headers, array $params) {
36
- $multipart_contents = [];
37
-
38
- foreach ($params as $key => $value) {
39
- if ($key === 'data') {
40
- $multipart_contents[] = [
41
- 'name' => $key,
42
- 'contents' => \GuzzleHttp\json_encode($value),
43
- 'headers' => array('Content-Type' => 'multipart/form-data'),
44
- ];
45
- } else {
46
- $multipart_contents[] = [
47
- 'name' => $key,
48
- 'contents' => $value,
49
- 'headers' => array('Content-Type' => 'multipart/form-data'),
50
- ];
51
- }
52
- }
53
-
54
- $body = new MultipartStream($multipart_contents);
55
- $request = new Request($method, $url, $headers, $body);
56
-
57
- $handler_stack = HandlerStack::create(
58
- new CurlHandler(['options' => $curl_options])
59
- );
60
-
61
- $client = new Client(['handler' => $handler_stack]);
62
- return $client->send($request);
63
- }
64
- }