Facebook - Error Message: redirect_uri is not owned by the application

两盒软妹~` 提交于 2019-12-13 13:51:19

问题


I am trying to use the FB.ui() to send apprequests to friends. My application is a tab iframe app (NOT A CANVAS APP) so in my developers section, I only have the "Basic info" and "Page Tab" section complete (not the app on facebook area) as I do not want users to be able to directly go to the application.

the FB.UI() worked yesterday when I had the app of facebook area completed for my app, but when removing it I get the following error:

API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: redirect_uri is not owned by the application.

The code I am using to send the messages is:

FB.ui({method: 'apprequests',
                        message: 'Play RCS Let\'s make it happen game!'
                    }, function(data) {
                        $("#sendToFriends").fadeOut();
                        $("#didyouknow").fadeIn();
                        console.log(data);
                    });

I dont mind completing the area for the "App of Facebook", but is that required and does that then make the above message notification url the app location or the page tab where the application is installed?

Any help will do!


回答1:


Populate the App Domain: and Site URL: fields in the Tab Settings. That will help with your problem. And you have to be sure that the Redirect URL matches the domain you specify.




回答2:


The domain of the page you are calling FB.ui() from has to match the domain that your app is set up to use in the facebook configuration.



来源:https://stackoverflow.com/questions/8077140/facebook-error-message-redirect-uri-is-not-owned-by-the-application

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