WordPress.org

Ready to get started?Download WordPress

Forums

Add To Facebook Plugin (6 posts)

  1. golddave
    Member
    Posted 7 years ago #

    I was browsing through some articles in my RSS reader when I realized that some of the articles had links on them that would add the article to the viewers Facebook account. I thought that it would be a nice idea to add this functionality to my WordPress blog so I searched for a plugin that would do this. Unfortunately I couldn’t find one. So I wrote one myself.

    The Add To Facebook plugin adds a link to the bottom of each post and page on your blog with the text "Share on Facebook". When clicked the user will be brought to the Facebook login page and, after they log in, the article will be added to the Mini-Feed section of their profile.

  2. Callum Macdonald
    Member
    Posted 6 years ago #

    Here's the url for the plugin:
    http://nothing.golddave.com/?page_id=108

  3. smayman
    Member
    Posted 6 years ago #

    Is there any way to pick and choose which templates/pages this shows up on?

  4. shiznaught
    Member
    Posted 6 years ago #

    Feedburner has the option to include an Add to Facebook link in your Feedburner feed, at the end of each post. Just dig around in the Publicize options.

  5. tinuviel
    Member
    Posted 6 years ago #

    I have a website where I removed the categories and instead only have tags at the end of the post. I put in the code:
    add_filter('the_tags', 'add_to_facebook'); to replace add_filter('the_categories', 'add_to_facebook');, and it worked - temporarily. Now, however, it isn't - but I haven't changed anything with regards to these two pieces of the template - the tags filter is still present in the template, and the plugin still says the_tags instead of the_categories. I don't even know what to ask because it's too baffling.

  6. tinuviel
    Member
    Posted 6 years ago #

    Okay, it came back when I put add_filter('the_content', 'add_to_facebook');, but it's showing up on every page. I'm not using categories, so I've removed that from my template. I only want this to show up on blog pages, not on actual pages with static content on them. How would I go about doing that?

Topic Closed

This topic has been closed to new replies.

About this Topic