snarfed / bridgy

📣 Connects your web site to social media. Likes, retweets, mentions, cross-posting, and more...
https://brid.gy
Creative Commons Zero v1.0 Universal
724 stars 52 forks source link

FB started 400ing /me/posts API requests for some users #394

Closed snarfed closed 9 years ago

snarfed commented 9 years ago

started about 24h ago, around the same time as #393. maybe same root cause: timing implies that the FB v2.0 API apocalypse may be to blame, and/or that we don't have the right permissions for those users.

example log:

Fetching https://graph.facebook.com/v2.2/me/posts?offset=0&limit=50&access_token=...... kwargs {'headers': {'If-None-Match': u'"71aab0b83a454f8018c8c6e3dd07f13419985fee"'}}
Error 400, response body: Bad Request
HTTP Error 400: Bad Request
Traceback (most recent call last):
File "/base/data/home/apps/s~brid-gy/3.383971133541294147/tasks.py", line 109, in post
source_updates.update(self.poll(source))
File "/base/data/home/apps/s~brid-gy/3.383971133541294147/tasks.py", line 161, in poll
cache=cache)
File "/base/data/home/apps/s~brid-gy/3.383971133541294147/facebook.py", line 104, in get_activities_response
resp = self.as_source.get_activities_response(group_id=SELF, **kwargs)
File "/base/data/home/apps/s~brid-gy/3.383971133541294147/activitystreams/facebook.py", line 227, in get_activities_response
resp = self.urlopen(url, headers=headers, parse_response=False)
File "/base/data/home/apps/s~brid-gy/3.383971133541294147/activitystreams/facebook.py", line 1204, in urlopen
timeout=appengine_config.HTTP_TIMEOUT)
...
HTTPError: HTTP Error 400: Bad Request
snarfed commented 9 years ago

follow #393 for @kylewm's and @diplix's great work on this so far. also thanks to @armingrewe for first reporting this!

armingrewe commented 9 years ago

For some reason didn't spot this earlier, but it looks like there's a lot more impacted by the FB API change: I'm also using the Jetpack Share plugin on my photoblog. That used to show how many times an entry was liked on FB. Those numbers have now completely disappeared for all entries. For Twitter and Pinterest the numbers still show (G+ never showed), but FB is gone. No idea if this helps you guys, but I thought you might find it interesting.

snarfed commented 9 years ago

thanks for the info! definitely interesting. apocalypse indeed. :/

snarfed commented 9 years ago

this is getting acute. :(

chart

snarfed commented 9 years ago

woot, FB granted the new permissions!

armingrewe commented 9 years ago

That seems to have fixed it. I just "re-linked" my FB account and it's starting to find the links. Quite a lot coming through now, I'll be busy approving this evening. Kind of related, Jetpack have released a new version today as well, that's fixed the like count.

snarfed commented 9 years ago

currently disabling ("pausing") FB accounts hit by this. we try to send them an FB notification, like usual, but that API call is getting 403ed with {"error":{"message":"(#200) Cannot send notifications to a user who has not installed the app","type":"OAuthException","code":200}}. sigh.

snarfed commented 9 years ago

reverted that change. all affected accounts should be disabled and notified (or at least attempted).