Closed talkwithdeveloper closed 2 years ago
Hi @talkwithdeveloper, you don't need to create the route or controller, the package manages all that for you. You are able to set the routes in the config file if you are using routes that do not match the default. Please see the readme file for instructions.
HI @michaeljoyner , I have read readme file instruction , according to that i have set the config file fields value, but when user allow the permission on instagram URL page and then its come back to redirect url, its show 404 error
Can you show me your config file?
<?php
return [ /*
The client_id from registering your app on Instagram */ 'client_id' => '397489588877863',
/*
This is not the same as an access token. */ 'client_secret' => 'cf516372572113e08f37e6396993ff2b',
/*
This defaults to your APP_URL, so normally you may leave it as null */ 'base_url' => null,
/*
app url (from config) and this route */ 'auth_callback_route' => 'instagram/auth/callback',
/*
You may use query strings to carry messages */ 'success_redirect_to' => 'instagram-auth-success',
/*
You may use query strings to carry messages */ 'failure_redirect_to' => 'instagram-auth-failure',
/*
the entire carousel will be ignored. */ 'ignore_video' => false,
/*
What is set as your APP_URL? If you are using subdomains, your may need to use the 'base_url' option in the config file. See issue 25
yes i am using subdomian
so in base url what url should i used ? subdomian and domian ?
Yes, everything that should come before /instagram/auth/callback. So http://subdomain.domain.com
I have added but still same error
Got it Thanks @michaeljoyner
What was the problem?
Problem is i have made folder with name instagram inside the subdomian
I have sent all file to root of subdomian and remove the instagram folder
Now its stuck here ...do you have any opinion ?
You can probably put the entire route (starting from https://) in the config file for the success_redirect
okay
Added But same error
Sorry, you don't need to use the whole route. You need to create the route and view for these on your own, the package just redirects to the route you define in your config. From your screenshot above, everything is fine. In your routes file you need to create the 'instagram-auth-success' route and handle it how you want.
Okay Thanks
How to create a route in web.php file . we don't have mention any controller and function inside the route ?if not how we will get the "code" from querystring and move further . Route::get('instagram/auth/callback', 'InstgramAuthController'); i am little confuse about to create route after user allow to access his/her account.