Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

farshadf's avatar

getting the users instagram posts api in laravel php

i simply want to take users post in my laravel application . its even fine if my user has to insert his username password because i want to crawl all the posts media and text once and then they can change password . for the matter of what i tried so far : 1-i created an app in this link :

https://developers.facebook.com/apps/

then i generates an User Token and a App Token after that i called this api :

https://graph.instagram.com/17841405793187218?fields=id,username&access_token=myAppToken

i placed my App token in that api but this showed me this error :

{
    "error": {
        "message": "Access token does not contain a valid app ID",
        "type": "OAuthException",
        "code": 190,
        "fbtrace_id": "Agc0R_wnDwoCzgNuXt2gt1y"
    }
}

now i dont know even if i am on a right train or not but simply i want to crawl all users posts . thanks in advance

0 likes
0 replies

Please or to participate in this conversation.