2011-04-11 139 views
0

我已经创建了一个Facebook应用程序,并使用API​​的详细信息来获得与Facebook集成的应用程序。不过,我得到以下错误,当我点击LoginFacebook集成错误191 - 如何修复

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.

为什么会出现这个错误,我该如何改正?

+0

可能重复的[Facebook的API错误191](http://stackoverflow.com/questions/4691782/facebook-api-error-191) – genesis 2011-10-26 19:03:56

回答

2

在“网站”选项卡下的应用程序设置中有一个设置,其中显示:“网站网址”。这与redirect_uri(至少在域级别)之间必须匹配。

+0

我检查了它仍然没有用...这是我得到的URL我点击登录,https://www.facebook.com/dialog/permissions.request?api_key=rying与权限设置,PLZ建议。 – Lakshman 2011-04-12 06:58:01

+0

你可以用你用来登录的实际URL更新你的文章(减去你的应用程序密钥等) – 2011-04-12 14:27:14

+0

这是我写的代码.... $ facebook = new Facebook(array('appId'=> FACEBOOK_APP_ID,'secret'=> FACEBOOK_SECRET_KEY,'cookie'=> true)); $ session = $ facebook-> getSession(); if($ session){ \t尝试{ \t \t $ uid = $ facebook-> getUser(); \t \t $ me = $ facebook-> api('/ me'); \t \t $ updated = date(“l,F j,Y”,strtotime($ me ['updated_time'])); \t \t回声“你好”。 $ me ['name']。 “
”; \t \t回显“您上次更新了您的个人资料”。 $更新; \t} \t catch(FacebookApiException $ e){ \t \t echo“Error:”。 print_r($ e,true); \t} } – Lakshman 2011-04-12 14:49:25