Fb.api Error Handling
Contents |
zugehörige Nutzer und das Ablaufdatum. Zum Abrufen dieser Informationen kannst du unsere Debug-Funktion oder den API-Endpunkt verwenden.Um
Facebook Graph Api Error Codes
die API zu verwenden, kannst du eine Graph error validating access token the session is invalid because the user logged out API-Anfrage starten: GET /debug_token? input_token={input-token}& access_token={access-token}input_token: der Zugriffsschlüssel, zu dem du Informationen erhalten
Facebook Api Error 400
möchtestaccess_token: dein App-Zugriffsschlüssel oder ein gültiger Nutzerzugriffsschlüssel eines Entwicklers der AppBei der Antwort des API-Aufrufs handelt es sich um ein JSON-Array, facebook graph api me das eine Map mit Feldern enthält. Beispiel: { "data": { "app_id": 000000000000000, "application": "Social Cafe", "expires_at": 1352419328, "is_valid": true, "issued_at": 1347235328, "scopes": [ "email", "publish_actions" ], "user_id": 1207059 } }Beachte, dass das issued_at-Feld bei kurzlebigen Zugriffsschlüsseln nicht zurückgegeben wird.Umgang mit FehlernDu erhältst von error validating access token session has expired facebook Facebook keine Benachrichtigung, wenn ein zuvor erstellter Zugriffsschlüssel seine Gültigkeit verliert. Sofern du die expiry-Zeit, die an deine App mit dem Zugriffsschlüssel weitergeleitet wird, nicht verfolgst, erfährt deine App unter Umständen erst von der Ungültigkeit eines Schlüssels, wenn du versuchst, eine API-Anfrage zu starten. Zudem ist es möglich, dass Zugriffsschlüssel aufgrund bestimmter, sicherheitsrelevanter Ereignisse vor der geplanten Ablaufzeit ihre Gültigkeit verlieren.In den meisten Apps sollten bei abgelaufenen Schlüsseln am besten die von der API ausgegebenen Fehlermeldungen erfasst werden. Die API gibt dann jeweils einen HTTP 400-Statuscode, einen Code und einen Untercode in einem JSON-Body mit Erläuterungen zum Fehler zurück. (Diese Beispiele enthalten keinen Untercode, aber Untercodes werden in der Fehlerreferenz beschrieben.)Abgelaufene oder ungültige ZugriffsschlüsselZugriffsschlüssel ist abgelaufen { "error": { "message": "Error validating access token: Session has expi
have permission for this action17User request limit reached100Invalid parameter102Session key invalid or no longer valid104Incorrect signature190Invalid OAuth 2.0 Access Token200Permission error294Managing advertisements requires the extended permission ads_management and an application that is whitelisted to access the Marketing API2606Unable to display a preview of
Error Validating Access Token The User Has Not Authorized Application
this ad2607The given currency is invalid for usage with ads.2615Invalid call to update this error validating access token the user is enrolled in a blocking logged-in checkpoint adaccount5000Unknown Error Code1349118One or more of the given URLs is not allowed by the Stream post URL security app setting. It must
Facebook Errors Today
match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. Read more about Login Security to learn more about app settings related to security.1359036Ad Create Failed https://developers.facebook.com/docs/facebook-login/access-tokens/debugging-and-error-handling - Too Many Ads: The account {account_id} has reached the maximum number of ads {max}1359102Invalid Parameter In Spec: Parameter has invalid value or missing required parameter: {param-value}1487006Invalid Campaign ID: You must specify a campaign, and the campaign specified must belong to the account specified and must not be deleted.1487007Campaign Ended: You can't edit ads in a campaign that has ended. Please create a new ad within this campaign, update the campaign end https://developers.facebook.com/docs/marketing-api/error-reference time, pick another campaign, or create a new campaign.1487010Ad Bid Too High: Your bid is above the maximum for its type and placement. Please try again with a value below the maximum if you would like to raise your bid.1487013Bid Too Low: Your bid is below the minimum for its placement and type. If you don't want your ad to run at the minimum bid rate, please pause it. Otherwise, please increase the bid to be within the suggested range.1487014Campaign budget was too low. Please increase the daily budget to at least 2 times the amount of the highest CPC ad bid, which is at least {minimum_budget}. You bid {bid}.1487015The ad creative is invalid1487065Ad Missing Targeting Spec: Ad spec needs a targeting spec. Please use targeting field to specify what audience the ad should be shown to. Field 'countries' is required; all others are optional.1487087Ad Create Failed: The Ad Create Failed for the following reason: {reason}1487089Target Spec Invalid: The target spec is invalid: {reason}1487090Ad Edit Failed - Spec Errors: {error}1487108Invalid Cities: Please check that the format in which you are specify the cities is correct, and if you specify ids, that they are of the correct type (not, for example, the id of the page for the city; city ids are returned by, e.g., graph.facebook.com/search?type=adcity).1487124I
die von Facebook zurückgegebenen Fehler reagiert. In diesem Leitfaden werden die Funktionen im Facebook-SDK https://developers.facebook.com/docs/ios/errors für iOS beschrieben, die dich hierbei unterstützen.Allgemeine http://stackoverflow.com/questions/10478812/facebook-graph-api-error-code-list Best PracticesJedes FBSDK Kit definiert eine FBSDK*Constants.h-Datei, die wiederum Fehlercodes definiert, die für das Kit relevant sind.Am wichtigsten ist es, dass das Facebook-SDK die in FBSDKConstants.h in FBSDKCoreKit.framework definierten error validating Schlüssel wenn möglich in das userInfo-Wörterbuch von NSErrors einträgt.Du solltest nur lokalisierte Meldungen als Fehler anzeigen. Hiervon ausgenommen sind Graph API-Anfragen, die die unten beschriebene automatische Fehlerbehebung nutzen.Fehlerbehandlung und -behebungSeit v4.0 des SDK können Fehlerobjekte und -informationen error validating access einfacher extrahiert und interpretiert werden. Dies umfasst Folgendes:NSError: Das SDK gibt diese Objekte für Anfragenrückrufe zurück und sie sind einfacher zu interpretieren.NSErrorRecoveryAttempting: Das SDK stellt Daten in NSError bereit, die einfacher zu extrahieren sind, und hält das informelle Protokoll NSErrorRecoveryAttempting ein.NSError-Objekte verfügen über userInfo-Wörterbücher, die die folgenden Schlüssel enthalten: Fehler Beschreibung FBSDKErrorDeveloperMessageKeyEine Fehlermeldung für den EntwicklerFBSDKErrorLocalizedDescriptionKeyEine lokalisierte Meldung an den Nutzer, sofern verfügbarFBSDKErrorLocalizedTitleKeyEin lokalisierter Titel für den Nutzer, sofern verfügbarFBSDKGraphRequestErrorCategoryKeyEin Enum-Wert, der die Fehlerkategorie angibt, z. B. vorübergehend, behebbar, andereFBSDKGraphRequestErrorGraphErrorCodeDer Graph API-FehlercodeFBSDKGraphRequestErrorErrorSubcodeDer Graph API-FehleruntercodeFBSDKGraphRequestErrorHTTPStatusCodeKeyDer von der Graph API zurückgegebene HTTP-StatuscodeFBSDKGraphRequestErrorParsedJSONResponseKeyDie JSON-Rohantwort von der Graph APINSError-Instanzen können darüber hinaus Daten enthalten, die das informelle Protokoll NSErrorRecoveryAttempting einhalten. Wenn die Kategorie (FBSDKGrap
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Facebook Graph API error code list up vote 28 down vote favorite 9 Where can I find the official Graph API Error Code list? I have been used Graph API for half year, and in the past 6 months, the error code's format has been changed twice! The first time I saw the error code, it looks like: { "error": { "message": "Error invalidating access token: The session has been invalidated because the user has changed the password.", "type": "OAuthException", } } It's really stranger, the error message didn't provide any error code! And then several months later, the "expected" error code was introduced. { "error": { "message": "Error invalidating access token: The session has been invalidated because the user has changed the password.", "type": "OAuthException", "code": 190, } } But sadly, you still cannot distinguish what the error exactly is by checking the "code", since many errors with the same "type" have the same "code". Just now, I found the error message contains new field: { "error": { "message": "Error invalidating access token: The session has been invalidated because the user has changed the password.", "type": "OAuthException", "code": 190, "error_subcode": 460 } } OK, it's just what I need. But where can I find the error code list? I knew there is FQL error code list, http://fbdevwiki.com/wiki/Er