Mix 2 Sketches WIFIMANAGER with the Instagram Stats Counter

Hello Together

I would like to mix 2 Sketches but i don't know how maybe someone can fix it for me

I want to mix the Wifimanager with the Instagram Stats Counter with the output to the MAX7219

Finally, i want that the ESP starts, when he has on the EEPROM a Wi-Fi connections which is working, and he can connect to the network than the Instagram Stats Counter sketch will work, if he has no connection to the network the wifimanager switch to the access point mode and i can connect him to a Wi-Fi network and after the restart he connects and the Instagram sketch runs.

Here are the Sketches maybe someone can merge me this both: