Node.js Heroku Facebook 开发者

Node.js Heroku Facebook Developer

我已经成功地在我的 website/heroku 应用程序中实现了一个 'log in using Facebook' 按钮,当它在本地与站点 URL 和应用程序域设置为 [=21] 一起使用时工作正常=] 在 Facebook 开发页面的应用程序设置中。

我现在尝试将应用程序推送到 heroku 上线,我已将站点 URL 和应用程序域更改为 myapp.herokuapp.com ,我已经使用以下方法设置了我的 heroku 配置: heroku config:set FACEBOOK_APP_ID=133333333463066 \ FACEBOOK_SECRET=a7244e333333333a7a2bf9492a6089a0但是当我尝试使用按钮时,我收到了这样的回复:

Given URL is not permitted by the Application configuration: One or more of the given URLs is not permitted by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

问题是我使用的是:

module.exports = {

    'facebookAuth' : {
        'clientID'      : '663072463821834', // your App ID
        'clientSecret'  : 'fb87ad1ac64364e3bf42c95766a50e08', // your App Secret
        'callbackURL'   : 'http://infinite-scrubland-4586.herokuapp.com/auth/facebook/callback'
    }

设置我的配置,我没有用 /auth/facebook/callback.

的适当后缀更新我的 callbackURL