"""insta2blog URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic.base import TemplateView

from . import views

app_name = "accounts"

urlpatterns = [
    path('profile/', views.profile, name='profile'),

    # STEP 1 : click on facebook icon to login
    path('facebook/', views.facebook_login, name='facebook_login'),
	
    # STEP 2 : 
    path('facebook_login_view/', views.facebook_login_view, name='facebook_login_view'),	
    
    # STEP 3 : Auto redirected
    path('facebook_get_code/', views.facebook_get_code, name='facebook_get_code'),
	
    # STEP 4 : 
    path('facebook_pages/', views.facebook_pages, name='facebook_pages'),
    
    # STEP 5 : The profile page
    path('insta_account_setup/<int:insta_id>/<str:user_access_token_>/', views.insta_account_setup, name='insta_account_setup'),
    
    # Step 6 : add 10 blog posts
    path('facebook_page_profile/<int:insta_id>/<str:user_access_token_>/', views.facebook_page_profile, name='facebook_page_profile'),
    
    # STEP 7 : The profile page
    path('profile/<str:insta_username>/', views.blog_profile, name='blog_profile'),    
]