This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Facebook API error 191
I have a Facebook page app running a competition entry that posts to the users wall upon entry.
I have it set up and working on my development server but when I try to host it from my dedicated server I get the error:
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 permitted by the application configuration.
This suggests I haven't used the correct URL in my app settings, but I have checked and doubled checked and everything is okay.
It only seems to be a problem when hosted on my dedicated server as I have tested the app from servers and it works fine. For this project unfortunately it HAS to be hosted from my dedicated server.
Does anyone know a solution to this?
Each Facebook application requires it's own unique domain name. One domain name for one Facebook application.
Create new application for you production domain name.
Related
I am currently using GMAIL less secure app method to send email from my website. Since it no longer works due to Google blocking the emails to be sent, I am now shifting to Oauth method.
I followed all the steps mentioned in the following article and was able to complete all the steps successfully except the last one.
https://github.com/PHPMailer/PHPMailer/wiki/Using-Gmail-with-XOAUTH2
In the last step when I try to visit the URL and select google as the provider it just displays:
[website] is currently unable to handle this request.
HTTP ERROR 500
Things I tried:
Deactivating all plugins
Increasing PHP memory limit
My website generally is not facing Error 500 problem. It displays this only while accessing the URL where the get_oauth_token.php resides on the website (as directed to do in the article)
This question already has answers here:
Facebook OAuth "The domain of this URL isn't included in the app's domain"
(31 answers)
Closed 4 years ago.
I recently stumbled upon problem when trying to login via facebook app login. First of all, I've already read every possible thread about problems with fb login, followed every possible tutorial but with no effect. Everything worked perfect when it was first done but I've just found out it's not working. I get this:
I get the message - domain is not included in the app domain field. But in fact it is as you can see below:
Help me Stack Overflow, you are my only hope.
Simply updating to 5.6.2 solves the problem.
This question already has answers here:
WampServer & XAMPPserver automatically redirecting http to https (I don't want this)
(2 answers)
Closed 4 years ago.
I have a project virtually hosted in my computer(OS-Ubuntu , LAMP Stack).
The URL is I use to run my web app is http://ecommerce.dev . And It works fine in Firefox, but when I enter same URL in Google Chrome. I get an error saying This site can’t provide a secure connection ecommerce.dev sent an invalid response.
ERR_SSL_PROTOCOL_ERROR
And the URL in the browser automatically changes to https://ecommerce.dev.
So I you guys to solve this problem.
This is because now google recognizes .dev as a Tld. Just change the url to http://ecommerce.test or something like that. You can use anything of your choice that doesn't resemble an existing Tld.
This question already has answers here:
Origin is not allowed by Access-Control-Allow-Origin
(18 answers)
Closed 7 years ago.
I am developing a mobile application that uses js on the frontend and connects to a PHP backend which runs script against MongoDB database to return json data.Now everything was working fine as I tested the whole backend using localhost but now I want to upload the PHP files to some server so that I can test the whole thing using the actual mobile app.
So here's what I have done so far:-
I made my MongoDB database on MongoLab (they have a starter free plan) and I also uploaded my PHP files to google app engine (again for free). But now when I try to call a file using say Postman in google chrome, it shows Access-Allow-Control-Origin error, http://localhost is not allowed. I tried to google to find a solution to this but it didn't prove to be helpful as the error still persists.
So I switched to Amazon aws, fired up an ec2 instance, installed apache and PHP and uploaded my PHP files there, and I got the same Access-Allow-Control-Origin error.
So I guess my real question is can someone just walk me through the process of how I can upload my PHP files and have them connect to MongoDb database and then call them from localhost or from mobile app and have the result given to me.
P.S. - Sorry for such a long post but I just wanted to explain everything.
Add
header('Access-Control-Allow-Origin: http://localhost');
to the top of any page which has the problem.
I'm trying to run the example.php file that comes with the facebook sdk. I do have a hosting server that runs php, and also changed the ID's to the corresponding one on my app. Here is the message i'm getting:
This webpage is not available
The webpage at https://filipeximenes.com/facebook/ might be temporarily down or it may have moved permanently to a new web address.
Error 501 (net::ERR_INSECURE_RESPONSE): Unknown error.
i'm pointing the canvas to this adress: http://filipeximenes.com/facebook/
Thanks.
Based on your description, I think that this is your problem:
Do you have a valid security certificate on the hosting server? I ran into that problem recently when deploying an FB app. Since October, you have to have a valid cert even in sandbox mode for the FB app to run properly. If you don't have one it causes weird problems.
Just a thought that I hope helps.
One other thing to do from a debugging perspective is to take a look at the actual app running on your hosting server without viewing it via FB. If you get the same error message there, you know that it has nothing to do with the FB SDK.
Thanks!
Matt