Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid application ID with Facebook iOS application

Here is the error when I try to login from my app.

MyApp[47747:907] Failed to log in Error Domain=com.facebook.sdk Code=2 
"The operation couldn’t be completed. (com.facebook.sdk error 2.)" 
UserInfo=0x1c5d3c50 {com.facebook.sdk:ErrorLoginFailedReason=com.facebook.sdk:SystemLoginCancelled, com.facebook.sdk:ErrorInnerErrorKey=Error Domain=com.apple.accounts Code=7 
"The Facebook server could not fulfill this access request: Invalid application [My_App_Id]" 
UserInfo=0x1c5cb630 {NSLocalizedDescription=The Facebook server could not fulfill this access request: Invalid application [My_App_Id]}, com.facebook.sdk:ErrorSessionKey=<FBSession: 0x1c584800, state: FBSessionStateClosedLoginFailed, loginHandler: 0x0, appID: 589037374454169, urlSchemeSuffix: , tokenCachingStrategy:<PFFacebookTokenCachingStrategy: 0x1d0818a0>, expirationDate: (null), refreshDate: (null), attemptedRefreshDate: 0001-12-30 00:00:00 +0000, permissions:(null)>}

On another iPhone the authorization works without problems. I checked that on both devices, My App is enabled for Facebook native auth.

Any ideas?

like image 938
Élodie Petit Avatar asked Apr 18 '13 14:04

Élodie Petit


People also ask

What does invalid app ID mean?

If you are having this error in facebook then it means you have not entered the Facebook APP ID in our AMP option panel.

How do I link my app ID to Facebook?

Under Accounts, click Apps. Click the Add dropdown menu. Select Connect an App ID. Enter the Facebook App ID.

What is Facebook application ID?

A Facebook App ID is a unique number that identifies your app when you request ads from Audience Network. Each app on Audience Network must have a unique Facebook App ID. You may already have an App ID if your app uses Facebook Login or Facebook Analytics for Apps.

How do I verify my Facebook app ID?

Load your app in the App Dashboard and go to Settings > Basic > Verification and click the Start Verification button or the + Business Verification link if you have previously completed Individual Verification.


1 Answers

Ok, my mistake. I was trying with my friend's Facebook account and he was not identified as a developer on Facebook.

Once I disabled the Sandbox mode for my app, login worked without problems.

like image 181
Élodie Petit Avatar answered Sep 22 '22 12:09

Élodie Petit