Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One bot for multiple pages #20

Closed
ruanmartinelli opened this issue Mar 15, 2017 · 1 comment
Closed

One bot for multiple pages #20

ruanmartinelli opened this issue Mar 15, 2017 · 1 comment

Comments

@ruanmartinelli
Copy link

Hi,

My use case involves one single bot taking care of multiple pages. I needed to get it done quickly so I made my own fork and added this function to it.This way I can change the access token based on the pageID that I get on every message.

I was wondering if a similar feature is already provided by botly and if so, what the proper way to switch tokens?

Thanks!

@miki2826
Copy link
Owner

Hi @ruanmartinelli
I added the options to add an accessToken on the request level.
You can manage the page to access token yourself and just pass the correct access token on each request as options.accessToken

Hope it helps.

@miki2826 miki2826 closed this as completed Apr 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants