Rss-bridge: Instagram Bridge Broken

Created on 14 Mar 2018  路  16Comments  路  Source: RSS-Bridge/rss-bridge

Hi there,

So I'm currently in full panic mode as my Instagram bridge has just stopped working [I use this -very- heavily]. A quick look around the web at other installations tells me that the issue is not on my end. So what's happened? Did Instagram change something? Is there a solution?

Cheers!

Most helpful comment

@mbnoimi Here's mine. A quick glance doesn't show me a difference, but you're welcome to give it a try.

https://gist.github.com/Aasemoon/0a05aedffec02a80599ebce60511d9f8

So far it's working perfectly!

All 16 comments

638 It was blocked on March 3 due to over use.

Ok, so I'm not sure what to make of this. I generate a whole lot of instagram feeds but still it's nowhere in the vicinity of 100s. Does this mean Instagram has blocked access from all instances of RSS-Bridge altogether?

Actually, #638 is specifically about Mitsu's server:

My instance (bridge . suumitsu . eu) does not provide Instagram bridge anymore since March 3, due to the heavy traffic my instance caused on a shared web hosting.

If you host your own instance of RSS-Bridge this has no impact on you. If the bridge fails for you, please see if you get messages in debug mode or entries in the servers log files. Some sample URIs of failing pages could also prove useful.

Yes, I host my own.
I have debug mode enabled. What I see on the page is this:

<br />
<b>Notice</b>:  Undefined property: stdClass::$user in <b>/home1/aasemoon/public_html/bridge/bridges/InstagramBridge.php</b> on line <b>39</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home1/aasemoon/public_html/bridge/bridges/InstagramBridge.php</b> on line <b>39</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home1/aasemoon/public_html/bridge/bridges/InstagramBridge.php</b> on line <b>41</b><br />
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0">

    <title type="text">astronomypicturesdaily - Instagram Bridge</title>
    <id>http://bridge.aasemoon.blue/</id>
    <icon>http://icons.better-idea.org/icon?url=https://instagram.com/astronomypicturesdaily&amp;size=64</icon>
    <logo>http://icons.better-idea.org/icon?url=https://instagram.com/astronomypicturesdaily&amp;size=64</logo>
    <updated>2018-03-14T20:17:53+00:00</updated>
    <link rel="alternate" type="text/html" href="https://instagram.com/astronomypicturesdaily" />
    <link rel="self" href="http://bridge.aasemoon.blue/?action=display&amp;bridge=Instagram&amp;u=astronomypicturesdaily&amp;format=Atom" />

</feed>

I don't see anything related to RSS-Bridge on my server error logs.

I thought this was an issue everyone was having. Do you currently have a working Instagram bridge instance?

I should probably add that I see the same message on every Instagram feed. Here's an example:

http://bridge.aasemoon.blue/?action=display&bridge=Instagram&u=astronomypicturesdaily&format=Atom

Any ideas?

P.S.: I just edited this comment and removed something I had mentioned from my server error logs. Sorry about the confusion, I just realised the error I had mentioned here has nothing at all to do with RSS-Bridge, but rather my aggregator.

Yesterday Instagram changed _sharedData.

Maybe replace
$userMedia = $data->entry_data->ProfilePage[0]->user->media->nodes;
by
$userMedia = $data->entry_data->ProfilePage[0]->graphql->user->edge_owner_to_timeline_media->edges;

Probably related:
https://github.com/scottsweb/wp-instagram-widget/commit/2927634942168fe29812d1d3b6c12bc34ffb0fc9#diff-850b8a40c854b03c25d4f5e7851edcc5L221

@Aasemoon beat me to it, just confirming same result.

Notice: Undefined property: stdClass::$user in ../bridges/InstagramBridge.php on line 50
Notice: Trying to get property of non-object in ../bridges/InstagramBridge.php on line 50
Notice: Trying to get property of non-object in ../bridges/InstagramBridge.php on line 50
Warning: Invalid argument supplied for foreach() in ../bridges/InstagramBridge.php on line 52

For giggles I tried @pintassilgo suggestion but this causes a big dump:

Notice: Undefined property: stdClass::$code in /var/www/rss-bridge/html/bridges/InstagramBridge.php on line 69
Notice: Undefined property: stdClass::$display_src in /var/www/rss-bridge/html/bridges/InstagramBridge.php on line 70
Notice: Undefined property: stdClass::$display_src in /var/www/rss-bridge/html/bridges/InstagramBridge.php on line 74
Notice: Undefined property: stdClass::$date in /var/www/rss-bridge/html/bridges/InstagramBridge.php on line 76
Warning: Cannot modify header information - headers already sent by (output started at /var/www/rss-bridge/html/bridges/InstagramBridge.php:76) in ../lib/FormatAbstract.php on line 31

Also replace
$media-> -> $media->node->
code -> shortcode
display_src -> display_url
caption -> edge_media_to_caption->edges[0]->node->text
date -> taken_at_timestamp

Not tested.

@pintassilgo THANK YOU! A very big thank you, as far as I can see that's fixed it! =D

I've same problem. So I tried to get the recent commit but it seems this bug didn't fix yet.

@pintassilgo I tried exactly your suggestion but unfortunately it didn't fix the bug :(
https://gist.github.com/mbnoimi/06aeccbc3d84f31e6b71ec026f736fe3

@mbnoimi Here's mine. A quick glance doesn't show me a difference, but you're welcome to give it a try.

https://gist.github.com/Aasemoon/0a05aedffec02a80599ebce60511d9f8

So far it's working perfectly!

Thanks @Aasemoon it works!

Thanks a lot ! @Aasemoon

@Aasemoon @pintassilgo Perfect, big thanks to all!

Thanks @Aasemoon , working perfectly for me too!

Fix committed to master, thanks @pintassilgo.

Was this page helpful?
0 / 5 - 0 ratings