Facebook Message Error Validating Verification Code
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might please make sure your redirect_uri is identical to the one you used in the oauth dialog request have Meta Discuss the workings and policies of this site About
Error Validating Verification Code. Please Make Sure Your Redirect_uri Is Identical To The One You
Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting facebook redirect_uri 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 facebook apps programmers, just like you, helping each other. Join them; it only takes a minute: Sign up facebook error 'Error validating verification code' up vote 46 down vote favorite 21 very strange error. i use gide http://developers.facebook.com/docs/authentication/. so i create request to fb and pass redirect_uri. i use test site on localhost. so if i pass redirect_uri=http://localhost/test_blog/index.php it works fine, but if i pass redirect_uri=http://localhost/test_blog/index.php?r=site/oauth2 it don't want work. i try to use redirect_uri= . urlencode('http://localhost/test_blog/index.php?r=site/oauth2) but not work. i try to explaine. i success get code, but when i access https://graph.facebook.com/me?access_token i get error 'Error validating verification code'. i checked evering, error is in ?r=site/oauth2 but i need passing some params can somebody help me? i read post http://forum.developers.facebook.net/viewtopic.php?id=70855 but nothing work for me php facebook urlencode share|improve this question asked Dec 8 '10 at 11:00 kusanagi 4,174156396 i see that we can use url rewriting like localhost/tes...php/site/oauth2 but it's simply interesting how to solve the problem –kusanagi Dec 8 '10 at 12:59 add a comment| 11 Answers 11 active oldest votes up vote 117 down vote accepted There are presently (as of March 2011) undocumented requirements regarding what makes a valid redirect_uri. First, both redirect_uri paramaters to authorize and access_token must match. Apparently Facebook (or rather OAuth2) is using the redirect_uri as a internal k
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 http://stackoverflow.com/questions/4386691/facebook-error-error-validating-verification-code 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 OAuth error: Error validating verification code up vote 0 down vote favorite I'm trying to get the access http://stackoverflow.com/questions/36774231/facebook-oauth-error-error-validating-verification-code token for Facebook login, but got an error instead. All the answers that I found tell me about the wrong redirect_uri format. This is the error I got: { "error": { "message": "Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request", "type": "OAuthException", "code": 100, "fbtrace_id": "Ht12b5BKgRK" } } And here is the redirect URI registered in Facebook App. Steps that I do: https://graph.facebook.com/oauth/authorize?client_id=APP_ID&redirect_uri=http://127.0.0.1:8080/MyProject/Mapping&scope=user_posts&response_type=code This link redirect me to http://127.0.0.1:8080/MyProject/Mapping?code=GENERATED_CODE Then in the code i generate next URI: https://graph.facebook.com/oauth/access_token?client_id=549422435210997&redirect_uri=http://127.0.0.1:8080/MyProject/Mapping&client_secret=CLIENT_SECRET&code=GENERATED_CODE Requesting this URI gives me error instead of access_token I have tryied also redirect_uri=http://127.0.0.1:8080/MyProject/Mapping/. Still no results. Also, I have tied the same steps using restFB library for Java. And got the same error. ScopeBuilder scopeBuilder = new ScopeBuilder(); scopeBuilder.addPermission(UserDataPermissions.USER_POSTS); FacebookClient client = new DefaultFacebookClient(Version.LATEST); String loginDialogUrlString = client.getLoginDialogUrl(APP_ID, "http://127.0.0.1:8080/MyProject/Mapping", scopeBuilder); System.out.println(loginDialogUrlString);
SNAP API - Universal API for All Networks Google+ API Library Pinterest API Library [New!] Instagram API Library Blogger API Library LinkedIn API Library Contact us/Get Support Ludwig Van Normainen Get support/Open http://www.nextscripts.com/forums/topic/error-validating-verification-code/ Support Ticket We are from Ringwood, NJ USA Blog/News From blog New Release: https://github.com/SammyK/LaravelFacebookSdk/issues/52 SNAP for WordPress Version 3.7SNAP for Wordpress Version 3.7 has been released. This version adds support for two new networks. 1. Weibo. Biggest Chinese Microblogging Service. You can post […] Autoposting to InstagramInstagram Autoposting is coming to SNAP! 3 years ago we wrote an article explaining why Instagram was not supported. error validating Instagram was accepting images only from […] ... more blog entries Latest Versions Social Networks Auto Poster {SNAP} - Plugin for Wordpress Ver 3.7.1 (Released: Sept 15, 2016) SNAP PRO API Library Ver 2.18.0 (Released March 04, 2016) SNAP API Package Ver 3.0.23 (Released March 04, 2016) Contact us/Get Support Ludwig Van Normainen Get support/Open Support Ticket We are from Ringwood, NJ USA Instructions error validating verification Setup/Installation/Configuration Instructions: Plugin Features FAQ Troubleshooting FAQ Current known issues Plugin Setup/Installation PRO Plugin Upgrade/Activation Tutorials: All Supported Networks All types of posts for Facebook, Google+, XING All types of Facebook posts WP-Cron: Scheduling Tasks in WordPress How to check if curlSSL is working Facebook Twitter Google+ Pinterest LinkedIn Tumblr Blogger Diigo Delicious Blog.com Livejournal/DreamWidth Plurk Reddit Stumbleupon Scoop.It vkontakte (vk.com) Wordpress.com FAQ General FAQ Troubleshooting FAQ Forums Support Setup/Installation/Configuration Instructions Plugin Setup/Installation Facebook Twitter Google+ Pinterest LinkedIn Tumblr Blogger Diigo Delicious Blog.com Livejournal/DreamWidth Plurk Scoop.It Stumbleupon vkontakte (vk.com) Wordpress.com PRO Plugin Upgrade/Activation FAQ Troubleshooting FAQ Latest Versions Social Networks Auto Poster {SNAP} - Plugin for Wordpress Ver 3.7.1 (Released: Sept 15, 2016) SNAP PRO API Library Ver 2.18.0 (Released March 04, 2016) SNAP API Package Ver 3.0.23 (Released March 04, 2016) Contact Us/Get Support Get support/Open Support Ticket Contact: Ludwig Van Normainen We are from Ringwood, NJ, USA USA Translations Translations Contact Us Select a page &crarr
Sign in Pricing Blog Support Search GitHub This repository Watch 28 Star 401 Fork 77 SammyK/LaravelFacebookSdk Code Issues 4 Pull requests 5 Projects 0 Pulse Graphs New issue help : Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request #52 Closed b3nhysteria opened this Issue Mar 24, 2015 · 3 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants b3nhysteria commented Mar 24, 2015 here's my code route.php : Route::get('fby', 'WelcomeController@LogWithFb'); Route::get('/facebook/login', function(SammyK\LaravelFacebookSdk\LaravelFacebookSdk $fb) { $login_link = $fb ->getRedirectLoginHelper() ->getLoginUrl('http://localhost:8000/fby', ['email', 'user_events']); echo 'Log in with Facebook'; }); in my WelcomeController : use SammyK\LaravelFacebookSdk\LaravelFacebookSdk; public function LogWithFb(LaravelFacebookSdk $fb) { // // Obtain an access token. try { $token = $fb->getAccessTokenFromRedirect(); } catch (Facebook\Exceptions\FacebookSDKException $e) { dd($e->getMessage()); } // Access token will be null if the user denied the request // or if someone just hit this URL outside of the OAuth flow. if (!$token) { // Get the redirect helper $helper = $fb->getRedirectLoginHelper(); if (!$helper->getError()) { abort(403, 'Unauthorized action.'); } // User denied the request dd( $helper->getError(), $helper->getErrorCode(), $helper->getErrorReason(), $helper->getErrorDescription() ); } if (!$token->isLongLived()) { // OAuth 2.0 client handler $oauth_client = $fb->getOAuth2Client(); // Extend the access token. try { $token = $oauth_client->getLongLivedAccessToken($token); } catch (Facebook\Exceptions\FacebookSDKException $e) { dd($e->getMessage()); } } $fb->setDefaultAccessToken($token); // Save for later Session::put('fb_user_access_token', (string) $token); // Get basic info on the user from Facebook. try { $response = $fb->get('/me?fields=id,name,email'); } catch (Facebook\Exceptions\FacebookSDKException $e) { dd($e->getMessage()); } // Convert the response to a `Facebook/GraphNodes/GraphUs