_This is very similar to #2012, so please check that one out first :)_
When trying to use the "Get from instagram" button to assign profile photos from a twitter link, the user is shown a "Avatar download failed" error message, and the logs show the following:
Exception: Argument 1 passed to OC\Http\Client\Client::get() must be of the type string, null given, called in /var/www/nextcloud/apps/contacts/lib/Service/SocialApiService.php on line 213
I think this may be because Instagram now requires a valid session to view accounts, so I'm not sure how we can fix this without an API key.
curl -i -L https://www.instagram.com/barackobama/?__a=1 -H "User-Agent: Googlebot/2.1"
Please see how only the login screen is returned.
I thought this is what happens after a certain amount of requests, but I am not sure. Anyways, not a good state.
When I execute the curl above from my computer, the first attempt returns the desired page, while a second execution shortly after receives a 302 to the login page already!
Ideas very welcome...
@Ge0rg3 can you confirmed it works again after some time?
Nope, never works for me, always just returns the login page instead.
Maybe we can follow the discussion here?
https://gist.github.com/cosmocatalano/4544576
So far, no solution to this :cry:
Yep too bad, maybe we should disable the option until a workaround is found in future?
Either that, or we add a setting to insert ones account details?
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.
@Ge0rg3 I suppose you have already tried adding a user agent (as you have done in #2012)? For me, it works more reliable with that.
Yeah I think it helped slightly, but same issue after 2 or so reqs.
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.