Shane Chin
Shane Chin

Reputation: 576

How to change meteor smart package redirect url?

I have used the built in accounts-facebook smart package with meteor, and would like to know how to change the redirect url from localhost to to some other site.

Upvotes: 0

Views: 290

Answers (1)

jeffreynolte
jeffreynolte

Reputation: 3779

@Shane Chin - Here is what I have in /helpers/config/:

// http://docs.meteor.com/#accounts_config
    Accounts.ui.config({
      requestPermissions: {
        facebook: ['user_likes']
        // others tbd
      },
        requestOfflineToken:{
          // tbd
        },
        passwordSignupFields: 'USERNAME_AND_OPTIONAL_EMAIL'  
    });

In addition I would take a look at the link for configuring user accounts: http://docs.meteor.com/#accounts_config

Once this is setup it should ask you for details to setup the app AppID and Secrect which you can acquire from https://developers.facebook.com once you setup a new app with Facebook.

Upvotes: 1

Related Questions