• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Problems to get Instagram profile visible on MagicMirror

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 468 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    ruffneck2
    last edited by ruffneck2 Apr 22, 2022, 12:38 PM Apr 22, 2022, 12:23 PM

    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.

    Bild_2022-04-22_143648384.png

    Does anybody could assist me on this?

    R 1 Reply Last reply Apr 25, 2022, 7:33 AM Reply Quote 0
    • R Offline
      ruffneck2 @ruffneck2
      last edited by Apr 25, 2022, 7:33 AM

      Doesn’t anybody use Instagram modules on his MagicMirror?

      M 1 Reply Last reply Apr 28, 2022, 4:42 PM Reply Quote 0
      • R Offline
        ruffneck2
        last edited by Apr 28, 2022, 10:03 AM

        Could an admin please move this topic to the Troubleshooting section?
        I think it is better placed there and more visible to get repsonse and assistance.
        Thank you

        S 1 Reply Last reply Apr 28, 2022, 11:48 AM Reply Quote 0
        • S sdetweil moved this topic from Utilities on Apr 28, 2022, 11:47 AM
        • S Away
          sdetweil @ruffneck2
          last edited by Apr 28, 2022, 11:48 AM

          @ruffneck2 done.

          if you look at the unread, or recent topic filters u see everything, regardless of category

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • M Offline
            mumblebaj Module Developer @ruffneck2
            last edited by Apr 28, 2022, 4:42 PM

            @ruffneck2 SO clearly something went wrong with the auth request. There is no detail in the screenshot you provided.

            in node_helper.js can you uncomment this line to get the error body? should be line no 193. You may want to add it after the else as well.

            If this forum is unable to assist then you may want to open an issue in the Gitlab page for the module.

            else if (!error && response.statusCode == 400) 
                        {
                            console.log("MMM-InstagramView Helper Auth Exchange Error: " + response.statusCode);
             console.log(response.body);         
                        }
                        else
                        {
                            console.log("MMM-InstagramView Helper Auth Exchange Error: " + response.statusCode);
            console.log(response.body)
                        }
            

            Check out my modules at: https://github.com/mumblebaj?tab=repositories

            R 1 Reply Last reply Apr 29, 2022, 2:17 PM Reply Quote 0
            • R Offline
              ruffneck2 @mumblebaj
              last edited by Apr 29, 2022, 2:17 PM

              @mumblebaj said in Problems to get Instagram profile visible on MagicMirror:

              @ruffneck2 SO clearly something went wrong with the auth request. There is no detail in the screenshot you provided.
              in node_helper.js can you uncomment this line to get the error body? should be line no 193. You may want to add it after the else as well.
              If this forum is unable to assist then you may want to open an issue in the Gitlab page for the module.

              Thank you for your suggestion. I will give it another try at the weekend. I have already tried it on Github, with similar success ;)

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                4/6
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy