Instagram and Facebook policies have changed in the meantime to obtain an access token for an application programming interface (API).
Most forum posts refer to the process before 2018.
Does anyone have one of the MMM-Instagram, MMM-Instagram2020 or MMM-InstagramView modules currently running? I have now tried several times and already invested days to realise a display of my Instagram profile on the MagicMirror².
Could anyone help me with this, or is it not worth the effort, because even the long-lasting access tokens do not work.
To generate an API key , I only specified “Website” when creating an application, but I get the following error message:
[21.04.2022 16:44.17.270] [LOG] MMM-InstagramView Helper Auth Exchange Error: 400
ruffneck@raspberrypi:~/MagicMirror $ npm start
> magicmirror@2.19.0 start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[21.04.2022 16:44.12.895] [LOG] Starting MagicMirror: v2.19.0
[21.04.2022 16:44.12.901] [LOG] Loading config ...
[21.04.2022 16:44.12.907] [LOG] Loading module helpers ...
[21.04.2022 16:44.12.910] [LOG] No helper found for module: alert.
[21.04.2022 16:44.12.927] [LOG] Initializing new module helper ...
[21.04.2022 16:44.12.929] [LOG] Module helper loaded: updatenotification
[21.04.2022 16:44.12.930] [LOG] No helper found for module: clock.
[21.04.2022 16:44.13.095] [LOG] Initializing new module helper ...
[21.04.2022 16:44.13.097] [LOG] Module helper loaded: calendar
[21.04.2022 16:44.13.196] [LOG] Initializing new module helper ...
[21.04.2022 16:44.13.198] [LOG] Module helper loaded: MMM-Remote-Control
[21.04.2022 16:44.13.199] [LOG] No helper found for module: compliments.
[21.04.2022 16:44.13.200] [LOG] No helper found for module: weather.
[21.04.2022 16:44.13.487] [LOG] Initializing new module helper ...
[21.04.2022 16:44.13.487] [LOG] Module helper loaded: MMM-EARTH
[21.04.2022 16:44.13.787] [LOG] Initializing new module helper ...
[21.04.2022 16:44.13.788] [LOG] Module helper loaded: MMM-InstagramView
[21.04.2022 16:44.13.808] [LOG] Initializing new module helper ...
[21.04.2022 16:44.13.809] [LOG] Module helper loaded: newsfeed
[21.04.2022 16:44.13.809] [LOG] All module helpers loaded.
[21.04.2022 16:44.13.899] [LOG] Starting server on port 8080 ...
[21.04.2022 16:44.13.911] [LOG] Server started ...
[21.04.2022 16:44.13.913] [LOG] Connecting socket for: updatenotification
[21.04.2022 16:44.13.914] [LOG] Starting module helper: updatenotification
[21.04.2022 16:44.13.914] [LOG] Connecting socket for: calendar
[21.04.2022 16:44.13.915] [LOG] Starting node helper for: calendar
[21.04.2022 16:44.13.916] [LOG] Connecting socket for: MMM-Remote-Control
[21.04.2022 16:44.13.917] [LOG] Starting node helper for: MMM-Remote-Control
[21.04.2022 16:44.13.922] [LOG] Connecting socket for: MMM-EARTH
[21.04.2022 16:44.13.923] [LOG] Starting module: MMM-EARTH
[21.04.2022 16:44.13.924] [LOG] Connecting socket for: MMM-InstagramView
[21.04.2022 16:44.13.924] [LOG] Starting node_helper for module [MMM-InstagramView]
[21.04.2022 16:44.13.925] [LOG] Connecting socket for: newsfeed
[21.04.2022 16:44.13.926] [LOG] Starting node helper for: newsfeed
[21.04.2022 16:44.13.927] [LOG] Sockets connected & modules started ...
[21.04.2022 16:44.14.155] [LOG] Launching application.
[14581:0421/164414.635994:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
[14633:0421/164415.065457:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
[14656:0421/164415.139642:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[21.04.2022 16:44.16.624] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
[21.04.2022 16:44.16.700] [LOG] https://epic.gsfc.nasa.gov/api/natural
[21.04.2022 16:44.16.757] [LOG] =========== notification received: MMM-InstagramView-CONFIG
[21.04.2022 16:44.16.759] [LOG] =========== notification received: INSTAGRAM_AUTH
[21.04.2022 16:44.16.761] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[21.04.2022 16:44.16.767] [INFO] Checking git for module: MMM-Remote-Control
[21.04.2022 16:44.16.804] [LOG] =========== notification received: INSTAGRAM_AUTH_EXCHANGE
[21.04.2022 16:44.16.818] [LOG] =========== notification received: MMM-InstagramView-CONFIG
[21.04.2022 16:44.16.827] [INFO] Checking git for module: MMM-EARTH
[21.04.2022 16:44.16.860] [INFO] Checking git for module: MMM-InstagramView
[21.04.2022 16:44.16.894] [INFO] Checking git for module: default
**[21.04.2022 16:44.17.270] [LOG] MMM-InstagramView Helper Auth Exchange Error: 400**
[21.04.2022 16:44.17.295] [INFO] Newsfeed-Fetcher: Broadcasting 33 items.
[21.04.2022 16:44.17.533] [INFO] Calendar-Fetcher: Broadcasting 11 events.
[21.04.2022 16:44.38.847] [LOG] Use existing calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics
[21.04.2022 16:44.38.849] [INFO] Calendar-Fetcher: Broadcasting 11 events.
[21.04.2022 16:44.38.950] [LOG] https://epic.gsfc.nasa.gov/api/natural
[21.04.2022 16:44.38.953] [LOG] =========== notification received: MMM-InstagramView-CONFIG
[21.04.2022 16:44.38.954] [LOG] =========== notification received: INSTAGRAM_AUTH
[21.04.2022 16:44.38.956] [LOG] Use existing newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml
[21.04.2022 16:44.38.957] [INFO] Newsfeed-Fetcher: Broadcasting 33 items.
[21.04.2022 16:44.38.984] [LOG] =========== notification received: INSTAGRAM_AUTH_EXCHANGE
[21.04.2022 16:44.38.991] [LOG] =========== notification received: MMM-InstagramView-CONFIG
[21.04.2022 16:44.39.072] [LOG] =========== notification received: INSTAGRAM_AUTH_EXCHANGE
[21.04.2022 16:44.39.077] [LOG] =========== notification received: MMM-InstagramView-CONFIG
[21.04.2022 16:44.39.465] [INFO] Newsfeed-Fetcher: Broadcasting 33 items.
[21.04.2022 16:44.39.484] [LOG] MMM-InstagramView Helper Auth Exchange Error: 400
[21.04.2022 16:44.39.487] [LOG] MMM-InstagramView Helper Auth Exchange Error: 400
[21.04.2022 16:44.41.042] [INFO] Calendar-Fetcher: Broadcasting 11 events.
^C[21.04.2022 16:47.20.992] [LOG] Shutting down server...
[21.04.2022 16:47.20.993] [LOG] Stopping module helper: updatenotification
[21.04.2022 16:47.20.993] [LOG] Stopping module helper: calendar
[21.04.2022 16:47.20.994] [LOG] Stopping module helper: MMM-EARTH
[21.04.2022 16:47.20.994] [LOG] Stopping module helper: MMM-InstagramView
[21.04.2022 16:47.20.994] [LOG] Stopping module helper: newsfeed
My current configuration looks like:
{
module: 'MMM-InstagramView',
position: 'top_center',
header: 'Instagram - @Hypeneedz',
config: {
client_id: '7424...02', // Facebook Instagram App ID
client_secret: '7b81c....25', // Facebook Instagram App Secret
redirect_uri: 'https://localhost/', // Facebook Instagram App redirect_uri
auth_code: 'e935......ed', // Temporary authorization code as part of the Facebook Instagram Authorization Process
showCaptions: true,
showChildren: true,
showDate: true,
showMediaType: false,
startRandom: true,
shuffle: true,
animationSpeed: 5000,
updateInterval: 60000,
}
},
I’m not sure about the URL respective the redirect_uri https://localhost/ because I want to display the profile at home on my mirror and not on any public website.
Does anybody could assist me on this?