Describe the bug
Instagram Bridges do some PHP warnings when fetching content.
PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in ***/rss-bridge/bridges/InstagramBridge.php on line 206
PHP message: PHP Warning: Invalid argument supplied for foreach() in ***/rss-bridge/bridges/InstagramBridge.php on line 170
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Do not have these warnings. Maybe, by testing the value before using it in foreach or count(), or diagnose why the structure is empty here (parsing problem?)
Desktop (please complete the following information):
As mentionned in https://github.com/RSS-Bridge/rss-bridge/issues/1863#issuecomment-731585313, Instagram now ask time-to-time to supply the login form when accessing profiles via the API.
Some API parameters are hard-coded values in the bridge (a.k.a. USER_QUERY_HASH, TAG_QUERY_HASH, SHORTCODE_QUERY_HASH) and subsequently shared among all InstagramBridge users.
So… maybe a possible workaround is to obtain personnal IDs, and do not share them with other people ?
So… maybe a possible workaround is to obtain personnal IDs, and do not share them with other people ?
Probably yes. I haven't checked it myself and I don't know how to get them.
Anyway, I also mentioned about private credentials feature in pinned issue https://github.com/RSS-Bridge/rss-bridge/issues/1891
Most helpful comment
As mentionned in https://github.com/RSS-Bridge/rss-bridge/issues/1863#issuecomment-731585313, Instagram now ask time-to-time to supply the login form when accessing profiles via the API.
Some API parameters are hard-coded values in the bridge (a.k.a.
USER_QUERY_HASH,TAG_QUERY_HASH,SHORTCODE_QUERY_HASH) and subsequently shared among all InstagramBridge users.So… maybe a possible workaround is to obtain personnal IDs, and do not share them with other people ?