API Error code 191 [duplicate] - api

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Facebook API error 191
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.
What's wrong?

When you register for an application at Facebook you must provide the domain which would be using this application.
So if you have created an application which says "abc.com" then that application can only be called "abc.com". So when you try calling your application from "xyz.com" it gets rejected with the mentioned error.

Related

Tried logging to auth0 i got invalid state error

I have a problem with auth0.
There are two auth0 Applications in the project that I am working on right now. One is in PHP other one is WordPress. Both use auth0 Hosted Page.
First I opened my WordPress site in a tab in my web browser. Then I opened the same in another tab. Then tried logging in from the first tab by entering the email and the password and got the below error message:
wordpress error msg "There was a problem with your log in:
Invalid state [error code: unknown]"
If it is a PHP site got the below error message:
php error msg "Fatal error: Uncaught
Auth0\SDK\Exception\CoreException: Invalid state in
C:\xampp\htdocs\uat.sso\sso\vendor\auth0\auth0-php\src\Auth0.php:511
Stack trace: #0
C:\xampp\htdocs\uat.sso\sso\vendor\auth0\auth0-php\src\Auth0.php(434):
Auth0\SDK\Auth0->exchange() #1
C:\xampp\htdocs\uat.sso\sso\callback.php(8):
Auth0\SDK\Auth0->getUser() #2 {main} thrown in
C:\xampp\htdocs\uat.sso\sso\vendor\auth0\auth0-php\src\Auth0.php on
line 511"
Auth0 have a comprehensive guide on dealing with Invalid State errors in WordPress. You can check it out here.
Basically the most common causes are:
Cached Auth0 Callback URL, some hosting provider do this by default and they should be contacted to not cache this.
Cached Cookies and URL parameters
Cookie name requirements for certain hosting providers like Pantheon.
See the complete list here.

How to post on the wall vkontakte via oauth?

Error code:15
Error Message: "Access denied: no access to call this method"
scope=offline,wall
I am faced with such problem few days ago and right now I have no solution. VK support team simply ignore my question about it. The only thing I can say is that from the official documentation there is no exact answer on that.
You need the following rights to call this method: wall.
This method is only available to Standalone-apps and web clients using the confirmation window.
But when you go to permissons details page you find that "wall" scope
access permission is unavailable for sites (it is ignored at attempt of authorization).

Box API token request enterprise configuration issue

I am making a call to https://api.box.com/oauth2/token to get a token for a user.
I get a 400 with the following error:
Cannot obtain token based on the enterprise configuration for your app
I don't see this error message defined anywhere. Any ideas what I'm doing wrong?
The issue here was that I was requesting a token for a non app user and my application was configured to allow access to app users only.

"Send to Mobile" ends with API Error Code 191 and error message "redirect_uri is not allowed by the application for OAuth"

The native iOS app is listed on Facebook App Center. But there is issue with "Send to Mobile" action, it fails with error:
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not allowed by the application for OAuth.
Because the app is configured as a native iOS app, there is no any domains and redirect URI entered.
P.S. I know there is plenty of questions about API Error Code 191. But at the moment none of them was helpful, thus, I believe my question isn't a duplicate.
There seem to be a lot of different reasons for this error, but I had the same issue where clicking on the "Send to Mobile" resulted in error 191. In my case I was able to fix it by adding FB page URLs to the "Valid OAuth redirect URIs:" field in Advanced Settings.
I added the URL for the app in the App Center, as well as my main FB page - careful to use the correct URL scheme (https):
https://www.facebook.com/MyFBPage
https://www.facebook.com/appcenter/myfbapp
Hope that helps.

Silverlight and the http code [duplicate]

This question already has answers here:
Silverlight and WCF: NotFound error!
(2 answers)
Closed 8 years ago.
I have a silverlight application where wcf calls are failing.
I need to tell if I am receiving an http 500 error vs a 504 error.
Is there any way to capture this in silverlight so I can log it?
You dont see 504 errors in your application because of a limitation in the browser stack. The browser will only return 200 or 404 to any plug-in (such as Silverlight).
You can solve this using Fault Contracts.
This article on SilverlightShow is essential reading and will get you started
Client Http stack will return 504 errors.