VK Oauth: Authenticating user, giving error - vk

I created an application in VK. But, when I try to authenticate a user, I am getting the following error:
{
error: "invalid_request",
error_description: "redirect_uri has wrong domain, check application settings"
}
Also, when I am creating application, I don't get any option to specify redirect-url.
Can anybody please help me, as to how should I resolve this error.

Go to https://vk.com/apps?act=manage, select needed app and click Manage. Click Settings on the left sidebar and edit Authorized redirect URI, Base domain and Site address fields (Under the Open API title)

Related

Issue with facebook social login : 'Invalid value for: query parameter state'

i'm encountering an issue with Facebook login, short context:
We have our auth service in scala
We use a connect.app in vuejs to call our auth service
Facebook login was working like 6 month before
i noticed that Facebook removed our API access due to lack of privacy policy link
i changed the privacy link and clicked on " restore access"
I checked AP ID and Secretkey on our env and it's correct
When i try to login with facebook, i get this message issue on click
Then when i click on "okay" i have more info about error : Invalid value for: query parameter state.
I don't know what i should do to make it works again.
Thanks in advance for your friendly help.

Facebook login WinJS Store app issues

I tried following this blog post
Which explains how to setup up facebook login on a WinJS app.
I got it all working, got the app ids set and the authentication dialog is showing the correct app name and authentication stuff, however when the app redirects the app receives this error (after closing the dialog: "The specified protocol is unknown") and the dialog shows the error message: "We can't connect to the service you need right now. Check your network connection or try this again later".
the error stack:
"WinRTError: The specified protocol is unknown.\r\n\n at getResultsOfAsyncOp (Function code:338:5)\n at op.completed (Function code:427:21)
Actual calling code:
var loginURL = "https://www.facebook.com/dialog/oauth?client_id=[snip]&display=popup&scope=user_about_me&response_type=token&redirect_uri=ms-app://s-[snip]/"
Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAsync(
Windows.Security.Authentication.Web.WebAuthenticationOptions.none,
new Windows.Foundation.Uri(loginURL))
.then(function success(result) {
}, function error(error) {
});
Hopefully anyone here has any idea why this error message is thrown.
We managed to solve the issue.
The sid from the store was different from the sid of the app during local debugging. By changing the appmanifest -> packaging -> publisher certificate to a local certificate with the CN provided in the store settings the sid is updated to be equal to the one in the store.
et voila, it works.

Facebook share dialog - Invalid URL Error

I have created app in Facebook developer account, I have set the site URL: http://www.xxxxxxx.com
If I open the page from www.xxxxxxx.com, then it works perfectly.
If I open the page from xxxxxxx.com, then it produces the following error:
An error occurred. Please try again later.
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
How should I specify my URL in my app to avoid this error?
You can set URLs in the settings of your app on facebook. Add xxxxxxx.com to the form field to make it work (additionally to the www.xxxxxxx.com).
You can only use URLs that are owned / set up, correctly.

How to debug Facebook connect issues?

I've setup my application with Facebook connect (using Omniauth) and it seems to work for some accounts but for others it returns the infamous An error occurred error.
This isn't to say it happens sporadically, but consistently for some users. Sandbox mode is off, the APP key etc. and domain are obviously setup correctly or it would always throw the error. How does one go about debugging this from a message as vague as that one?
Edit 2:
The App domain is correctly set up and so is the namespace. I have selected both "Website with Facebook Login" as well as "Mobile Web" and the URLs are correct and not HTTPS (both use the same URL). I've also reset the App secret just in case but this has not resolved the issue.
Try with these following example :
omniauth_callbacks_controller::process_callback method like this
# If a user is signed in then he is trying to link a new account
if user_signed_in?
if authentication.persisted? # This was a linking operation so send back the user to the account edit page
flash[:success] = I18n.t "controllers.omniauth_callbacks.process_callback.success.link_account",
:provider => registration_hash[:provider].capitalize,
:account => registration_hash[:email]
else
flash[:error] = I18n.t "controllers.omniauth_callbacks.process_callback.error.link_account",
:provider => registration_hash[:provider].capitalize,
:account => registration_hash[:email],
:errors =>authentication.errors
end
redirect_to edit_user_account_path(current_user)
and also refer the following location : OAuthException (#210) User not visible
i think this may help you to resolve your problem.
could you install Wireshark and monitor the traffic back and forth with good AND bad accounts - then determine the differences?

pagetab dialog getting error

Getting Error when i try to add a new pagetab.
http://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL
inserted for
YOUR_APP_ID = id of app
YOUR_URL=www.xxxxxxxxx
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.
Any hints would be very helpful.
Wondering, that i did this some weeks before without trouble.
Thanx
The value you're using for YOUR_URL must be a URL on one of the domains specified in the app domains value in the app settings and/or derived from the page tab URL you're using in the 'Page Tab' settings