“URL无法验证”,facebook api错误 [英] "The URL could not be validated", facebook api error

查看:124
本文介绍了“URL无法验证”,facebook api错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在第一次使用 facebook api 。我正在使用 PHP Open Graph SDK 。我从互联网搜索并发现一些教程,所以我按照这些步骤,并创建一个文件夹 fb-test ,并在文件夹我创建这些文件 login.php fb-callback.php 并写我的 app_id 这些文件中的app_secret

I am working on a facebook api for the first time. I am using PHP Open Graph SDK. I searched from internet and found some tutorials, so I followed these steps and make a folder fb-test and in folder i create these files login.php and fb-callback.php and write my app_id and app_secret in these files.

当我用这个url打开mysite:

When I open mysite with this url:


www.mysite.com/fb-test/login.php

www.mysite.com/fb-test/login.php

我的登录页面与Facebook打开登录按钮。当我点击此按钮时,Facebook页面打开,并给我这个错误:

and my login page open with facebook login button. When I click on this button, the facebook page open and give me this error:

然后我搜索它,我去设置选项卡,并写下我的网站网址:

Then I searched about it and I go to settings tab and write my site url like that:

但它仍然给我上述错误。所以我再次搜索,我发现去Webhooks选项卡,并写我的验证toke和回调文件链接喜欢:

But it still gives me the same above error. So I searched again and I found that go to Webhooks tab and write my verify toke and callback file link Like:

所以再次搜索了很多但没有找到。

So again I searched a lot but nothing found.

所以请帮我解决这个问题。希望你明白我的问题。

So please help me out to solve this problem. Hope you understand my question.

推荐答案

首先从 web hooks

然后转到设置,然后选择高级选项卡,如

Then go to settings and select advanced tab like

然后向下滚动到客户端OAuth设置然后在URL中输入fb-callback文件,如

and then scroll down to client OAuth settings and then enter the fb-callback file in url like

就是这样。

这篇关于“URL无法验证”,facebook api错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆