ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Facebook Multiple Like Buttons / Unique URL's

June 13, 2013 9:16pm

Subscribe [3]
  • #1 / Jun 13, 2013 9:16pm

    Joshua McLemore

    6 posts

    Hello,

    I’ve been trying to figure out how to have a ‘news feed’ page of entries that allow for Facebook like/send/comments for each entry. I’m getting “The page at http://mysite.com/entry/entry-url could not be reached.”

    Here’s my code:

    <div class="facebook-buttons">
     <div class="fb-like" data-href="{title_permalink='entry'}" data-send="true" data-layout="button_count" data-show-faces="false"></div>
    </div>      
    
    <div class="fb-comments-wrap">
     <div class="fb-comments" data-href="{title_permalink='entry'}" data-width="625" data-num-posts="5"></div>
    </div>

    I’ve read about the og:meta tags but am not sure how to do this using EE. Thanks for any help!

  • #2 / Jun 17, 2013 1:13am

    travisb

    172 posts

    Getting a ‘page could not be reached’ error shouldn’t have anything to do with the code you displayed. Can you post more of the template, in particular the exp:channel:entries tag?

  • #3 / Jun 17, 2013 1:27pm

    Boyink!

    5011 posts

    What template group & template structure do you have?  Is there an /entry/ template?

  • #4 / Jun 18, 2013 9:52am

    Joshua McLemore

    6 posts

    Thanks for both of your responses.

    TravisB:

    The channel tag looks like this:

    {exp:channel:entries channel="bs_content" sort="desc" orderby="date" limit="10" paginate="bottom" dynamic="no"}

    Boyink! I do have an entries template. It looks like this: entry/index

    And a new development; I discovered that when I make a post, I get that ‘page could not be reached’ but it is hyperlinked to a Facebook debugging page. I would love to share that link, but the problem seems to have resolved itself. Anyhow, if I clicked the link Facebook ‘scrapped’ my link and then it would just start working for that particular post. But as I said, now it’s just working even though I didn’t do anything. Strange.

    Thanks for the help and I hope this somehow helps someone else in the future. If the problem crops up again, I’ll repost. Again, thanks.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases