WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Trouble with getting facebook pages (3 posts)

  1. tepelstreel
    Member
    Posted 2 years ago #

    Hello,

    I'm using different pages on fb for my different websites. For some reason, I only got the last of all my fb pages as a possibility to choose from, when trying to connect my site with fb.

    I could somehow change that by modifying the code in line 1104 of the file class-config.php in the admin folder from

    $options['fbpages'][$page->page_id] = $page->name; into
    $options['fbpages'][intval($page->page_id)] = $page->name;

    I'm just not sure whether or not this can be a solution for everybody. It's not completely tested through all my sites yet.

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. tepelstreel
    Member
    Posted 2 years ago #

    The same I did with the apps to make them work.

    line 1112, same file

    from:

    $options['fbapps'][$app->page_id] = $app->name;

    to:

    $options['fbapps'][intval($app->page_id)] = $app->name;

    it is still strange that two of my fb pages appear as fb apps...

  3. tepelstreel
    Member
    Posted 2 years ago #

    The same I did with the apps to make them work.

    line 1112, same file

    from:

    $options['fbapps'][$app->page_id] = $app->name;

    to:

    $options['fbapps'][intval($app->page_id)] = $app->name;

    it is still strange that two of my fb pages appear as fb apps...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic