Publish_stream is no longer supported on Facebook since April 2015 if I am not wrong. This module may not function properly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jinhcc’s picture

I 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.

jinhcc’s picture

Title: Publish_stream is longer supported on Facebook » Publish_stream is no longer supported on Facebook
jinhcc’s picture

Issue summary: View changes
jinhcc’s picture

Sorry, 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.

Sill’s picture

Thanks jinhcc for starting the work on this. I've included the patch to replace publish_stream with publish_actions.

Sill’s picture

Status: Active » Needs review
lucas.constantino’s picture

I've rerolled the patch to 7.x-1.4.

kopeboy’s picture

How 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!

ckng’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
FileSize
3.17 KB

Reroll for 7.x-1.x-dev.

Nchase’s picture

patch in #9 doesn't solve the issue. As soon as I enable this module I get no access to Facebook. Fboauth alone works fine.