Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#41 2019-07-08 14:15:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,005
Website

Re: oui_instagram - Display Instagram user infos and recent images

Your form is a miscellaneous form? How do you call it in the article? If it is via the write tab you many need to add a space. ie


 <txp::your_form />

Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#42 2019-07-09 06:35:05

Gallex
Member
Registered: 2006-10-08
Posts: 1,158

Re: oui_instagram - Display Instagram user infos and recent images

colak wrote #318657:

Your form is a miscellaneous form? How do you call it in the article? If it is via the write tab you many need to add a space. ie

...

yes, it is a miscellaneous and i call it via page template <txp:output_form form="oui_insta" />

Offline

#43 2019-07-09 18:22:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,005
Website

Re: oui_instagram - Display Instagram user infos and recent images

Hmmm.. It is indeed strange. Maybe change
<txp:oui_insta_author break="" access_token="5603.....">
to
<txp:oui_insta_author break="" wraptag="" access_token="5603.....">


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#44 2019-07-10 06:31:04

Gallex
Member
Registered: 2006-10-08
Posts: 1,158

Re: oui_instagram - Display Instagram user infos and recent images

colak wrote #318667:

Hmmm.. It is indeed strange. Maybe change
<txp:oui_insta_author break="" access_token="5603.....">
to
<txp:oui_insta_author break="" wraptag="" access_token="5603.....">

genius! ;)

Offline

#45 2020-02-19 08:01:55

peterj
Member
From: Melbourne, Australia
Registered: 2005-06-02
Posts: 42

Re: oui_instagram - Display Instagram user infos and recent images

I just found out that the current Instagram API will cease to work on March 2nd 2020, which is quite soon… Looking at the instafeed.js github and pixel union’s access token service , everyone is packing up and going home.

How are people dealing with this – I can’t see an affordable way to keep a person’s instagram feed displaying on a TXP site.

Offline

#46 2020-02-19 09:12:38

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,848
Website

Re: oui_instagram - Display Instagram user infos and recent images

It looks like the legacy API is closing in favour of a Graph API for business and pro users and a Basic Display API for typical consumer things such as image feeds: See here.

In short, it looks like there is a new method available but oui_instagram likely doesn’t support it. Try contacting Nicolas directly as he says on his GitHub profile that he’s not always checking. I’ll post an issue on GitHub in the meantime.


TXP Builders – finely-crafted code, design and txp

Offline

#47 2020-02-19 09:26:40

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,473
Website

Re: oui_instagram - Display Instagram user infos and recent images

I can sort of see why instafeed.js are all doom and gloom about it. As it’s a js plugin they’ll have problems.

But for Txp plugins, as jakob says, read access to obtain a feed is just a bunch of new hoops to jump through. Looks like you need to ask user permissions (once) to get a short-lived token (valid for an hour), exchange that for a long-lived token (valid for 60 days) from server-side code only (not from JS) and then store that token in the Txp plugin. You then have unfettered read access to albums, images and such-like to display feeds.

As long as every time the feed is accessed an attempt is made to refresh the long-lived token (though I would throttle this to once a day maximum) the authorization token won’t expire. If your blog is not accessed in 60 days then re-authorization will be required.

EDIT: corrected first paragraph after a bit of thought.

Last edited by Bloke (2020-02-19 09:32:16)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#48 2020-02-24 04:59:15

peterj
Member
From: Melbourne, Australia
Registered: 2005-06-02
Posts: 42

Re: oui_instagram - Display Instagram user infos and recent images

Thanks both.
- I have also posted to github.
- I’ve looked at FB and scratched head, will go back in soon.
- Current API has been extended to March 31st
- Plan B is Smash Balloon’s standalone script, which looks like it could work, though it costs 49USD/yr. It’s their WP plugin without the UI.

Offline

Board footer

Powered by FluxBB