تم تحديث هذا المستند.
لم تكتمل الترجمة إلى اللغة ‏العربية‏ حتى الآن.
تاريخ تحديث المصدر باللغة الإنجليزية: ‏٨ مايو
تاريخ تحديث اللغة ‏العربية‏: ‏١٣‏/٠٢‏/٢٠٢٣

Version 11.0

Graph API

Released June 8, 2021 | Available until September 14, 2023 | Blog post


Consumer Apps

Access Levels

Applies to all versions.

In the coming weeks, access levels will apply to all existing Consumer apps. For these apps, permissions and features already approved through the App Review process will be automatically approved for Advanced Access. All other permissions and features will automatically be approved for Standard Access.

Access levels will also apply to all newly created apps in the coming weeks. Newly created apps will automatically be approved for Advanced Access for the email and public_profile permissions. However, both permissions will be set to Standard Access by default and must manually be set to Advanced Access before they can be requested from app users who do not have roles on the apps.


Developer Support

We have released the Facebook for Business Status tool to monitor the health of platform and business products such as Ads Manager, WhatsApp Business, and Facebook Developer Platform.


Facebook Analytics

Deprecation

Applies to all versions.

Facebook Analytics will no longer be available after June 30, 2021. Additionally, we are deprecating the App Dashboard Plugin for Marketing API. For more information visit the Business Help Center.

The following Application Node fields are no longer available:

  • analytics_config
  • analytics_platform_metrics_config
  • permissible_ad_accounts

The following endpoints are no longer available:

  • GET Application/analytics_cohort_query
  • GET Application/analytics_entity_user_config
  • GET Application/analytics_event_types
  • GET Application/analytics_funnel_query
  • GET Application/analytics_query
  • GET Application/analytics_segments

Instagram Basic Display API

Access Token Debugger

Applies to all versions.

The access token debugger tool now only returns an app-scoped ID when debugging a token.


API Versioning

Applies to all versions.

The API now supports versioned calls. To query a specific API version include the version number in the query path after the base URL. For example:

https://graph.instagram.com/v11.0/{node-id}/{edge-name}

Un-versioned requests (missing the version number) resolve to the version specified in the calling app's App Dashboard > Settings > Advanced > Upgrade API Version setting.


App Scoped User IDs

Applies to version 11.0+.

App-scoped user IDs (ASIDs) have been introduced. ASIDs will replace raw user IDs in approximately two years, when version 10.0 is deprecated, so we recommend that you begin mapping your app users' raw IDs to their ASID equivalents.

  • All versions support raw user ID based queries.
  • Only version 11.0+ calls support ASID based queries.
  • Version 11.0+ calls will receive ASIDs in responses, even when querying raw user IDs.

Time-based Pagination

Applies to v11.0+.

Added since and until parameters to the GET /{user-id}/media endpoint to support time-based pagination.


Instagram Graph API

Like Counts

Applies to v11.0+. Will apply to all versions September 7, 2021.

If indirectly querying an IG Media through another endpoint or field expansion, the like_count field will be omitted from API responses if the media owner has hidden like counts on it. Directly querying the IG Media (which can only be done by the IG Media owner) will return the actual like count, however, even if like counts have been hidden.


Time-based Pagination

Applies to v11.0+.

Added since and until parameters to the GET /{ig-user-id}/media endpoint to support time-based pagination.


Instant Experiences

Templates

Applies to v11.0+.

Instant Experience Templates have moved out of of beta and are now available to all developers.


Messenger Platform

Messaging Postbacks Webhook

Applies to v11.0+.

The mid field has been added to the messaging_postbacks webhook to allow apps to get the Message ID.


Deprecation of Airline Templates

Applies to v11.0+. Will apply to all versions on Dec 6, 2021.

Calls to POST /{page-id}/messages that include any airline templates (template_type of types airline_boardingpass, airline_checkin, airline_itinerary, airline_update) will fail.


oEmbed

New oEmbed Read Feature

Applies to all versions.

The oEmbed product has been replaced with a new oEmbed Read feature. If you implemented the oEmbed product before June 8, 2021, you have until September 7, 2021 to complete App Review for the oEmbed Read feature. If you have not been approved for the oEmbed Read feature by September 7, 2021, your oEmbed implementations will fail to load.


Pages API

Comment IDs

Applies to v11.0+. Will apply to all versions on September 7, 2021.

The id field for comments will not be returned for any apps that only use the Page Public Content Access feature to query Pages endpoints. These include the id fields /PAGEPOST-ID/comments or /COMMENT-ID/comments. To get the id fields for comments for comments on Page posts the app user must be able to perform the MODERATE task on the Page being queried.

New Page Experience

Over the coming months, all classic Pages will be migrated to the New Pages Experience. Use the has_transitioned_to_new_page_experience Page field to determine if a Page has been migrated. After all Pages have been migrated, the classic Pages experience will no longer be available.

Most Pages API endpoints support both classic and NPE Pages. Endpoints that support NPE Pages display a "New Pages Experience" section in their references.

The following endpoints do not support NPE pages:

  • /PAGE-ID/likes
  • /PAGE-ID/global_brand_children
  • /PAGE-ID/locations
  • /PAGE-ID/tabs
  • /PAGE-ID/visitor_posts

Several Page fields are not available for NPE and will return null, a different data set or an error when called. Please visit our New Pages Experience Overview for a list of these Page fields.


Permissions

user_likes

Applies to all versions.

The allowed usage for the user_likes permission has been updated. Starting September 7, 2021, apps that have already been approved for this permission but that violate its new usage description will have their approval revoked.

  • Old allowed usage: Meaningfully improve the quality of a user's experience in your app (must be clear to the user how their data is used to provide that experience).
  • New allowed usage: Provide a personalized experience by correlating or surfacing content related to the person’s likes. This includes curating content at scale to customize apps with large amounts of content and to enable people to share their likes with others, such as in the case of dating and music apps.

user_posts

Applies to all versions.

The allowed usage for the user_posts permission has been updated. Starting September 7, 2021, apps that have already been approved for this permission but that violate its new usage description will have their approval revoked.

  • Old allowed usage: Meaningfully improve the quality of a user's experience in your app (must be clear to the user how their data is used to provide that experience).
  • New allowed usage: Enable people to create physical or digital books or albums of their timelines, and to share memories from their timeline on Facebook or on other social apps.

SDK

Please visit the iOS SDK Changelog, Android SDK Changelog and Unity SDK Changelog to learn about important upcoming changes to these SDKs.

Marketing API

Released June 8, 2021 | Available until February 23, 2022 | Blog post


Audiences

Custom Audiences, Lookalike Audiences, and Saved Audiences Deletion

Applies to all versions.

Beginning June 8, 2021 and going forward, any Custom Audience, Lookalike Audience, or Saved Audience that has not been used in any active ad set in over two years will be flagged as an "Expiring Audience". Then, the audience is scheduled to be deleted 90 days after being marked as an "Expiring Audience".

Developers will be able to filter for the "Expiring Audience" status using the operation_status field and see the audience's estimated time deletion in the system using the delete_time field. Developers can choose to either proactively delete the audience or use the audience in an active ad set to prevent deletion. Once an audience is deleted, advertisers will not be able to reactivate the audience.

For Custom Audiences (except Customer List Custom Audiences), Lookalike Audiences, or Saved Audiences:

  • If advertisers wish for the flagged audiences to be automatically deleted beginning Sept 6, 2021 there is no action they need to take. However, if advertisers wish, they can also proactively delete the audience prior to the automatic deletion date.
  • For flagged audiences advertisers wish to maintain, they should plan to use these in an active ad set prior to Sept 6, 2021 to prevent the audience from being deleted.

For Customer List Custom Audiences:

  • We store these on behalf of advertisers in accordance with their instructions. If advertisers do not take any action to use flagged audiences in an active ad set before Sept 6, 2021, we will consider this an instruction for us to delete the flagged audience.

The following endpoints and fields will be affected:

See Audiences Overview: Custom Audiences Deletion Changes for more information on these updates.


Business API

Applies to all versions.

We are temporarily limiting access to the following endpoints. Only apps that have successfully called these endpoints within the last 30 days will continue to have access.

All other apps will receive an error when making calls to these endpoints.


Catalog API

Deprecation of Product Inventory Field

Applies to 11.0+.

The inventory field will be deprecated and replaced with a new quantity_to_sell_on_facebook field. While we will continue to support the inventory field for the near term, we recommend that you use the new quantity_to_sell_on_facebook field instead.

The following endpoints are affected:

See Quantity to Sell and Supported Fields for Products - Dynamic Ads & Commerce for more information on this update.


Deletion of Non-Empty Product Groups

Applies to 11.0+. Will apply to all versions on Sept. 7, 2021.

We will no longer allow deletion of non-empty product groups by default. Non-empty product groups can be deleted by applying deletion_method=delete_items to the deletion request. This will delete both the product group and its items.

The following endpoint is affected:


Deletion of Live Product Sets

Applies to 11.0+. Will apply to all versions on Sept. 7, 2021.

We will no longer allow deletion of a catalog with live product sets by default. To enable deletion of a catalog that contains a live product set, set the catalog's allow_delete_catalog_with_live_product_set parameter to true.

This change affects the following endpoint:


New Diagnostics Endpoint

Applies to 11.0+.

We have added a new endpoint GET /{product_catalog_id}/diagnostics. This endpoint can be used to retrieve diagnostics data for a given catalog, such as issues that prevent products from showing in channels and opportunities that could improve product discoverability.


Commerce API

Order Total Estimated Payment Details

Applies to 11.0+. Will apply to all versions on Sept. 7, 2021.

We are changing the way estimated payment details are reported in order totals for calls to the {commerce-order-id}/?fields=estimated_payment_details endpoint. Previously, if an order was not fulfilled, an estimated tax was used, and for fulfilled orders, the fulfilled tax was used. Starting with version 11.0, this endpoint will always use the estimated tax. Note that details about the fulfilled tax can be accessed using {commerce-order-id}/items?fields=tax_details.


Conversion Lift

Metrics Changes

Applies to v11.0+. Will apply to all versions on Sept. 7, 2021.

Metrics returned from the GET /{objective-id}/?fields=result field have changed.

The following metrics have been added:

  • conversions_incremental_share
  • conversions_CPiC
  • conversions_multicell_confidence
  • conversions_multicell_rank
  • sales_incremental_share
  • sales_multicell_confidence
  • sales_multicell_rank
  • buyers_incremental_share
  • buyers_CPiB
  • buyers_multicell_confidence
  • buyers_multicell_rank

The following metrics have been removed:

  • advancedBuyers.control
  • ancedBuyers.informativeMultiCellBayesianConfidence
  • advancedBuyers.lift
  • advancedBuyers.test
  • advancedConversions.control
  • advancedConversions.informativeMultiCellBayesianConfidence
  • advancedConversions.lift
  • advancedConversions.test
  • advancedSales.control
  • advancedSales.informativeMultiCellBayesianConfidence
  • advancedSales.lift
  • advancedSales.test
  • buyers.baseline
  • buyers.bayesianCILower
  • buyers.bayesianCIUpper
  • buyers.control
  • buyers.delta
  • buyers.incremental
  • buyers.isStatSig
  • buyers.lift
  • buyers.multiCellBayesianConfidence
  • buyers.reachedPercent
  • buyers.singleCellBayesianConfidence
  • conversions.baseline
  • conversions.bayesianCILower
  • conversions.bayesianCIUpper
  • conversions.control
  • conversions.delta
  • conversions.incremental
  • conversions.isStatSig
  • conversions.lift
  • conversions.multiCellBayesianConfidence
  • conversions.reachedPercent
  • conversions.singleCellBayesianConfidence
  • frequency
  • incrementalROAS
  • sales.baseline
  • sales.bayesianCILower
  • sales.bayesianCIUpper
  • sales.control
  • sales.delta
  • sales.incremental
  • sales.isStatSig
  • sales.lift
  • sales.multiCellBayesianConfidence
  • sales.singleCellBayesianConfidence

The following metrics have been renamed:

Old NameNew Name

advancedBuyers.baseline

buyers_not_exposed

advancedBuyers.bayesianCILower

buyers_incremental_lower

advancedBuyers.bayesianCIUpper

buyers_incremental_upper

advancedBuyers.incremental

buyers_incremental

advancedBuyers.informativeMultiCellPairwiseBayesianConfidence

buyers_multicell_confidence

advancedBuyers.informativeSingleCellBayesianConfidence

buyers_confidence

advancedBuyers.scaled

buyers_control_scaled

advancedConversions.baseline

conversions_not_exposed

advancedConversions.bayesianCILower

conversions_incremental_lower

advancedConversions.bayesianCIUpper

conversions_incremental_upper

advancedConversions.incremental

conversions_incremental

advancedConversions.informativeMultiCellPairwiseBayesianConfidence

conversions_multicell_confidence

advancedConversions.informativeSingleCellBayesianConfidence

conversions_confidence

advancedConversions.scaled

conversions_control_scaled

advancedSales.baseline

sales_not_exposed

advancedSales.bayesianCILower

sales_incremental_lower

advancedSales.bayesianCIUpper

sales_incremental_upper

advancedSales.incremental

sales_incremental

advancedSales.informativeMultiCellPairwiseBayesianConfidence

sales_multicell_confidence

advancedSales.informativeSingleCellBayesianConfidence

sales_confidence

advancedSales.scaled

sales_control_scaled

buyers.pValue

buyers_raw_pValue

buyers.reached

buyers_exposed

buyers.scaled

buyers_control_raw_scaled

buyers.test

buyers_test

conversions.pValue

conversions_raw_pValue

conversions.reached

conversions_exposed

conversions.scaled

conversions_control_raw_scaled

conversions.test

conversions_test

IncrementalROAS

sales_ROAS

sales.pValue

sales_raw_pValue

sales.reached

sales_exposed

sales.scaled

sales_control_raw_scaled

sales.test

sales_test

A complete list of the available metrics can be seen in the Facebook Lift Metrics Glossary.


Insights API

Deprecation of Store Visit Metrics

Applies to 11.0+. Will apply to all versions on Sept. 6, 2021.

The store_visits_actions and cost_per_store_visit_actions metrics are deprecated.

The following endpoints are affected:


Offer Ads API

Deprecation of Offer Ads API Endpoints

Applies to v11.0+. Will apply to all versions on Sept 7, 2021.

As part of our ongoing effort to increase product stability, Facebook will be ending its support for our Offer Ads product on June 8, 2021. Standard Facebook Ads are the recommended substitute for distributing your in-store and or online discounts. Discount information, redemption location(s), expiration date, and promotional codes are advised to be placed directly in the Ad Level creative.

The following endpoints are deprecated: