Facebook App
A Facebook app.
GET /v24.0/{application-id} HTTP/1.1
Host: graph.facebook.com/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'/{application-id}',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result *//* make the API call */
FB.api(
"/{application-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{application-id}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{application-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];| フィールド | 説明 |
|---|---|
idnumeric string | The app ID |
aam_rulesstring | Rules of Auto Advanced Matching in FB SDKs |
an_ad_space_limitunsigned int32 | The maximum number of Ad Spaces allowed for each Audience Network supported platform |
an_platformslist<enum> | The platforms associated with the app in the Audience Network product. Not enforced, but when present, it can be used to provide the user with platform specific information for the app and its placements |
app_domainslist<string> | Domains and subdomains this app can use |
app_events_configApplicationAppEventsConfig | Configuration for app events |
app_install_trackedbool | Whether the app install is trackable or not |
app_namestring | App name |
app_signals_binding_ioslist<Binding> | List of app event bindings for iOS app |
app_typeunsigned int32 | App type |
auth_dialog_data_help_urlstring | The URL of a special landing page that helps people who are using an app begin publishing Open Graph activity |
auth_dialog_headlinestring | One line description of an app that appears in the Login Dialog |
auth_dialog_perms_explanationstring | The text to explain why an app needs additional permissions. This appears in the Login Dialog |
auth_referral_default_activity_privacystring | The default privacy setting selected for Open Graph activities in the Auth Dialog |
auth_referral_enabledunsigned int32 | Indicates whether Authenticated Referrals are enabled |
auth_referral_extended_permslist<string> | Extended permissions that a person can choose to grant when Authenticated Referrals are enabled |
auth_referral_friend_permslist<string> | Basic friends permissions that a user must grant when Authenticated Referrals are enabled |
auth_referral_response_typestring | The format that an app receives for the authentication token from the Login Dialog |
auth_referral_user_permslist<string> | Basic user permissions that a user must grant when Authenticated Referrals are enabled |
canvas_fluid_heightbool | Indicates whether the app uses fluid or settable height values for Canvas |
canvas_fluid_widthunsigned int32 | Indicates whether the app uses fluid or fixed width values for Canvas |
canvas_urlstring | The non-secure URL from which Canvas app content is loaded |
categorystring | The category of the app |
client_configmap | Config data for the client |
companystring | The company the app belongs to |
configured_ios_ssobool | True if the app has configured Single Sign On on iOS |
contact_emailstring | Email address listed for people using the app to contact developers |
created_timedatetime | Timestamp that indicates when the app was created |
creator_uidid | User ID of the creator of this app |
daily_active_usersnumeric string | The number of daily active users the app has |
daily_active_users_rankunsigned int32 | Ranking of this app vs other apps comparing daily active users |
deauth_callback_urlstring | URL that is pinged whenever a person removes the app |
default_share_modestring | The platform that should be used to share content |
descriptionstring | The description of the app, as provided by the developer |
financial_idstring | The ID for the corresponding audience network financial entity. |
hosting_urlstring | Webspace created with one of our hosting partners for this app |
icon_urlstring | The URL of this app's icon |
ios_bundle_idlist<string> | Bundle ID of the associated iOS app |
ios_supports_native_proxy_auth_flowbool | Whether to support the native proxy login flow |
ios_supports_system_authbool | Whether to support the iOS integrated Login Dialog |
ipad_app_store_idstring | ID of the app in the iPad App Store |
iphone_app_store_idstring | ID of the app in the iPhone App Store |
latest_sdk_versionApplicationSDKInfo | App latest sdk version |
linkstring | A link to the app on Facebook |
logging_tokenstring | To use for logging purposes |
logo_urlstring | The URL of the app's logo |
migrationsmap<string, bool> | Status of migrations for this app |
mobile_profile_section_urlstring | Mobile URL of the app section on a person's profile |
mobile_web_urlstring | URL to which Mobile users will be directed when using the app |
monthly_active_usersnumeric string | The number of monthly active users the app has |
monthly_active_users_rankunsigned int32 | Ranking of this app vs other apps comparing monthly active users |
namestring | The name of the app |
namespacestring | The string appended to |
object_store_urls | Mobile store URLs for the app |
page_tab_default_namestring | The title of the app when used in a Page Tab |
page_tab_urlstring | The non-secure URL from which Page Tab app content is loaded |
photo_urlstring | The URL of the app photo |
privacy_policy_urlstring | The URL that links to a Privacy Policy for the app |
profile_section_urlstring | URL of the app section on a user's profile for the desktop site |
property_idstring | The monetization property which owns this app |
protected_mode_rulesApplicationProtectedModeRules | protected_mode_rules |
real_time_mode_deviceslist<string> | List of real time hashed device |
restrictions | Demographic restrictions for the app |
restrictive_data_filter_paramsstring | Params used to filter out restrictive data |
secure_canvas_urlstring | The secure URL from which Canvas app content is loaded |
secure_page_tab_urlstring | The secure URL from which Page Tab app content is loaded |
server_ip_whiteliststring | App requests must originate from this comma-separated list of IP addresses |
social_discoveryunsigned int32 | Indicates whether app usage stories show up in the Ticker or Feed |
subcategorystring | The subcategory the app can be found under |
suggested_events_settingstring | Settings for suggested events |
supported_platformslist<enum {WEB, CANVAS, MOBILE_WEB, IPHONE, IPAD, ANDROID, WINDOWS, AMAZON, SUPPLEMENTARY_IMAGES, GAMEROOM, INSTANT_GAME, OCULUS, SAMSUNG, XIAOMI}> | All the platform the app supports |
terms_of_service_urlstring | URL to Terms of Service that appears in the Login Dialog |
url_scheme_suffixstring | URL scheme suffix |
user_support_emailstring | Main contact email for this app where people can receive support |
user_support_urlstring | URL shown in the Canvas footer that people can visit to get support for the app |
website_urlstring | URL of a website that integrates with this app |
weekly_active_usersnumeric string | The number of weekly active users the app has |
| エッジ | 説明 |
|---|---|
Edge<TestAccount> | Test User accounts associated with the app |
Edge<AdPlacementGroup> | Ad placement groups for publishing ads on this app |
Edge<AdNetworkAnalyticsAsyncQueryResult> | Obtain the results of an async Audience Network query for this publisher entity |
Edge<AEMAttribution> | aem_attribution |
Edge<AEMConversionConfig> | The aggregated event measurement conversion value configs for this app |
Edge<AEMConversionFilter> | Boolean for if product_set_id [fb_content_id] belongs to a certain catalog [catalog_id] |
Edge<Business> | The businesses which are not owner but can advertise for this app |
Edge<ApplicationAppEventTypes> | Info about App Events logged for the app |
Edge<Group> | List of facebook groups the app is installed in |
Edge<CanvasAppAsset> | appassets |
Edge<ButtonAutoDetectionDeviceSelection> | Whether to turn on auto device sampling. |
Edge<CloudbridgeSetting> | cloudbridge_settings |
Edge<Business> | connected_client_businesses |
Edge<DACheck> | A list of results after running Dynamic Ads checks on this app. |
Edge<ConversionConfig> | ios_skadnetwork_conversion_config |
Edge<MobileSdkGk> | Gatekeeper for Mobile SDK |
Edge<SDKMLModel> | model_asset |
Edge<MonetizedDigitalStoreObject> | List of digital store objects for this app monetized via Audience Network |
Edge<Null> | Open Graph Object types associated with this app |
Edge<Null> | Open Graph objects |
Edge<ApplicationPermission> | The status of permissions that are have been submitted for Login Review |
Edge<GamesIAPProduct> | In-app-purchaseable products associated with this app |
Edge<GamesIAPOrder> | In-app-purchaseable products of this app owned by the user |
Edge<ApplicationRoles> | The developer roles defined for this app |
Edge<ApplicationSgwDatasetStatus> | sgw_dataset_status |
Edge<ApplicationSgwInstallDeferralLink> | sgw_install_deferral_link |
Edge<ThreatPrivacyGroup> | The privacy groups of which this app is the member |
Edge<ThreatPrivacyGroup> | The privacy groups of which this app is the owner |
Edge<WhatsAppBusinessSolution> | Lists the WhatsApp Business Partner Solution objects that the application participate in. |
| エラー | 詳細 |
|---|---|
| 100 | Invalid parameter |
| 190 | Invalid OAuth 2.0 Access Token |
| 459 | The session is invalid because the user has been checkpointed |
| 368 | The action attempted has been deemed abusive or is otherwise disallowed |
| 200 | Permissions error |
| 105 | The number of parameters exceeded the maximum for this operation |
| 3000 | Reading insights of a Page, business, app, domain or event source group not owned by the querying user or application |
| 483 | The session is invalid because the user is in consent app blocking |
| 2500 | Error parsing graph query |
| 104 | Incorrect signature |
owned_appsのエッジにPOSTリクエストを以下のパスで送信できます: access_status: string, | エラー | 詳細 |
|---|---|
| 200 | Permissions error |
app_indexingのエッジにPOSTリクエストを以下のパスで送信できます: | パラメーター | 説明 |
|---|---|
app_versionstring | The version of the app being indexed 必須 |
device_session_idstring | Device session id of the uploading device |
extra_infostring | Extra information about the app index |
platformenum {ANDROID, IOS} | The platform of the app being indexed 必須 |
request_typeenum {APP_INDEXING, PLUGIN, BUTTON_SAMPLING} | デフォルト値: "APP_INDEXING"Type of the app indexing request |
treeJSON object | The UI component tree of the app 必須 |
screennamestring | |
screenshotstring | |
viewlist<JSON encoded app UI component> | 必須 |
success: bool, is_app_indexing_enabled: bool, | エラー | 詳細 |
|---|---|
| 100 | Invalid parameter |
codeless_event_mappingsのエッジにPOSTリクエストを以下のパスで送信できます: | パラメーター | 説明 |
|---|---|
mappingsarray<JSON object> | The event to UI component mappings of the app 必須 |
methodenum {INFERENCE, MANUAL, CONFIRMED_INFERENCE, BUTTON_INDEXING, UNKNOWN} | method 必須 |
event_namestring | event_name 必須 |
event_typeenum {CLICK, SELECTED, TEXT_CHANGED} | event_type 必須 |
app_versionstring | app_version 必須 |
parametersarray<JSON object> | parameters |
namestring | name 必須 |
patharray<JSON object> | path 必須 |
class_namestring | class_name 必須 |
indexint64 | index 必須 |
idint64 | id |
textstring | text |
tagstring | tag |
descriptionstring | description |
hintstring | hint |
match_bitmaskint64 | match_bitmask |
path_typeenum {ABSOLUTE, RELATIVE} | デフォルト値: "ABSOLUTE"path_type |
component_idstring | component_id 必須 |
patharray<JSON object> | path 必須 |
class_namestring | class_name 必須 |
indexint64 | index 必須 |
idint64 | id |
textstring | text |
tagstring | tag |
descriptionstring | description |
hintstring | hint |
match_bitmaskint64 | match_bitmask |
component_idstring | component_id 必須 |
path_typeenum {ABSOLUTE, RELATIVE} | デフォルト値: "ABSOLUTE"path_type |
screenshot_handlestring | screenshot_handle |
dimensionsarray<JSON object> | dimensions |
topint64 | top 必須 |
leftint64 | left 必須 |
widthint64 | width 必須 |
heightint64 | height 必須 |
activity_namestring | activity_name |
mutation_methodenum {REPLACE, ADD, DELETE} | Detailed mutation type like replace, add 必須 |
platformenum {ANDROID, IOS} | The platform of the app being indexed 必須 |
post_methodenum {EYMT, CODELESS} | デフォルト値: "CODELESS"Whether the api is called by codeless or EYMT |
num_updated: int32, num_invalid: int32, | エラー | 詳細 |
|---|---|
| 105 | The number of parameters exceeded the maximum for this operation |
client_appsのエッジにPOSTリクエストを以下のパスで送信できます: | パラメーター | 説明 |
|---|---|
app_id | App ID. 必須 |
access_status: enum, | エラー | 詳細 |
|---|---|
| 100 | Invalid parameter |
Update application information such as demographic restrictions.
To update an app restrictions, such as age, send a POST request to /{app-id}:
curl -i -X POST "https://graph.facebook.com/{app-id}?restrictions={'age':'21+'}&access_token={app-access-token}"
On success your app receives this response:
{
"success": true
}
/{application_id}にPOSTリクエストを送信してan Applicationを更新できます。| パラメーター | 説明 |
|---|---|
allow_cycle_app_secretboolean | デフォルト値: falseAllows for the application to cycle the secret |
an_platformslist<enum {ANDROID, DESKTOP, GALAXY, INSTANT_ARTICLES, IOS, MOBILE_WEB, OCULUS, UNKNOWN, XIAOMI}> | The platforms associated with the app in the AudienceNetwork product |
app_domainslist<string> | Specifies a list of domains that correspond to this app. Subdomains of domains in this array are also considered to belong to this app |
app_namestring | App name |
app_typeboolean | App type |
auth_dialog_headlinestring | One line description of this app that appears in the Login Dialog |
auth_dialog_perms_explanationstring | The text to explain why an app needs additional permissions. This appears in the Login Dialog |
auth_referral_enabledboolean | Enables or disables Authenticated Referrals |
auth_referral_extended_permslist<string> | Extended permissions that a person can choose to grant when Authenticated Referrals are enabled |
auth_referral_friend_permslist<string> | Basic friends permissions that a person must grant when Authenticated Referrals are enabled |
auth_referral_response_typestring | The format of the authentication token this app receives from the Login Dialog |
auth_referral_user_permslist<string> | Basic permissions that a person must grant when Authenticated Referrals are enabled |
canvas_fluid_heightboolean | Indicates whether this app uses fluid or settable height values for Canvas |
canvas_fluid_widthboolean | Indicates whether this app uses fluid or fixed width values for Canvas |
canvas_urlURL | The non-secure URL from which Canvas app content is loaded |
contact_emailstring | Email address users can use to contact developers |
deauth_callback_urlURL | URL that is pinged whenever a person removes this app |
mobile_web_urlURL | URL that mobile users will be directed to when using this app |
namespacestring | The string appended to |
page_tab_default_namestring | The title of this app as it appears in a Page Tab |
privacy_policy_urlURL | The URL that links to a privacy policy for this app |
restrictionsJSON-encoded string | Update demographic restrictions for this app. Can be one or more of the following parameters: |
secure_canvas_urlURL | The secure URL from which Canvas app content is loaded |
secure_page_tab_urlURL | The secure URL from which Page Tab app content is loaded |
server_ip_whitelistlist<string> | App requests must originate from this comma-separated list of IP addresses |
terms_of_service_urlURL | URL to Terms of Service that appears in the Login Dialog |
url_scheme_suffixstring | URL scheme suffix |
user_support_emailstring | Main contact email for this app where people can receive support |
user_support_urlURL | URL shown in the Canvas footer that people can visit to get support for this app |
website_urlURL | URL of a website that integrates with this app |
success: bool, | エラー | 詳細 |
|---|---|
| 100 | Invalid parameter |
| 104 | Incorrect signature |
| 368 | The action attempted has been deemed abusive or is otherwise disallowed |
/act_{ad_account_id}/subscribed_appsにPOSTリクエストを送信してan Applicationを更新できます。| パラメーター | 説明 |
|---|---|
app_idstring | デフォルト値: the id of app to be subscribed from ad account |
idによって表されたノードを戻り値の型で読み込みます。success: bool, | エラー | 詳細 |
|---|---|
| 100 | Invalid parameter |
| 200 | Permissions error |
/{application_id}/mmp_auditingにPOSTリクエストを送信してan Applicationを更新できます。| パラメーター | 説明 |
|---|---|
advertiser_idstring | |
attributionstring | mobile_cookie from the person's device. Use this only on Android or iOS devices before iOS 6. The format for this should be like |
attribution_methodstring | The attribution method used. The options are: {ARD, DEEPLINK, GPIR, MIR, SRN} |
attribution_modelstring | The attribution model that the client selected to be respected by MMP |
attribution_referrerstring | The attribution referrer, if one was used |
auditing_tokenstring | The token provided in claim response sent to MMP |
click_attr_windowint64 | Time window of click attribution |
custom_eventslist<CustomEvent> | When the event_type is custom_app_events, custom_events should contain the names of the custom events. |
_eventNameRegexParam | Event name, must match the regular expression /^[0-9a-zA-Z_][0-9a-zA-Z _-]{0,39}$/ 必須 |
_eventName_md5RegexParam | MD5 hash of the event name, must match the regular expression /^[A-Fa-f0-9]{32}$/ |
_valueToSumfloat | Values to Sum |
_logTimeint64 | Time to Log |
_implicitlyLoggedint64 | Whether this is implicitly logged |
_isTimedEventboolean | Whether this is a timed event |
_session_idstring | |
_app_user_idstring | |
decline_reasonstring | The reason that the MMP rejected Meta's claim |
device_osstring | The OS of the device the event was on |
engagement_typestring | The engagement type from Meta's claim, such as engaged_view |
eventstring | Event type that Facebook claimed for 必須 |
event_idstring | An MMP-defined event ID, unique for each event |
event_reported_timeint64 | The time at which the event was reported to MMP |
fb_ad_idint64 | FBID of the ad in Meta's claim |
fb_adgroup_idint64 | FBID of the adgroup. Provide this parameter when the attribution method is ARD (auto-redirect). |
fb_click_timeint64 | Ad click time in Meta claim |
fb_view_timeint64 | Ad view time in Meta claim |
google_install_referrerstring | The raw GPIR referrer string, if this event was attributed by GPIR |
inactivity_window_hoursint64 | Inactivity window in hours |
install_idstring | If this is an install event, install_id should be an MMP-generated ID unique across all installs (which can be the same as the event_id). If this is a post-install event, the install_id should be MMP-defined install_id of the install event that preceded this event. |
is_fbboolean | Result (whether the MMP attributed the event to Meta ads) 必須 |
meta_install_referrerstring | The raw MIR referrer string, if this event was attributed by MIR |
used_install_referrerboolean | Identifies whether MMP used the install referrer |
view_attr_windowint64 | Time window of view attribution |
success: bool, success: bool, | エラー | 詳細 |
|---|---|
| 100 | Invalid parameter |
/{page_id}/subscribed_apps.success: bool, messaging_success: bool, | エラー | 詳細 |
|---|---|
| 100 | Invalid parameter |
| 190 | Invalid OAuth 2.0 Access Token |
| 210 | User not visible |
| 200 | Permissions error |
| 104 | Incorrect signature |
/act_{ad_account_id}/subscribed_apps.| パラメーター | 説明 |
|---|---|
app_idstring | デフォルト値: the id of app to be unsubscribed from ad account |
success: bool, | エラー | 詳細 |
|---|---|
| 100 | Invalid parameter |