WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WordPress SEO by Yoast] Trouble with getting facebook pages

[Plugin: WordPress SEO by Yoast] Trouble with getting facebook pages

  • tepelstreel
    Participant

    @tepelstreel

    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • tepelstreel
    Participant

    @tepelstreel

    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…

    tepelstreel
    Participant

    @tepelstreel

    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…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Trouble with getting facebook pages’ is closed to new replies.