Facebook Dev Error Validating Verification Code
Contents |
here for a quick overview
Please Make Sure Your Redirect_uri Is Identical To The One You Used In The Oauth Dialog Request
of the site Help Center Detailed answers to error validating verification code facebook oauth any questions you might have Meta Discuss the workings and policies of this
Error Validating Verification Code. Please Make Sure Your Redirect_uri Is Identical To The One You
site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us facebook redirect_uri 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 programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Facebook redirect facebook developers url issue OAuthException up vote 15 down vote favorite 6 My app was working well for long time, but now I am getting the error from Facebook saying: Content: {"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}} https://www.facebook.com/dialog/oauth/?client_id=163840537126360&redirect_uri=http://mycloud.niranjan.com/facebook/callback//empty/?vTitle=Facebook&scope=email,sms,user_about_me,friends_about_me,user_activities,friends_activities,user_birthday,friends_birthday,user_education_history,friends_education_history,user_events,friends_events,user_likes,friends_likes,user_location,friends_location,user_photos,friends_photos,user_videos,friends_videos,user_relationships,friends_relationships,user_status,friends_status,user_checkins,friends_checkins,read_stream,publish_stream Can anyone suggest a solution for this one? facebook api facebook-graph-api oauth share|improve this question edited Aug 13 '15 at 2:25 Flimzy 15.8k54269 asked May 15 '13 at 10:26 Niranjan Sagar 2141411 can you provide here your currently using redirect_uri? –Newbie May 15 '13 at 10:30 facebook.com/dialog/oauth/… –Niranjan Sagar May 15 '13 at 11:04 2 plz make sure that what redirect_url you have set at Facebook app should be same wha
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
Facebook Apps
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 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 Always get “Error http://stackoverflow.com/questions/16562602/facebook-redirect-url-issue-oauthexception validating verification code.” when requesting access_token up vote 0 down vote favorite Well, I have done all my best to try to solve this problem, but, still, it's too annoying. I decided to use OAuth with server-side authentication. So, I have followed Facebook documentation, and I have done the following step. Create a link which redirect people to log in Facebook by https://www.facebook.com/dialog/oauth?client_id={APP_ID}&redirect_uri=http://abc.com/nextStep.php In nextStep.php, http://stackoverflow.com/questions/11810972/always-get-error-validating-verification-code-when-requesting-access-token redirect people to https://graph.facebook.com/oauth/access_token?code={CODE GENERATED BY FACEBOOK}&client_id={APP_ID}&redirect_uri=http://abc.com/thirdStep.php&client_secret={APP_SECRET} The problem exists when proceeding to step 2. The page shows that: { "error": { "message": "Error validating verification code.", "type": "OAuthException", "code": 100 } } I have googled for lots of time. Some people suggests to add a trailing slash in the redirect_uri, but it doesn't work. What should I do? And how can I get the user information after getting the access_token? Thanks for your help. facebook oauth facebook-oauth share|improve this question asked Aug 4 '12 at 18:15 Chow Pak Hin 134 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote Two things: First, I’d say you’re missing the state parameter in your first URL … you have to make up a value that the docs describe as SOME_ARBITRARY_BUT_UNIQUE_STRING – some unique id/hash/whatever, that no one from the outside would be able to guess. (Yes, that parameter is optional – but you should use it anyway, because as the docs say it helps prevent CSRF and is therefore an important security measure. If you don’t know what CSRF means, please look it up.) And second, in your step tw
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 http://stackoverflow.com/questions/34857436/error-validating-verification-code-when-requesting-facebook-token-server-side 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 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 Error validating verification code when requesting Facebook Token Server Side error validating up vote 0 down vote favorite I am using Facebook API for logging in users for my site. I am developing it in ASP.NET 4.5/C#. I use server side to get the access token. Here's the part of the good that I get the exception from: dynamic response = fb.Get("oauth/access_token", new { client_id = facebookAppId, redirect_uri = System.Configuration.ConfigurationManager.AppSettings["WebsiteUrl"] + "oauth-redirect/facebook/", client_secret = facebookSecret, code = facebookCode }); When error validating verification I try to login, I get the following exception: (OAuthException - #100) Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request I viewed other related question about this subject, and I checked the end slash and tried with encoded URL, but nothing works. The URL I pass for the redirect_uri parameter is (I run and test my site locally): http://localhost:2194/oauth-redirect/facebook/ It worked before, but for some reason it doesn't work now. I am using the Facebook SDK for .NET by Outercurve Foundation version 7.0.6, which I installed via Nuget. Thanks. The URL c# asp.net facebook facebook-graph-api share|improve this question edited Jan 18 at 14:47 asked Jan 18 at 14:44 Idan Shechter 3,0141250117 2 What value does the parameter have in the actual login dialog URL? (Check address bar.) –CBroe Jan 18 at 15:49 You actually lead me to the solution. The URL wasn't built dynamically but encoded manually by myself in the link, and there I missed the end slash. –Idan Shechter Jan 18 at 15:50 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twit