Error trying to fetch post from blog to flutter mobile application - flutter

I am working on a news app for my blog. The baseUrl has an issue and when I run, I get this error.
Exception has occurred.
WordPressError (WordPress Error!
code: null,
message: {“code”:“rest_user_cannot_view”,
“message”:“Sorry, you are not allowed to list users.”,
“data”:{“status”:401}},
status: null)

You are trying to access an unauthorized area. This is about privileges. You can read more about the HTTP status codes.

suPHP_ConfigPath /home/USER/public_html
Adding these in .htaccess solved the issue process

Related

Why does Facebook Graph API return error "An unexpected error has occurred. Please retry your request later."?

My iOS app was working perfectly with Facebook SDK until today I started to get this weird error:
body = {
error = {
code = 2;
message = "An unexpected error has occurred. Please retry your request later.";
type = OAuthException;
};
};
code = 500;
I am trying to do an FQL query and I haven't changed a single line of code. My access token is valid. Moreover, I went to Graph API Explorer, tried the exactly same FQL query from the Graph API Explorer (with the Application set to Graph API Explorer, and it worked. In Graph API Explorer, I've changed the Application to my app, and I got this error again, eliminating the possibility of the cause of my problem being the iOS SDK or access token. I've tried some of my other apps and they also work. The error seems to be bound to my app, but there is nothing wrong (or changed within a day, which used to work without a problem) with my app too in apps section. What could be the cause of this error?
This was probably a temporary issue. After writing the question, I tried the API call again, and it worked.

API Error Code: 100 Error Message: Some content in this message has been reported as abusive by Facebook users

Today, out of nowhere, my app has stopped working.
I'm getting this message and when i click ok, he redirect and get a server error.
API Error Code: 100
API Error Description: Invalid parameter
Error Message: Some content in this message has been reported as abusive by Facebook users.
I use Facebook php sdk.
How to fix this?

Facebook API unknown exception with api call after login

after successful facebook login we get an exception:
Fatal error: Uncaught GraphMethodException: API calls from the server require an appsecret_proof argument thrown in .../.../lib/base_facebook.php on line 1238
The code is:
$user = $facebook -> getUser();
if(!$user) {
//redirect etc. stuff here
}
else {
$me = $facebook -> api("/me"); //we get the exception here
}
Anyone seen similar error? I cant find any info on this error anywhere.
Thanks
As I posted here, this appsecret_proof thing was added to the latest version of PHP SDK quite recently. So my guess is that your App Setting for appsecret_proof is enabled, but you are not using the latest version of PHP SDK so the appcesret_proof is not generated.
You might want to check your setting at App Dashboard > Setting > Advanced > Security.
EDIT: 2013-08-09
Now they have [official document][3].
I got similar error to you. And I don't know how too. But if you don't really need OAuth login. You can disable it in setting>advance.
Go to Facebook Developer site - Open application setting - Advanced setting and disable these two things.
1) Require AppSecret Proof for Server API calls:
2) Stream post URL security:
Worked for me :)

Heroku - Application Error, but no error in logs

I'm hacking away at a Facebook app on Heroku, using Node.js. When I go to the app myself, it works exactly as I expect. When I send another developer/tester to it, the standard Heroku "Application Error" message is displayed. When I check the logs, there isn't even a log that the developer made a GET request for the app page, let alone an error.
He tells me that the last thing he sees in his browser status bar is "waiting for .herokuapp.com", which implies that Facebook got to the app, but the logs don't support this theory.
Is there another method of seeing Heroku errors? Is there something I have to turn on in order to see more? A setting I have to modify to let this other guy use the app?
Update: Some more looking around led me to check the network traffic. He's getting a 503 Service Unavailable, followed by the error page. Still wondering why this happens on his machine, but not mine.
Update: Inserted some error-checking code into the handle_facebook_request method.
req.facebook.app(function(err, app) {
if(err !== null) {
var errorMessage = "Error getting app: " + util.inspect(err['error']);
console.log(errorMessage);
}
// rest of req.facebook.me, and rendering code
}
This gives me an "Unsupported get request", of type "GraphMethodException" and code 100. So now I have something I can look into! I wish that Heroku had at least mentioned that the request had been tried.
I had the same problem with a new facebook app created with the support heroku / node.js.
After several attempts and tests I saw that I get the message "Unsupported get request", type "GraphMethodException" and the code 100, because my facebook app was with sandbox mode.
When I disabled the sandbox my application on heroku it worked fine.

Facebook API Error Code: 191 on facebook application

I'm developing a Facebook app. When I attempt to get an access token, I get the following message:
An error occurred with test. Please try again later.
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.
https://apps.facebook.com/fb_invite_app/----->URL
I've configured the
Site URL https://safe-gorge-5005.herokuapp.com/
Canvas URL same as above
Canvas Page URL
and my php code has define("FACEBOOK_CANVAS_URL", 'URL');
What is causing this error, and how do I fix it?
Did you give App Domains in app settings page , this may be one of the reason for getting this error