Closed ateequrrahman97 closed 3 years ago
Hi @ateequrrahman97 can I ask which version you are using?
Hi @ateequrrahman97 can I ask which version you are using?
"laravel/framework": "^7.24", "dymantic/laravel-instagram-feed": "^2.6",
Thanks. Sorry, I make a mistake in the tutorial, if that was what you were following. You can try do:
$profile = \Dymantic\InstagramFeed\Profile::where('username', 'event_scape')->get()->first()
Thanks. Sorry, I make a mistake in the tutorial, if that was what you were following. You can try do:
$profile = \Dymantic\InstagramFeed\Profile::where('username', 'event_scape')->get()->first()
Thanks, now it's working.
My access_code was not saved in the database. I am using ngrok for HTTPS Auth URL is working fine and redirect to not found but access_code was not saved and feed is getting empty array. If you please guide me? @michaeljoyner
What url does it redirect to?
And when you get redirected to the not found page, what is in the url?
And when you get redirected to the not found page, what is in the url? This URL I use to authenticate https://api.instagram.com/oauth/authorize/?client_id=2664228980539775&redirect_uri=https://2fb4-202-163-123-230.ngrok.io/instagram/auth/callback&scope=user_profile,user_media&response_type=code&state=1
And this is the redirected not found URL after authentication https://2fb4-202-163-123-230.ngrok.io/instagram/auth/callback?code=AQDJNxTKR28HnronMXkyntwT3mZOTRjWtV0CbSpxlw5kHbCFqS6sInc2X4BDcyQ3s7bAtRL5jgYKi0yF-MZWBBxWLy0dtMlcvVZEqWgt2bAYei-IChbe0Snnw4cmyVsW8kQFNlnSkutNgPxrVnnwnSCxvxbowZBTKSbL4PojMqzm3wAsg2yqHXaa-CDR2qkhoX35RiBAs39alvTA11REdHw22S1kjBTjXlf2tbtiYhdMbA&state=1#_
Can you show me your config file? Also, I'll be gone for a while, but I'll be back later
Can you show me your config file? Also, I'll be gone for a while, but I'll be back later Okay. Please look into it when you are back.
`<?php
return [ /*
The client_id from registering your app on Instagram */ 'client_id' => env('INSTAGRAM_APP_ID'),
/*
This is not the same as an access token. */ 'client_secret' => env('INSTAGRAM_APP_SECRET'),
/*
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' => 'https://2fb4-202-163-123-230.ngrok.io/instagram/auth/callback',
/*
You may use query strings to carry messages */ 'success_redirect_to' => 'https://2fb4-202-163-123-230.ngrok.io/instagram-auth-success',
/*
You may use query strings to carry messages */ 'failure_redirect_to' => 'https://2fb4-202-163-123-230.ngrok.io/instagram-auth-failure',
/*
the entire carousel will be ignored. */ 'ignore_video' => false,
/*
`'auth_callback_route' => 'instagram/auth/callback',
/*
* On success of the OAuth process you will be redirected to this route.
* You may use query strings to carry messages
*/
'success_redirect_to' => 'instagram-auth-success',
/*
* If the OAuth process fails for some reason you will be redirected to this route.
* You may use query strings to carry messages
*/
'failure_redirect_to' => 'instagram-auth-failure',`
but then access_code was not saved then I have done in this way
`'auth_callback_route' => 'https://2fb4-202-163-123-230.ngrok.io/instagram/auth/callback',
/*
* On success of the OAuth process you will be redirected to this route.
* You may use query strings to carry messages
*/
'success_redirect_to' => 'https://2fb4-202-163-123-230.ngrok.io/instagram-auth-success',
/*
* If the OAuth process fails for some reason you will be redirected to this route.
* You may use query strings to carry messages
*/
'failure_redirect_to' => 'https://2fb4-202-163-123-230.ngrok.io/instagram-auth-failure',`
Byt getting the same result.
The routes in your config file shouldn't have the domain part in them. Can you change back to that and send me a screenshot of what happens after you accept the sith request on Instagram?
Sorry, forgot to mention that you can also add the ngrok domain as the base_url in your config file
Sorry, forgot to mention that you can also add the ngrok domain as the base_url in your config file
Thank you @michaeljoyner for giving me your attention. It is working by putting a base URL. Thanks.
It's a pleasure, I'm glad you got it working.
@michaeljoyner