UPDATE:
To respond to API error code: 191
redirect_uri must be equal (or relative) to the site URL.

Tip. Use base URLs instead of full URLs that point to specific pages.
NOT RECOMMENDED: For example, if you use www.mydomain.com/fb/test.html as the URL of your site and << 22> as redirect_uri , this will give you error 191.
RECOMMENDED:. Instead, your site URL will be set to the base URL, for example: www.mydomain.com/ OR www.mydomain.com/fb/ .
Today I looked at the application http: // localhost: 8080 /
Although I was sure that you cannot do this based on your own experience (although a very old test), it seems that you actually CAN test your Facebook application locally!
So, I took the old application and edited its name, site URL and Canvas URL: site URL: http://localhost:80/fblocal/
I downloaded the latest Facebook version of the PHP-SDK and dropped it in the xampp/htdocs/fblocal/ .
But I have the same mistake as you! I noticed that XAMPP is automatically redirecting to http://localhost/fblocal/ , so I changed the setting to just http://localhost/fblocal/ and the error disappeared BUT I had to remove the application (from the privacy settings ) and reinstall my application , and here are the results: <w> 
After that I asked publish_stream for permission, and I was able to publish it in my profile (using the PHP-SDK):
$user = $facebook->getUser(); if ($user) { try { $post = $facebook->api('/me/feed', 'post', array('message'=>'Hello World, from localhost!')); } catch (FacebookApiException $e) { error_log($e); $user = null; } }
Results: 
ifaour Jan 14 2018-11-14T00: 00Z
source share