Why Facebook application id suddenly become invalid?

43,964

Solution 1

If you're sure the app is not in sandbox mode (which was gema.megantara's answer), and hasn't been deleted for policy reasons by Facebook the only explanation I can think of is that you've restricted the app demographically (i.e by country or age)

If that's the case the API won't return the app's details unless you make the API call using a user access token for a user who meets whatever restrictions you've applied, and users who don't meet the requirements won't be able to use the app.

If that's what you've done, you can remove the restrictions via the API (via the restrictions field of the Application object or in the ''Advanced'' tab in the app settings in the App Dashboard

If using the frontend interface to change the settings, it's the ''App Restrictions'' field you want to edit, screenshot attached settings interface

Solution 2

Basically the same solution as the accepted answer, just updated for the latest FB developer site has been updated so you need do this:

  1. Apps->Your App
  2. Status+Review
  3. Do you want to make this app and all its live features available to the general public? -> Yes

updated

Solution 3

Usually if you get error like that when visit https://graph.facebook.com/523132271032907 is because the sandbox mode is on. Have you try to reset the secret key ?

Share:
43,964
Wayne
Author by

Wayne

Updated on May 09, 2020

Comments

  • Wayne
    Wayne about 4 years

    First of all I'm sure that my fb app id is valid because users can log in my Android app using facebook credentials until some days ago (I think it's before Feb break change).

    Recently new users cannot log in my Android app using facebook any more because facebook keep saying that my fb app invalid (Error is: Invalid application fb-app-id) BUT old users who already authorized my Android app for accessing their info can still log in using facebook. (Old users can still login to my app using facebook credentials but new users cannot)

    Does anyone know why this happen to my facebook app and how to fix it?

    Edit: When access to https://graph.facebook.com/facebook-app-id I get this error

    {
    "error": {
      "message": "Unsupported get request.",
      "type": "GraphMethodException",
      "code": 100
        }
       }
    

    Thanks you.

    • Lix
      Lix about 11 years
      Did you perhaps set your application to sandbox mode?
    • Wayne
      Wayne about 11 years
      No, sandbox mode is off, my old users can still using facebook to log in to my app.
  • Wayne
    Wayne about 11 years
    I don't understand what you mean, what page?
  • Gema Megantara
    Gema Megantara about 11 years
    Sorry my bad, before i wrong read your question. I edited my answer.
  • Wayne
    Wayne about 11 years
    Sandbox mode is off. Why do you suggest me to reset the secret key :D?
  • Wayne
    Wayne about 11 years
    Thank you, I will check and let you know if that is the case or not.
  • Wayne
    Wayne about 11 years
    It seems that problem resolved after I remove country restrictions. Thank you so much.