Error Message: redirect_uri is not owned by the application

↘锁芯ラ 提交于 2019-12-04 11:51:51

Regardless of being page tab or canvas, you must identify the website Site URL in https://developers.facebook.com/apps

How I fixed:

App Domain: megalopes.com (domain)

Site URL: / Secure Canvas URL: / Secure Page Tab URL: https://www.megalopes.com (subdomain)

I think I have run into something similar before.

In the summary page of your app ensure both the Secure Canvas URL and Page Tab URL are populated.

The URL in my redirect_uri should have "http://" in the beginning. It was missing the protocol information, thus leading Facebook not to recognize my website and throw this annoying 191 error. I finally found out after one hour pulling the hair I (still) have left.

You have to create a channel page, which allows "cross domain communication in certain browsers"

This is an html page (saying /channel.html) on your server, which only contains :

<script src="//connect.facebook.net/en_US/all.js"></script>

And make the Javascript SDK aware of it :

FB.init({
    appId: 'xxxxxx',
    cookie: true, 
    channelUrl: location.protocol + '//' + location.host + '/channel.html'
});

More about this :

kanna

It's because of domain URL that you mentioned in facebook's mistake. Domain URL wont be like www.site.com
Update your domain url like subdomain.site.com.
Now it surely work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!