How to fix “requires a valid redirect URI” in the Facebook Share dialog box?

I use the standard Facebook Feed Dialog to post on my website. The problem with this is that I cannot get it to work due to problems with redirect_uri . This is very strange because I have an application, the application ID is correct, and the URL is correct ... What could be the problem? The error I get is: A valid redirect URI is required .

This is the code I'm using:

 <a href=https://www.facebook.com/dialog/feed?app_id=9999999999999&link=http://hereismylink.com/todays/&picture=http://fbrell.com/f8.jpg&name=%TITLE%&caption=testing1234&description=blablabla&redirect_uri=http://hereismylink.com>Share on Face</a> 

PS: redirect_uri and app_id are dummy text, usually these are the correct numbers and letters on my site. I do not want to advertise here.

FYI: sandbox mode off

+7
redirect facebook facebook-graph-api facebook-sharer facebook-social-plugins
source share
2 answers

I solved this by specifying the URL of my page in the app domain . It is very bad that the documentation on Facebook lacks such information, because it is important to make it work. Anyway, thanks lgy for the link to the link.

+5
source share

I had a similar problem and found out that the problem is with the SSL site. If you see this problem, check the URL that is called when the FB sharing window starts as a popup. This URL must have a valid redirect_URI value at the end. You will probably see that it is somehow distorted. This should give you some idea of ​​where the problem lies. Sometimes a sharing pop-up appears and disappears too quickly, and you don’t even see this "Redirect URI" error.

I set up "Easy Social Share Buttons for WordPress." I ran into this problem on multiple instances of Wordpress after using a plugin called Restrict HTTPS. I changed the plugin to Easy SSL. Then I deleted all instances of open graphical scripts called through other plugins. This fixed the problem for me.

See how I set it up now for Massive Impressions Online Marketing. If you go to one of the blog posts or portfolio posts below you will see that these sharing buttons are configured. I use the Facebook app for the site. I tried many collaboration solutions, WordPress plugins and manual code placement, and this particular plugin was better than most, in my opinion, even compared to buttons in Jetpack.

Good luck !!!

+1
source share

All Articles