WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Page Publish
[Error occured at line 457] (7 posts)

  1. sara_007_ok
    Member
    Posted 2 months ago #

    Facebook returned an unexpected error: share_item is not a member of the permissions table.
    Try to resolve this issue, update the plugin or inform the author about the problem.
    [Error occured at line 457]

    Application ID,
    Application Secret,
    Page or profile ID, are ok.

    What should I do?

    https://wordpress.org/plugins/facebook-page-publish/

  2. esylwek
    Member
    Posted 2 months ago #

    Hi, I have got the same problem.
    Wordpress 3.9
    Facebook Page Publish 2 v0.4.1
    What should I do, which setting have to change or adjust?

  3. rojbas
    Member
    Posted 2 months ago #

    Hi,

    Same problem .. I try to change the permission but no effects.,,

  4. tales6
    Member
    Posted 2 months ago #

    I'm also with error 457.
    Does anyone know how to solve this?

  5. erickigotho
    Member
    Posted 2 months ago #

    Due to desperation I've solved this but in a dirty way. Go to the plugin itself, that is, wp-content/plugins/facebook-page-publish/fpp_index.php - go to line 662 and comment out the line and add $permissions = array(); above it so that it looks like below:

    $permissions = array();
    //$permissions = array('offline_access', 'share_item');

    That should solve it assuming you already have the other permissions manage_pages and user_groups

  6. samandagtv
    Member
    Posted 2 months ago #

    * @last_review 0.3.1

    */

    function fpp_get_required_permissions($object_type) {

    if (!is_array($object_type)) $object_type = array($object_type);

    $permissions = array('share_item');

    if (array_search('page', $object_type) !== false) {

    $permissions[] = 'manage_pages';

    }

    if (array_search('group', $object_type) !== false) {

    $permissions[] = 'user_groups';
    my codes like this
    what we must do

  7. ratputin
    Member
    Posted 1 month ago #

    @samandagtv

    Are you replacing

    function fpp_get_required_permissions($object_type) {
            if (!is_array($object_type)) $object_type = array($object_type);
    
            $permissions = array('share_item');
            if (array_search('page', $object_type) !== false) {
                    $permissions[] = 'manage_pages';
            }
            if (array_search('group', $object_type) !== false) {
                    $permissions[] = 'user_groups';
            }
            return $permissions;
    }

    with your code? or adding to it?

Reply

You must log in to post.

About this Plugin

About this Topic