Dymantic / laravel-instagram-feed

150 stars 51 forks source link

Sorry, we failed to get permission to use your insagram feed. #71

Open CNRP opened 1 year ago

CNRP commented 1 year ago

Hey so I've recently been trying to use this to implement a basic instagram gallery for a website. So I've setup the code as per the tutorial, upon clicking "allow" on the instagram page, I am re-directed back with '?result=failure#_' Is there anything specifically that I could be doing wrong?

I'm thinking I may need to request further permissions from instagram? Does this require graph_user_media permissions in the meta developers to run?

I appreciate any help if you have the time to give me a few pointers in the right direction.

CNRP commented 1 year ago

Just looking into the other permissions further, I'm seeing I would have to show screencast implementation of the Facebook login stuff to have access to the media permissions? seems like this is a bit out of the scope of what I'm trying to achieve if these permissions are required

michaeljoyner commented 1 year ago

Hi @CNRP, sorry you are having trouble with this. I haven't had to set up a new FB/IG app with permissions in a long time, so I am a little out of touch, but I can tell you that I always have the accounts I'd like to get the media from set up as testers of the FB app, as this way you don't need to apply to get your app approved.

If your goal is to show a gallery of a specific user's IG posts/media on a website, for example a company showing their latest IG posts on their website, then you should be able to do so with this package, and I'll be happy to try help where I can.

CNRP commented 1 year ago

Hey! thanks for getting back to me.

Since you confirmed it should work without I went and hosted it on a VPS, as I was previously trying to test locally with ngrok to make it public. However this seemed to fix the problem straight away and I can now access feeds as intended. I do plan to use it how you mentioned so this works great for me, I was a little disheartened in thinking I would have to register a business etc with Meta for access.

This works perfectly fine for this use case, appreciate the support and thanks for the great package!

tariqbilal commented 9 months ago

@CNRP i have the same issue. so looks like I have to have a business account ? I can only access the public profile of a user which generated the token. Unfortunately this is very tough to access Need help and clarity.