Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Publish_stream is no longer supported on Facebook since April 2015 if I am not wrong. This module may not function properly.
Comments
Comment #1
jinhcc CreditAttribution: jinhcc commentedI tried fixing the code in facebook_rules.module, by replacing 'publish_stream' with 'publish_action'. It works fine that publish permission is asked when a user first connect to Facebook. Also, the module works fine and publish to user's Facebook wall like before. Hope that this will help those who are using this module.
However, I spot an error when a user try to deauthorize. The error is:
Facebook OAuth could not acquire an access token from Facebook. We queried the following URL:
https://graph.facebook.com/v2.3/oauth/access_token?client_id=ASD&client_...
. Facebook's servers returned an error Bad Request:
{"error":{"message":"This authorization code has been used.","type":"OAuthException","code":100}}
This error goes away if I disable Facebook Rule module. May be there are other issues too, more tests are needed.
Comment #2
jinhcc CreditAttribution: jinhcc commentedComment #3
jinhcc CreditAttribution: jinhcc commentedComment #4
jinhcc CreditAttribution: jinhcc commentedSorry, it seems like the error came out because I refreshed the page when I get nothing after trying to deauthorize a user. Whenever I try to deauthorize, the destination page (http://site.com/fboauth/deauth?destination=..) will always be a blank page and I get stuck there. I refreshed the page, the authorization code was used twice and hence the error. The actual error is not recorded in the log messages so I have no idea what the actual error is. Again to reiterate, this problem goes away if Facebook Rule is disabled. Hope someone will try to shed some light on this.
Comment #5
Sill CreditAttribution: Sill as a volunteer commentedThanks jinhcc for starting the work on this. I've included the patch to replace publish_stream with publish_actions.
Comment #6
Sill CreditAttribution: Sill as a volunteer commentedComment #7
lucas.constantino CreditAttribution: lucas.constantino at Taller commentedI've rerolled the patch to 7.x-1.4.
Comment #8
kopeboy CreditAttribution: kopeboy commentedHow to disable the request to Facebook??
I installed this module to set a site message after FB login / registration, I don't need a default value ON of allowing the site to publish to user FB streams!
The site administration should be able to opt out form this..
ANYWAY, after applying the patch, the login for existing users works, but the registration of a new user still doesn't!
Comment #9
ckngReroll for 7.x-1.x-dev.
Comment #10
Nchase CreditAttribution: Nchase as a volunteer commentedpatch in #9 doesn't solve the issue. As soon as I enable this module I get no access to Facebook. Fboauth alone works fine.