I'm running wordpress with XAMPP using the "Social" plugin. When trying to log into facebook/twitter from within the admin menu I get
POST to http://127.0.0.1/wordpress/index.php?social_controller=auth&social_action=authorized&salt=a3abbd88f12bd9f7d08e1b6c6c0e2d44&is_admin=true&user_id=1 failed with 404
I've been searching the web for hours trying to find a solution to this, any help would be much appreciated!
Please test this on live server.
Social plugin functionality is not working properly on localhost or local system, you have to test on live server to be confirmed working
From reading between the lines on MailChimp's fora; the company does not, and apparently never will, allow API calls or endpoint submissions from localhost.
Related
I'm developing a PHP app on my local computer and trying to use the public data API. The key has been generated and works well online, but as soon as I try to execute it on my localhost it returns
Access Not Configured. Please use Google Developers Console to activate the API for your project.
I have added these lines to the 'allowed referers' section in the developers console.
http://127.0.0.1
127.0.0.1
http://localhost/
localhost
http://myIpAddress
myIpAddress
None of them seem to help. This is the query sending via GET:
https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=######&fields=items%2Fsnippet&key=#######
My issue had nothing to do with the cases described here, but might help others.
I had a scenario where the API worked well online but not on localhost (WAMP), after migrating from old API.
The fix had to do with cURL, and I really can not explain why it did work online, I am not an expert, it's something related with SSL.
Basically, you need to turn of SSL verification, by using
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
According to your answer #neki-doar-fraer, i make the explanation more clear for other viewers of this post :
From the doc of YouTube API
Use a server key if your application runs on a server. Do not use this
key outside of your server code. For example, do not embed it in a web
page. To prevent quota theft, restrict your key so that requests are
only allowed from your servers' source IP addresses.
Use a browser key if your application runs on a client, such as a web
browser. To prevent your key from being used on unauthorized sites,
only allow referrals from domains you administer.
From the Google Developer Console, assuming you have already created a project, select the project you are working on.
Then from the side menu on the left select "APIs & Auth", then "APIs". From that screen you have to search for the YouTube API and then click the "On" button next to it.
I figured it out. I was using the browser key. Did not know there is a difference. Generated the server key and everything works.
I have always edited my HOSTS file to point the domain to LOCALHOST when testing things locally https://en.wikipedia.org/wiki/Hosts_(file)
I am a newbie who is trying to create a Facebook app using PHP and Facebook's PHP SDK. The app is hosted on Heroku, and the sample app that they provided is working fine. However, I am now trying to get the sample app to work on Apache 2.2, and I have encountered a lot of problems along the way. Well, straight to the point, my latest problem will be trying to do Facebook login on localhost, but the 'An error occurred. Please try later' appears on the popup dialog. This does not happen on Heroku.
Will someone please enlighten me on if there's any steps that I can take to overcome this error? I don't think it got to do with any coding error since I am just following the provided sample app. Thanks!
This is happening because FB does not recognize the URL of the host issuing requests. You need to determine what the FQDN of your localhost server is then add it to the Site URL section of the FB App Settings manager. Chances are you have the URL of your Heroku server in there now.
its simple. in local host you must create another sample application for localhost in facebook .and you must have the permission.then you can login and work with your local one.
simply for every copies of your app.you must create it in facebook
hope it help you
good luck
I used openID for my website login and registration (for Google and Yahoo) using sfPHPOpenIdPlugin plugin (a Symfony plugin). It works fine on localhost and life is cool there!!
But on web host it doesn't work correctly. It shows the Google Accounts page for allowing or denying but when I press allow it redirects me to an openidError page that says:
invalid openid mode.
But I already set this property.
Do you have any idea where is the problem? And how can I solve this?
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
I had a working application on Facebook that even made it to the App directory.
Now all of a sudden, when I hit the URL, it goes into an infinite kind of loop, and finally times-out with the message:
The connection has timed out
The server at apps.facebook.com is taking too long to respond.
The app is available at: http://apps.facebook.com/simple-wishes/?ref=canvas_bkmk_top&count=0
I have made no changes to the code since month, and it worked fine all along. Has FB made any changes that I am not aware of? Thanks in advance
I was also facing the same problem. A couple of month ago my application was working fine and it was an iframe based app. But suddenly its behavior was same as you discussed.
If you are using new FB-APi then my suggestions are that please change your facebook-application settings from developer.
In advanced setting tab.
OAuth 2.0 for Canvas = Enable
Upgrade to Requests 2.0: = Enable.
hopefully it will resolve your problem