Redirecting to authentication dialog - “An error occurred. Please try again later”

前端 未结 30 1745
执念已碎
执念已碎 2020-11-29 04:08

Why does it always happen to me?

This happens after my application verify for user user login and redirect user to the authentication page:

https://w

相关标签:
30条回答
  • 2020-11-29 04:28

    I had the same problem; it turned out FB requires a string appID and not an int...

    //DOESNT WORK:
    $facebook = new Facebook(array(
      'appId'  => 147XXXXXXXXXXX,
      'secret' => 'XXXXXXXXXXXXXX',
    ));
    
    // WORKS:
    $facebook = new Facebook(array(
      'appId'  => '147XXXXXXXXXXX',
      'secret' => 'XXXXXXXXXXXXXX',
    ));
    
    0 讨论(0)
  • 2020-11-29 04:28

    Answer for 2015

    Sandbox mode is gone.

    Proceed to My Apps -> Your App -> Status & Review and change the slider to yes for:

    Do you want to make this app and all its live features available to the general public?

    0 讨论(0)
  • 2020-11-29 04:28

    In my case, there was an age issue with the account being used with the app.

    If the FB app has alcoholic content then FB users who are younger than about 21 will throw an error when trying to authorize with it.

    0 讨论(0)
  • 2020-11-29 04:29

    When working with Dialogues, Facebook provide a 'show_error' attribute that defaults to no but can be set to true in a Development environment and is really helpful for debugging purposes.

    show_error - If this is set to true, the error code and error description will be displayed in the event of an error.

    Instructions of it's use can be found in the Facebook Docs.

    I'd been debugging "An Error occurred. Please try later." dialogue before i found this attribute in the docs. Once i started using it, i could see the following message too:

    API Error Code: 191

    API Error Description: The specified URL is not owned by the application

    Error Message: redirect_uri is not owned by the application.

    0 讨论(0)
  • 2020-11-29 04:30

    For me the problem was that the Facebook users I was using to test the app did not have its email address confirmed by Facebook.

    My client had set up 2 fake accounts on Facebook and told me that they were not working. But he forgot to confirm the email addresses of those accounts (the emails Facebook sent went to his spam folder and he didn't notice).

    Took me hours to find this, so I hope it helps somebody.

    Cheers!

    0 讨论(0)
  • 2020-11-29 04:31

    Came here with a similar problem and, yes, my Sandbox was enabled. I disabled it and, voila, the login problem went away. I must warn that this problem does not affect developers and website administrators as Facebook allows those users to see the app. For this reason, I couldn't even believe that users complained about not being able to login, as I was able to login with no problems at all.

    0 讨论(0)
提交回复
热议问题