How do I REconfigure Meteor's accounts-facebook, or where is Meteor's Facebook configuration?

后端 未结 6 1564
灰色年华
灰色年华 2021-01-30 14:59

Meteor\'s accounts-facebook package was very easy to set up. To input the Facebook app ID and secret token, I loaded my meteor web app in a browser, and clicked on

6条回答
  •  走了就别回头了
    2021-01-30 15:42

    The configuration data is stored in mongodb.

    If you load up

    meteor mongo
    

    Then use db.meteor_accounts_loginServiceConfiguration.find() you should see your config data

    You can update it too! If you got back

    { "service" : "x", "appId" : "x", "secret" : "x", "_id" : "abc" }`
    

    Within the same mongo shell:

    db.meteor_accounts_loginServiceConfiguration.update({_id:'abc'},
        {$set:{"appId" : , "secret" : }});
    

    (Using the _id field from the service configuration that you want to edit.

    Within Meteor you can use this instead:

    ServiceConfiguration.configurations.update({
        service:"facebook"
    }, {
        $set: {
            
        }
    });
    

    Note to do this within meteor you need to add this package in with :

    meteor add service-configuration
    

提交回复
热议问题