WordPress.org

Ready to get started?Download WordPress

Forums

Facebook
[resolved] Failed Posting To Your Facebook Timeline "Multiple 'og:url'values" (39 posts)

  1. llprimajr
    Member
    Posted 2 years ago #

    I am receiving the following error message when I publish a POST.

    Failed posting to your Facebook Timeline. Error: {"message":"Object at URL 'http://louisprimajr.com/facebook-for-wordpress/' of type 'article' is invalid because it specifies multiple 'og:url' values: http://louisprimajr.com/facebook-for-wordpress/, http://louisprimajr.com/facebook-for-wordpress/.","type":"Exception"}

    However, the POST does appear on my FAN PAGE.

    http://wordpress.org/extend/plugins/facebook/

  2. Niall Kennedy
    Member
    Plugin Author

    Posted 2 years ago #

    Which other plugins are you using to generate Open Graph protocol? Duplicating your output will cause problems.

    The Facebook plugin integrates the latest version of Open Graph protocol, properly describing content for Facebook, Google, and other indexers. When I view your site I see older "Facebook Share" markup and Open Graph protocol output without a proper RDFa prefix, likely coming from a separate plugin.

  3. llprimajr
    Member
    Posted 2 years ago #

    Thanks Niall,

    I am using
    Jetpack by WordPress.com 1.4.2
    Twitter Facebook Social Share by Kunal Chichkar 2.4.0
    There are also Facebook Share buttons associate with the Theme "Music Pro" by BrutalDesign (purchased thru themeforest.net

    Is there any way to fix the problem without deleting a plugin?

    Thanks again
    Louis

  4. Steve
    Member
    Posted 2 years ago #

    Niall - where is this "new" version of opengraph documented? Its certainly not documented on the official opengraph website

  5. ChaviM
    Member
    Posted 2 years ago #

    I'm getting this same response too - just replaced with my site post url.
    Do I need to wait a few days for the facebook app to start working properly?
    I have the latest version of the app.

    I have WP with a prophoto theme.
    my current plugins are:
    Analytics360
    Do Follow
    Google XML Sitemaps
    Official StatCounter Plugin
    Social (installed after getting this message - so I don't think it's interfering with the facebook plugin)
    WordPress Database Backup

  6. jrforasteros
    Member
    Posted 2 years ago #

    I have the same problem. Here's my error notification:

    Failed posting to your Facebook Timeline. Error: {"message":"Object at URL 'http://jrforasteros.com/2012/06/26/test-5/' of type 'article' is invalid because it specifies multiple 'og:url' values: http://jrforasteros.com/2012/06/26/test-5/, http://jrforasteros.com/2012/06/26/test-5/.","type":"Exception"}

    I deactivated my old Facebook Social plugin and recreated my app. Nothing has worked. What do I need to do?

  7. llprimajr
    Member
    Posted 2 years ago #

    I created a new WordPress Site.
    There are no plugins associated with the site.
    Using the MUSIC PRO theme as with my main site, the Facebook Plugin still results in the MULTIPLE 'OG:URL' error.
    The Music Pro theme has social share options, and they are all turned off.
    It appears to be a Theme issue, that even though the social share buttons are turned off, it is still generating multiple url.
    I read in another support chain, that changing the path of other social plugins, that his fixed the issue, yet I can no longer find that particular chain.
    Does anyone know how to do this?

  8. llprimajr
    Member
    Posted 2 years ago #

    This is the HTML code in the theme editor

    /* Facebook */
    if($facebook){
    $html .= '<div style="float:left;width:80px;height:20px;margin-right:18px; margin-bottom:10px">
    <div class="fb-like" data-href="'.$link.'" data-send="false" data-width="100" data-height="80" data-layout="button_count" data-show-faces="false" data-font="verdana"></div>
    </div>';

    Is there something I can change the "data-href" to?
    To note, I am not using the social share, should I just delete the Facebook HTML altogether?

  9. fjbengoat
    Member
    Posted 2 years ago #

    It is not a problem with the theme. It is a problem with Facebook plugin.

    I'm running a different theme on my website, without any other plugins, and I'm getting the same error.

    But if I look in the Source Code of every post, there's only one og:url, so there's something else messed up.

  10. Niall Kennedy
    Member
    Plugin Author

    Posted 2 years ago #

    If you feel your site source code is valid but Facebook's parsers are failing can you please post a sample URL you feel should not be causing any errors?

  11. llprimajr
    Member
    Posted 2 years ago #

    On my second sited, I deleted the Music Pro Theme and activated the Twenty Eleven Theme that comes with WordPress.
    I created a post, and did not receive the Multiple url error, The post did appear on my Facebook App, but did not post to my Facebook Wall.
    I then clicked Submit in the App Open Graph and received several errors.
    The post DID appear on my Fan Page with no problems.
    The Facebook Plugin also appears to be causing the site (admin) to run extremely slow, to the point of Time Out errors every time I attempt to change pages, delete or submit a post.
    This does appear to be a Facebook Plugin issue with the Authors Facebook Page, as all test posts I created appeared on my Fan Page immediately.

  12. ChaviM
    Member
    Posted 2 years ago #

    Here is the exact error I am getting:
    Failed posting to your Facebook Timeline. Error: {"message":"Object at URL 'http://www.chavimalkaphotography.com/testing-this-again/' of type 'article' is invalid because it specifies multiple 'og:url' values: http://www.chavimalkaphotography.com/testing-this-again/, http://www.chavimalkaphotography.com/testing-this-again/.","type":"Exception"}

    I would really appreciate any possible solution.
    I mentioned plugin details in a previous post & wanted to add that I never got the wordpress authenticate with facebook message in my dashboard.

  13. llprimajr
    Member
    Posted 2 years ago #

    My website is hosted on GoDaddy http://www.louisprimajr.com
    MySQL 5.0 PHP 5.3
    I created a separate WordPress Database http://www.louisprimajr.com/NewMPWordPress/
    I uploaded themeforest.com theme Music Pro 2.7.1
    There are Social Share buttons within this theme.
    I disabled the Social Share Buttons in the Theme Dashboard.
    I have no plugins associated with this WordPress.
    I installed the Facebook Plugin, and carefully followed the instructions again. The Facebook App is "LouisPrimaJr"
    I did the test post http://louisprimajr.com/NewMPWordPress/?p=14
    I again received the following error.

    Failed posting to your Facebook Timeline. Error: {"message":"Object at URL 'http://louisprimajr.com/NewMPWordPress/?p=14' of type 'article' is invalid because it specifies multiple 'og:url' values: http://louisprimajr.com/NewMPWordPress/?p=14, http://louisprimajr.com/NewMPWordPress/?p=14.","type":"Exception"}

    The WordPress Post DID appear on my Facebook Fan Page http://www.facebook.com/louisprimajr.witnesses.sarahspiegel
    But did not appear on my Facebook Timeline http://www.facebook.com/louisprimajr

    I am leaving the test post on the secondary WordPress that I listed above.

    debug info From Social Plugin
    {"appid":"332014596880589","version":"1.0","domain":"louisprimajr.com","social_publisher":{"enabled":"true","publish_to_authors_facebook_timeline":"true","publish_to_fan_page":{"page_name":"Louis Prima, Jr. and the Witnesses featuring Sarah Spiegel","page_id":"121930597859488"},"mentions_show_on_homepage":"true","mentions_position":"both"},"recommendations_bar":{"trigger":"50","read_time":"20","action":"like","side":"right"},"subscribe":{"layout":"standard","width":"450","colorscheme":"light","font":"lucida grande","position":"both"},"comments":{"num_posts":"20","width":"470","colorscheme":"light"},"send":{"colorscheme":"light","font":"lucida grande","position":"both"},"wp_ver":"3.4"}

    debug info from Facebook App
    Open Graph Warnings That Should Be Fixed

    Tiny og:image: All the images referenced by og:image must be at least 200px in both dimensions. Please check all the images with tag og:image in the given url and ensure that it meets the minimum specification.
    Parser Mismatched Metadata: The parser's result for this metadata did not match the input metadata. Likely, this was caused by the data being ordered in an unexpected way, multiple values being given for a property only expecting a single value, or property values for a given property being mismatched. Here are the input property =>content pairs that were not seen in the parsed result: 'og:locale:locale => en_US, og:type => website, og:title => NewMPWordPress'

    Raw Open Graph Document Information

    Meta Tag: <meta property="og:title" content="Home | NewMPWordPress" />
    Meta Tag: <meta property="og:site_name" content="NewMPWordPress" />
    Meta Tag: <meta property="og:url" content="http://louisprimajr.com/NewMPWordPress/" />
    Meta Tag: <meta property="og:image" content="http://louisprimajr.com/NewMPWordPress/wp-content/themes/musicpro/images/bd_fbimage.jpg" />
    Meta Tag: <meta property="og:type" content="article" />
    Meta Tag: <meta property="og:locale" content="en_US" />
    Meta Tag: <meta property="og:site_name" content="NewMPWordPress" />
    Meta Tag: <meta property="og:type" content="website" />
    Meta Tag: <meta property="og:title" content="NewMPWordPress" />
    Meta Tag: <meta property="og:description" content="Just another WordPress site" />
    Meta Tag: <meta property="fb:app_id" content="332014596880589" />

    This is my last cry out for help. I would truly like to use this plugin to simplify my postings. I have read almost every single support topic, and tried several of them, but nothing works. Anything that is needed from me, I can provide, but PLEASE HELP!

  14. Niall Kennedy
    Member
    Plugin Author

    Posted 2 years ago #

    ChaviM: You have two groups of Open Graph protocol property sets defined on your test page including a set wrapped in AL2FB OGP comments: likely Add Link to Facebook. Only one set is needed unless you are intentionally outputting array values such as og:image.

  15. Niall Kennedy
    Member
    Plugin Author

    Posted 2 years ago #

    llprimajr: It looks like some other component of your WordPress installation is outputting Open Graph protocol values before the Facebook plugin or even the wp_head action used by many plugins to add markup within a theme's <head>. Music Pro and the BrutalDesign framework are most likely the cause due to the proximity of the first set of Open Graph protocol definitions to its generator outputs.

    Take a look at your test post's source code by loading the page in your browser then finding a "View Source" option in your browser's menu (sometimes it is under a "Developer" submenu).

    Starting on line 5 of your page I see:

    <meta name="generator" content="MusicPro 2.7.1" />
    <meta name="generator" content="BrutalDesign Framework 1.1" />
    <meta property="og:title" content="Testing Facebook Plugin 12 | NewMPWordPress" />
    <meta itemprop="name" content="NewMPWordPress">
    <meta itemprop="image" content="http://louisprimajr.com/NewMPWordPress/wp-content/themes/musicpro/images/bd_fbimage.jpg" />
    <meta property="og:site_name" content="NewMPWordPress" />
    <meta property="og:url" content="http://louisprimajr.com/NewMPWordPress/?p=14" />

    Music Pro is a premium theme with its own framework and source code not available for inspection for conflicts. Based on the placement of this markup I'm guessing Music Pro generates Open Graph protocol markup from your theme's header very early on the page and separate from a typical plugin flow. They are trying to trigger both Schema.org markup and Open Graph protocol markup in the same block.

    Lower down in your page markup you will notice output from the Facebook plugin starting at line 45.

    <link rel='canonical' href='http://louisprimajr.com/NewMPWordPress/?p=14' />
    <meta property="http://ogp.me/ns#locale" content="en_US" />
    <meta property="http://ogp.me/ns#site_name" content="NewMPWordPress" />
    <meta property="http://ogp.me/ns#type" content="article" />
    <meta property="http://ogp.me/ns#url" content="http://louisprimajr.com/NewMPWordPress/?p=14" />

    Social sharing buttons are typically graphics displayed after post content encouraging a reader to share an article on one or more social sharing sites. It's different from the markup used to summarize the story on each site. If the Music Pro theme and/or BrutalDesign framework does not have an option to disable their automatic markup output then it will be in conflict with other plugins such as Facebook outputting more complete and accurate values for your post.

    Brutal Design has its own forum for theme issues.

  16. llprimajr
    Member
    Posted 2 years ago #

    Thank You, I have contacted Brutal Design for help. As I stated, I disabled all Social Share add ons thru the Music Pro Dashboard. I did not see anything in the Footer.php or the sidebar (as suggested in another thread)
    If you can give me an idea of what type of coding I am looking for in the editor in case Brutal Design does not reply soon, I can delete it myself and see if it works.

  17. llprimajr
    Member
    Posted 2 years ago #

    Sorry, I meant header.php, but I did look elsewhere as well

  18. ChaviM
    Member
    Posted 2 years ago #

    Thanks for the reply.
    I actually just added the "add a link" plugin this afternoon - after getting the message & after posting here.
    The only plugins I had at the time of the error were the ones listed above.
    (Analytics360, Do Follow, Google XML Sitemaps, Official StatCounter Plugin, Social (installed after getting this message - so I don't think it's interfering with the facebook plugin), WordPress Database Backup)
    Where can I find the Open Graph protocol property sets, so that I can remove one set?
    Can the prophoto theme be adding it in?

  19. Niall Kennedy
    Member
    Plugin Author

    Posted 2 years ago #

    ChaviM: the Facebook plugin outputs Open Graph protocol properties with a base URL followed by the property name (http://ogp.me/ns#url) instead of the prefixed shortcut (og:url).

    On your sample URL I see two blocks of Open Graph protocol output, both with the prefixed shortcut approach (og:url) and therefore likely not output by the Facebook plugin.

    The first set appears directly above a wp_head() elements wrapper. It's possible your theme is outputting these values outside of a plugin flow, possibly related to your Facebook flyout on the left side of your page.

    The second set is wrapped in AL2FB comments, indicating it's coming from that plugin.

    If you remove AL2FB you should be down to one set.

  20. Niall Kennedy
    Member
    Plugin Author

    Posted 2 years ago #

    llprimajr: look at the top of your header.php file near <meta charset="UTF-8" />.

    I expect you might see some PHP calling into a theme or function between your charset and your page <title>.

  21. llprimajr
    Member
    Posted 2 years ago #

    This is what I have

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <?php bd_meta_head(); ?>
    <link rel="shortcut icon" href="<?php if(get_option('mp_favicon')!='') echo get_option('mp_favicon'); else echo THEME_URL.'favicon.ico'; ?>">
    <title><?php
    /*
    * Print the <title> tag based on what is being viewed.
    */
    global $page, $paged;

    wp_title( '|', true, 'right' );

    // Add the blog name.
    bloginfo( 'name' );

    is it the bd_meta_head?? or the blog info

  22. ChaviM
    Member
    Posted 2 years ago #

    Thanks again for the response.
    I removed the newly added "add a link" plugin & other tags around the site.
    Apparently - the Facebook debugger is picking up an old FB app id - that has been deleted.
    I don't know where it is getting it from.
    The only time I entered it on my site was with the first round of testing the Facebook plugin.

    This is the debugger response I get for my web homepage:
    (note the there is a facebook app id by property values - which links back to a deleted FB app. - The new app id is in the meta data.

    Also, will addnig the facebook plugin re-add the extra open graph tags?

    Input URL, Access Token, or Open Graph Action ID
    Scrape Information
    Response Code: 200
    Fetched URL: http://www.chavimalkaphotography.com/
    Canonical URL: http://www.chavimalkaphotography.com/
    Open Graph Warnings That Should Be Fixed
    Parser Mismatched Metadata:
    The parser's result for this metadata did not match the input metadata. Likely, this was caused by the data being ordered in an unexpected way, multiple values being given for a property only expecting a single value, or property values for a given property being mismatched. Here are the input property =>content pairs that were not seen in the parsed result: 'og:image:url => http://www.chavimalkaphotography.com/wp-content/uploads/p4/images/logo_1339117203.png, fb:app_id => 199931010133472'
    Object Properties
    fb:app_id: 409321859106305
    og:url: http://www.chavimalkaphotography.com/
    og:type: website
    og:title: Chavi Malka Photography
    og:locale: en_us
    og:image:
    og:description: Custom Newborn, Children, Family Photographer | Great Neck, Manhassest, Port Washington, Five Towns, Lawrence, Far Rockaway, Long Island, New York | Chavi Malka Photography
    og:site_name: Chavi Malka Photography
    og:updated_time: 1340398215
    Raw Open Graph Document Information
    Meta Tag: <meta property="og:site_name" content="Chavi Malka Photography" />
    Meta Tag: <meta property="og:type" content="website" />
    Meta Tag: <meta property="og:title" content="Chavi Malka Photography" />
    Meta Tag: <meta property="og:url" content="http://www.chavimalkaphotography.com/" />
    Meta Tag: <meta property="og:description" content="Custom Newborn, Children, Family Photographer | Great Neck, Manhassest, Port Washington, Five Towns, Lawrence, Far Rockaway, Long Island, New York | Chavi Malka Photography" />
    Meta Tag: <meta property="og:image" content="http://www.chavimalkaphotography.com/wp-content/uploads/p4/images/logo_1339117203.png" />
    Meta Tag: <meta property="fb:app_id" content="199931010133472" />
    URLs
    Graph API: https://graph.facebook.com/10150874724391523
    Scraped URL: See exactly what our scraper sees for your URL

  23. llprimajr
    Member
    Posted 2 years ago #

    @Naill I removed
    <?php bd_meta_head(); ?>
    And the error went away, and the site seems to be functioning properly.
    To those having a similar issue. Removing the the theme (in this case bd) php meta pull seems to work.
    HOWEVER!
    After my test post, I returned to the open graph to click SUBMIT as the instructions state. When I click Submit I receive the following error:

    Built-in Action Types require that you provide instructions for using your app's Open Graph integration as your Open Graph Test User in a functioning test environment. Failure to provide a functioning test environment will result in rejection of your Action Type.

    I cannot find instructions on this anywhere, and cannot even find a place to enter anything.

    Can you please tell me how to proceed.

    I should note, that the post appears in my activity stream, but is not posted to my timeline. The post DOES appear on my fan page timeline, so we are getting close.

  24. llprimajr
    Member
    Posted 2 years ago #

    OK, I figured out how to add information.
    Am awaiting approval.

  25. ChaviM
    Member
    Posted 2 years ago #

    I just reinstalled the FB plugin & tried again.
    got this error again:
    Failed posting to your Facebook Timeline. Error: {"message":"Object at URL 'http://www.chavimalkaphotography.com/test-fb-app/' of type 'article' is invalid because it specifies multiple 'og:url' values: http://www.chavimalkaphotography.com/test-fb-app/, http://www.chavimalkaphotography.com/test-fb-app/.","type":"Exception"}

  26. ChaviM
    Member
    Posted 2 years ago #

    I just wanted to add that if I remove the facebook plugin, all warnings / errors disappear.
    Apparently it is the Facebook plugin that is causing the problems...
    Please please help!

  27. llprimajr
    Member
    Posted 2 years ago #

    @ChaviM
    Read through my posts, and @Niall responses.
    If you are using a purchased theme, the theme is pushing php info, prior to the Facebook Plugin, that is creating the error of Multiple Url.
    Read through my posts and the replies and see if that helps.

  28. ChaviM
    Member
    Posted 2 years ago #

    @llprimajr
    Thanks - I contacted ProPhoto (my theme is through them) for them to help remove the additional OG values.

  29. Niall Kennedy
    Member
    Plugin Author

    Posted 2 years ago #

    ChaviM: I still see "AL2FB OGP" markup on your pages. You may need to clear your site cache to reflect your changes.

  30. ChaviM
    Member
    Posted 2 years ago #

    @Niall Kennedy
    Ok - I just deactivated the add a link plugin again & activated the Facebook plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic