I'm using the WhatsApp business account app and I have a number connected and a test number in my configuration API. I can send messages using both phone numbers. I have established a webhook connection with my server, yet when I attempt to respond to the message, it only works for the test number. What actions should I take?

I am using instagram graph api, with these permissions(pages_show_list, instagram_basic, pages_read_engagement) and this repository https://github.com/jstolpe/instagram-graph-api-php-sdk

I am able to obtain a long-lived access token and use it to retrieve media and perform other actions, but the token expires after 60 days. I’m looking for a way to refresh it before it expires.

I found this https://developers.facebook.com/docs/instagram-platform/reference/refresh_access_token but when I try this code

GET https://graph.instagram.com/refresh_access_token   ?grant_type=ig_refresh_token   &access_token={long-lived-access-token} 

the output is: "Sorry, this content isn't available right now"

Is there a way to automatically refresh a long-lived access token, or does it need to be manually updated every 59 days?

Additionally, I can’t find any information on how to obtain or add the instagram_graph_user_profile permission.

Does anyone know how to resolve this?