The permission "publish_stream" appears to no longer be supported on facebook. The new permission is called "publish_actions". This module will no longer post to facebook if you try and generate the site-wide token using the link within the module since it requests the old publish_stream permission.

I can write a patch to change all publish_stream permissions to publish_actions and this should fix the problem.

Comments

ladybug_3777’s picture

From facebook's developer page:

https://developers.facebook.com/docs/facebook-login/permissions/v2.0

publish_actions:
Enables your app to post content, comments and likes to a user's stream and requires extra permissions from a person using your app. Because this permission lets you publish on behalf of a user please read the Platform Policies to ensure you understand how to properly use this permission. Note, you do not need to request the publish_actions permission in order to use the Feed Dialog, the Requests Dialog or the Send Dialog. Facebook used to have a permission called publish_stream. publish_actions replaces it in all cases. This permission also replaces photo_upload.

ladybug_3777’s picture

Patch attached. Please review

ladybug_3777’s picture

Status: Active » Needs review
ladybug_3777’s picture

BTW, in case anyone searches for the problem based on the error message, this is the error message that you may see if you don't use the patch above:

Failed to query https://graph.facebook.com/670892069660295/feed. Forbidden: (#200) The user hasn't authorized the application to perform this action OAuthException 200 (http 403)
Failed to query https://graph.facebook.com/670892069660295/feed.

Dave Cohen’s picture

Status: Needs review » Fixed

Thanks, appreciate the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

aitala’s picture

Any idea if this was fixed in the D6 version of the module/

Or could I use the patch above (with or without) modifications to solve the issue?

E

Jorge Navarro’s picture

Version: 7.x-4.x-dev » 7.x-3.4
Priority: Normal » Major
Status: Closed (fixed) » Active

Reopening this issue because needs to be ported to version 3.4

jrb’s picture

Here's the patch for 3.4.

Use the patch below.

jrb’s picture

StatusFileSize
new1.52 KB

Oops. Bad path in patch. This one's right.

Jorge Navarro’s picture

Status: Active » Reviewed & tested by the community

Thanks, RTBC?