PHP Classes

Getting Redirect Error in Facebook Login

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Check if an OA...  >  All threads  >  Getting Redirect Error in Facebook Login  >  (Un) Subscribe thread alerts  
Subject:Getting Redirect Error in Facebook Login
Summary:Facebook Login
Messages:3
Author:sid
Date:2015-07-06 05:48:54
 

  1. Getting Redirect Error in Facebook Login   Reply   Report abuse  
Picture of sid sid - 2015-07-06 05:48:54
Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

  2. Re: Getting Redirect Error in Facebook Login   Reply   Report abuse  
Picture of sid sid - 2015-07-06 06:28:56 - In reply to message 1 from sid
Yeas i solved above error .
But want to make sure the access token is valid or not?
How do i check the given access token is valid or not ?
Can you tell me how to verify access token for facebook app?

  3. Re: Getting Redirect Error in Facebook Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-07-06 18:25:34 - In reply to message 2 from sid
As you may have read in the article, you only know that a token is no longer valid for some reason when you make an API call and it fails.

So if at a certain point you want to perform that check, just send an API call to the user profile URL as in the login_with_facebook.php example and see if it succeeds or fails.