• Resolved akashgadiya

    (@akashgadiya)


    Hi,

    I’m desirous of integrating my FB page posts and my blog posts. For this I would like to add FB like buttons to all my blog posts, where each like button will take to the respective post.

    For example, if I have a post on say ‘WordPress’, I have posted this both my WP blog and on my FB page. I go to FB Developers social plugin page and generated a like button code for the ‘WordPress’ post (not for the FB page). Now I wish to have this like button placed at the bottom of the WP blog post.

    I tried pasting the second code (the plugin code) below my post, in the html editing mode, but to no avail.

    I’m a little naive when it comes to coding & programming, I would appreciate if anyone could help me out with this.

    Thanks in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter akashgadiya

    (@akashgadiya)

    After some research I figured that inserting html code in the WP post box was foolishness, I should have used a shortcode.

    I scanned for some plugins that would generate a shortcode for the FB like button but I still did not figure out how to have a custom URL to Like button for each post.

    This is the post URL on FB:
    https://www.facebook.com/permalink.php?story_fbid=829844230433610&id=259253960825976

    This is the post on my blog:
    https://reflections.akashgadiya.com/cricket-ca-exams/?preview=true&preview_id=525&preview_nonce=cc4109ce92

    Below the content on the blog, I wish to have a FB like button that would like the Post on the above link (and not my FB Page)

    Is there a way I can generate a shortcode something like: [fblike url="https://www.facebook.com/permalink.php?story_fbid=829844230433610&id=259253960825976"] ?

    Thanks in advance for any help.

    Thread Starter akashgadiya

    (@akashgadiya)

    I figured out a way of doing what I’ve been trying to do! It was simple, I was blind.

    Hi, please, can you tell me, how you fix that, because i have same problem 2 mounths, but i still dont know, how to fix it.

    Thanks

    Thread Starter akashgadiya

    (@akashgadiya)

    Hi,

    1) Generate your like button code from here: FB Social Plugins

    2) Paste the first code in the header.php file in your WP Editor, ideally after the body tag

    3) Now the second code is what you have to play around with. The code looks like this:

    <div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>

    Go to your post and in the html editor, at the bottom of the post (or where ever you like the Like Button to be), paste the above code. Now replace the “https://developers.facebook.com/docs/plugins/&#8221; part with the link of your post (you can get it by clicking on the date of the post on facebook).

    Update the post and the like button to the same post made on facebook should appear.

    You’ll have to manually copy fb post link and paste in every post on WP. I haven’t found any easier way yet.

    Let me know if you face any difficulties.

    Cheers,
    Akash

    Thanks, i love you ?? Its little bit difficult, but its working. Thank you very much!!! ??

    Thread Starter akashgadiya

    (@akashgadiya)

    Anytime ??

    Hello,

    I want to edit this file that you mention, the header.php but couldnt find it.
    Need to change the language the facebook like button is set.

    Can you help me?

    Thread Starter akashgadiya

    (@akashgadiya)

    Hello,

    In that case, I think you should look for the index.php file, and insert the code in the <body> tag in there.

    Hope it helps.

    It worked!

    Thank you
    ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Different Facebook Like Button on all Posts’ is closed to new replies.