14 lines
600 B
Plaintext
14 lines
600 B
Plaintext
webhookId = to_string!(.webhookId)
|
|
webhookUrl = to_string!(.webhookUrl)
|
|
env = to_string!(.env)
|
|
|
|
clientId = "469201159404720"
|
|
if env == "production" {
|
|
clientId = "1280853706663377"
|
|
}
|
|
|
|
redirectUri = "{{ webhookUrl }}/oauth"
|
|
scope = "instagram_business_basic,instagram_business_manage_messages,instagram_business_content_publish,instagram_business_manage_insights,instagram_business_manage_comments"
|
|
|
|
"https://www.instagram.com/oauth/authorize?enable_fb_login=1&force_authentication=0&client_id={{ clientId }}&redirect_uri={{ redirectUri }}&state={{ webhookId }}&response_type=code&scope={{ scope }}"
|