The access_token provided is invalid

Permalink Browser Info Environment
Hi!

I tried to start using this add-on, but I keep getting error that access token is invalid.
I created the 'long-lived Instagram User Access Token' from Facebook Developer console, by using the Token Generator (https://developers.facebook.com/docs/instagram-basic-display-api/overview/#user-token-generator). I'm not sure if that was the correct way to do it nowadays?

I also noticed that access token -field was too short (64), so in form.php and db.xml I changed it to be longer for whole acces token to fit in. But I'm still getting "access token invalid" error.

So is this problem related to new Instagram API changes, or am I doing something wrong with access token? Can I still use this add-on for displaying instagram gallery?

Type: Discussion
Status: In Progress
mandako
View Replies:
crivers replied on at Permalink Reply
crivers
Hi,

Thanks for reaching out. I'll be happy to assist you. I'm a former employee of Instagram so I have my own tool for getting your access token. In June I will be rolling out an update that will support the type of token you've just generated. However, for now, please follow the token generator process that my tool currently uses.

To do so, when you add the block, there should be a button to create a token. Please follow this prompt instead.

Does this make sense?
mandako replied on at Permalink Reply
mandako
Thank you for quick response!

I tried to use the blocks "get access token" link before, but it didn't open. I think it didn't open because I had put the block in global area (and I was adding it through dashboard)? Or then there was some other problem. But now I tried again and the authentication window opened. However, when I submit correct username and password, I get this error:
{"error_type": "OAuthException", "code": 400, "error_message": "Invalid scope field(s): public_content"}

Do I have to set some settings in Instagram account? It is public already if that matters.
crivers replied on at Permalink Reply
crivers
Hi,

This is strange. Any chance you could send me a private message with temporary cms access so that I can take a look? Please do not put it here as it's a public forum that anyone can see. Please send a private message if you decide to do so.

Thanks!
pixeljunkie replied on at Permalink Reply
pixeljunkie
Hi Chris
I am having the same issues (my site is on 8.5.2). Trying to follow the link to generate a token would close the block without doing anything. This is why I went through facebook developers console to do so. However, this key was invalid.
The block shows on the page, yet I get the error message "Invalid token". Now that I am trying to delete the block from the page, I get "Access denied".

What am I doing wrong?
crivers replied on at Permalink Reply
crivers
Hi,

Thanks for reaching out. This is usually a simple user error issue but I like to take care of everyone with custom support. Please send me an email or private message and I'll sort you out right away.

Thanks!
pixeljunkie replied on at Permalink Reply
pixeljunkie
I will send you an email.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.2
Version Installed - 8.5.2
Database Version - 20190925072210

# Database Information
Version: 5.6.42
SQL Mode: NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Easy Image Gallery (1.4.2), ExchangeCore reCAPTCHA (1.1.1), Instafolio (1.7)

# concrete5 Overrides
blocks/page_list/templates/read_more/view.php, blocks/page_list/templates/read_more, blocks/page_list/templates/blog_list/view.php, blocks/page_list/templates/blog_list, blocks/page_list/templates, blocks/page_list, blocks/feature/templates/toggle_description/view.php, blocks/feature/templates/toggle_description/view.js, blocks/feature/templates/toggle_description/view.css, blocks/feature/templates/toggle_description, blocks/feature/templates, blocks/feature, themes/sofelia/default.php, themes/sofelia/page_forbidden.php, themes/sofelia/page_not_found.php, themes/sofelia/page_theme.php, themes/sofelia/view.php, themes/sofelia/css/main.less, themes/sofelia/css/bootstrap-modified.css, themes/sofelia/css/styles.xml, themes/sofelia/css/base/body.less, themes/sofelia/css/base/typography.less, themes/sofelia/css/base, themes/sofelia/css/bootstrap-3.2.0/badges.less, themes/sofelia/css/bootstrap-3.2.0/alerts.less, themes/sofelia/css/bootstrap-3.2.0/bootstrap.less, themes/sofelia/css/bootstrap-3.2.0/breadcrumbs.less, themes/sofelia/css/bootstrap-3.2.0/button-groups.less, themes/sofelia/css/bootstrap-3.2.0/buttons.less, themes/sofelia/css/bootstrap-3.2.0/carousel.less, themes/sofelia/css/bootstrap-3.2.0/close.less, themes/sofelia/css/bootstrap-3.2.0/code.less, themes/sofelia/css/bootstrap-3.2.0/component-animations.less, themes/sofelia/css/bootstrap-3.2.0/dropdowns.less, themes/sofelia/css/bootstrap-3.2.0/forms.less, themes/sofelia/css/bootstrap-3.2.0/glyphicons.less, themes/sofelia/css/bootstrap-3.2.0/grid.less, themes/sofelia/css/bootstrap-3.2.0/input-groups.less, themes/sofelia/css/bootstrap-3.2.0/jumbotron.less, themes/sofelia/css/bootstrap-3.2.0/labels.less, themes/sofelia/css/bootstrap-3.2.0/list-group.less, themes/sofelia/css/bootstrap-3.2.0/media.less, themes/sofelia/css/bootstrap-3.2.0/mixins.less, themes/sofelia/css/bootstrap-3.2.0/modals.less, themes/sofelia/css/bootstrap-3.2.0/navbar.less, themes/sofelia/css/bootstrap-3.2.0/navs.less, themes/sofelia/css/bootstrap-3.2.0/normalize.less, themes/sofelia/css/bootstrap-3.2.0/pager.less, themes/sofelia/css/bootstrap-3.2.0/pagination.less, themes/sofelia/css/bootstrap-3.2.0/panels.less, themes/sofelia/css/bootstrap-3.2.0/popovers.less, themes/sofelia/css/bootstrap-3.2.0/print.less, themes/sofelia/css/bootstrap-3.2.0/progress-bars.less, themes/sofelia/css/bootstrap-3.2.0/responsive-embed.less, themes/sofelia/css/bootstrap-3.2.0/responsive-utilities.less, themes/sofelia/css/bootstrap-3.2.0/scaffolding.less, themes/sofelia/css/bootstrap-3.2.0/tables.less, themes/sofelia/css/bootstrap-3.2.0/theme.less, themes/sofelia/css/bootstrap-3.2.0/thumbnails.less, themes/sofelia/css/bootstrap-3.2.0/tooltip.less, themes/sofelia/css/bootstrap-3.2.0/type.less, themes/sofelia/css/bootstrap-3.2.0/utilities.less, themes/sofelia/css/bootstrap-3.2.0/variables.less, themes/sofelia/css/bootstrap-3.2.0/wells.less, themes/sofelia/css/bootstrap-3.2.0/mixins/alerts.less, themes/sofelia/css/bootstrap-3.2.0/mixins/background-variant.less, themes/sofelia/css/bootstrap-3.2.0/mixins/buttons.less, themes/sofelia/css/bootstrap-3.2.0/mixins/border-radius.less, themes/sofelia/css/bootstrap-3.2.0/mixins/center-block.less, themes/sofelia/css/bootstrap-3.2.0/mixins/clearfix.less, themes/sofelia/css/bootstrap-3.2.0/mixins/forms.less, themes/sofelia/css/bootstrap-3.2.0/mixins/gradients.less, themes/sofelia/css/bootstrap-3.2.0/mixins/grid-framework.less, themes/sofelia/css/bootstrap-3.2.0/mixins/grid.less, themes/sofelia/css/bootstrap-3.2.0/mixins/hide-text.less, themes/sofelia/css/bootstrap-3.2.0/mixins/image.less, themes/sofelia/css/bootstrap-3.2.0/mixins/labels.less, themes/sofelia/css/bootstrap-3.2.0/mixins/list-group.less, themes/sofelia/css/bootstrap-3.2.0/mixins/nav-divider.less, themes/sofelia/css/bootstrap-3.2.0/mixins/nav-vertical-align.less, themes/sofelia/css/bootstrap-3.2.0/mixins/opacity.less, themes/sofelia/css/bootstrap-3.2.0/mixins/pagination.less, themes/sofelia/css/bootstrap-3.2.0/mixins/panels.less, themes/sofelia/css/bootstrap-3.2.0/mixins/progress-bar.less, themes/sofelia/css/bootstrap-3.2.0/mixins/reset-filter.less, themes/sofelia/css/bootstrap-3.2.0/mixins/responsive-visibility.less, themes/sofelia/css/bootstrap-3.2.0/mixins/resize.less, themes/sofelia/css/bootstrap-3.2.0/mixins/size.less, themes/sofelia/css/bootstrap-3.2.0/mixins/tab-focus.less, themes/sofelia/css/bootstrap-3.2.0/mixins/table-row.less, themes/sofelia/css/bootstrap-3.2.0/mixins/text-emphasis.less, themes/sofelia/css/bootstrap-3.2.0/mixins/text-overflow.less, themes/sofelia/css/bootstrap-3.2.0/mixins/vendor-prefixes.less, themes/sofelia/css/bootstrap-3.2.0/mixins, themes/sofelia/css/bootstrap-3.2.0, themes/sofelia/css/components/blocks.less, themes/sofelia/css/components/buttons.less, themes/sofelia/css/components/header.less, themes/sofelia/css/components/footer.less, themes/sofelia/css/components/layouts.less, themes/sofelia/css/components/navigation.less, themes/sofelia/css/components/page.less, themes/sofelia/css/components/forms.less, themes/sofelia/css/components/blog.less, themes/sofelia/css/components/pagination.less, themes/sofelia/css/components/menu.less, themes/sofelia/css/components/back-to-top.less, themes/sofelia/css/components/tables.less, themes/sofelia/css/components, themes/sofelia/css/mixins/mixins.less, themes/sofelia/css/mixins, themes/sofelia/css/variables/borders.less, themes/sofelia/css/variables/dimensions.less, themes/sofelia/css/variables/colors.less, themes/sofelia/css/variables/gutters.less, themes/sofelia/css/variables/typography.less, themes/sofelia/css/variables/urls.less, themes/sofelia/css/variables, themes/sofelia/css/icons/png/fb-icon.png, themes/sofelia/css/icons/png/ig-icon.png, themes/sofelia/css/icons/png, themes/sofelia/css/icons/icons.data.png.css, themes/sofelia/css/icons/icons.data.svg.css, themes/sofelia/css/icons/icons.fallback.css, themes/sofelia/css/icons, themes/sofelia/css, themes/sofelia/elements/footer_bottom.php, themes/sofelia/elements/footer.php, themes/sofelia/elements/header.php, themes/sofelia/elements/header_top.php, themes/sofelia/elements/home_header.php, themes/sofelia/elements, themes/sofelia/js/main.js, themes/sofelia/js, themes/sofelia/thumbnail.png, themes/sofelia/description.txt, themes/sofelia/home.php, themes/sofelia/blog.php, themes/sofelia/home2.php, themes/sofelia

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2

# Server API
fpm-fcgi

# PHP Version
7.2.29

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, intl, ionCube Loader, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 10000
memory_limit - 256M
post_max_size - 64M
upload_max_filesize - 64M
ic24.api.max_timeout - 7
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 40000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.