Facebook Like Link Not Working Properly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • salalyusuf
    New Member
    • Feb 2009
    • 19

    Facebook Like Link Not Working Properly

    Hello!

    I am facing facebook like issue on my forum, when like button was hitted and it apears in facebook.........when the user clcik the link on facebook, user can not land on the same thread where we hit the like button.
    This is from last few days

    need your guide lines

    Sample Link when i click from [URL="http://www.urdudesigner.com/showthread.php/showthread.php/50034-Bebasi-_______-Shagufta-Basit?fb_action_ids=10201020181729828&fb_action_types=og.likes&fb_source=aggregation&fb_ag gregation_id=288381481237582"]facebook[/URL="http://www.urdudesigner.com/showthread.php/showthread.php/50034-Bebasi-_______-Shagufta-Basit?fb_action_ids=10201020181729828&fb_action_types=og.likes&fb_source=aggregation&fb_ag gregation_id=288381481237582"]



    salal Yusuf

  • BirdOPrey5
    Senior Member
    • Jul 2008
    • 9613
    • 5.6.3

    #2
    The problem is for some reason in the HTML source of your forum the facebook open graph (og) tags are not being properly formed.

    When I view the source of you page I see-

    HTML Code:
    <meta property="" content="179267595440928" />
    <meta property="" content="Urdu Designer Forum| Urdu Poetry / Shayari | Islamic Art | Al-Quran & Hadith | Book Download | Gup Shup & more" />
    <meta property="" content="urdu poetry, shayari, art work, designed poetry, ghazals, poems, ashar, shairi, shair, the islam, islamic art, gupshup, desi chat, jobs, flash games, gushup, bollywood songs, torrents, softwares, free premium accounts, urduartist, urdu forum, designing forum, Free Online Courses, Tutorials, Computer Articles, Islamic Literature, Website Reviews, Download Free Software , E-Books, Islamic Books, PC Games, Mobile Apps, Themes, Game, General Knowledge, English Learning, Students Nots, Recipes, Poetry, treasures, Mobile, Ringing Tones, Video Clips, Online Jobs, Wallpaper, Arcade Games, Urdu Adab & Poetry, Photo Gallery, Sports, pakistani forum" />
    <meta property="" content="http://www.urdudesigner.com/showthread.php/50034-Bebasi-_______-Shagufta-Basit" />
    <meta property="" content="article" />
    <meta property="" content="http://i47.tinypic.com/2cx6ji9.jpg" />
    Those blank property values should be things like og:site_name, og:url, og:image, etc...

    First try disabling hooks like here- http://www.vbulletin.com/forum/forum...ystem-globally

    Then view the source of a thread, see if it changes.

    If not try the default style see if that helps- To get the default style go to Admin CP -> Styles & Templates -> Style Manager -> Add New Style and create a new style with no parent style. This will be the default style.Then go to Admin CP -> Settings -> Options -> Style & Language Settings and give permission for users to change styles (if it was disabled) so you can change to the default style to test it.


    Comment

    • salalyusuf
      New Member
      • Feb 2009
      • 19

      #3
      Dear I tried

      Disabling hooks and result negative

      create new style also same in negative

      sample link with new style

      Code:
      [URL="http://www.urdudesigner.com/showthread.php/showthread.php/11710-Surah-Al-Falaak?fb_action_ids=10201021365959433&fb_action_types=og.likes&fb_source=aggregation&fb_aggregation_id=288381481237582"]http://www.urdudesigner.com/showthread.php/showthread.php/11710-Surah-Al-Falaak?fb_action_ids=10201021365959433&fb_action_types=og.likes&fb_source=aggregation&fb_aggregation_id=288381481237582[/URL="http://www.urdudesigner.com/showthread.php/showthread.php/11710-Surah-Al-Falaak?fb_action_ids=10201021365959433&fb_action_types=og.likes&fb_source=aggregation&fb_aggregation_id=288381481237582"]

      Comment

      • BirdOPrey5
        Senior Member
        • Jul 2008
        • 9613
        • 5.6.3

        #4
        This will get it working but won't fix the underlying issue-

        Edit your SHOWTHREAD template-

        FInd the line:

        Code:
        <link rel="canonical" href="{vb:raw thread_url}" />
        Under it ADD the line

        Code:
        <meta property="og:url" content="http://www.urdudesigner.com/{vb:raw thread_url}" />
        And save the template.


        Comment

        • BirdOPrey5
          Senior Member
          • Jul 2008
          • 9613
          • 5.6.3

          #5
          As for the underlying issue, if you go to Admin CP -> Maintenance -> Diagnostics -> Suspect File Check, do you have files listed as having unexpected contents? If so consider uploading a fresh set of files.

          Comment

          • salalyusuf
            New Member
            • Feb 2009
            • 19

            #6
            Well i added the code,
            and checked by Diagnostics, a lot of file in different folders showed ( File not recognized as part of vBulletin )
            uploaded the updated files but issue remain same

            Comment

            • salalyusuf
              New Member
              • Feb 2009
              • 19

              #7
              please guide

              Comment

              • salalyusuf
                New Member
                • Feb 2009
                • 19

                #8
                By Diagnostic i found the result which is

                Comment

                • BirdOPrey5
                  Senior Member
                  • Jul 2008
                  • 9613
                  • 5.6.3

                  #9
                  The Facebook Debugger shows you the <meta> tags in the body of your pages:



                  I see when viewing source you have this code in your ad_global_below_navbar template-

                  Code:
                  	<center><meta http-equiv="Content-Language" content="en-us">
                  The meta tag must be removed, it is not valid to have it outside the header of the site.

                  Comment

                  • BirdOPrey5
                    Senior Member
                    • Jul 2008
                    • 9613
                    • 5.6.3

                    #10
                    After logging in I confirmed the issue was with a 3rd party modification. He had many modifications installed so I could not immediately tell which mod it was.

                    To troubleshoot this you must go to Admin CP -> Plugins & Products -> Product Manager and disable each modification one by one

                    After each time disabling a modification go to the Facebook Debugger-https://developers.facebook.com/tools/debug/og/object?

                    And scan a thread URL each time.

                    When the errors change from what you see now (before disabling mods) you will know you found the mod that was causing the issue.

                    Look for the og:image to show up when you disabled the right mod, it will be the easiest way to tell in the debugger.

                    Finally once it has been fixed, Facebook caches pages it scans when "Liking" a thread, it wi will still take several days before liking a thread that was recently liked shows the correct URL (because the old one is cached) - So always try from a new page when testing.

                    Comment

                    • salalyusuf
                      New Member
                      • Feb 2009
                      • 19

                      #11
                      Bundle of thanks for your guidelines , its working perfectly
                      The problem was with the Plugin ( Limited Guest View) , since i removed it, now all ok

                      Best regards

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...