Add Facebook Connect button to custom amember page

Discussion in 'Customization & add-ons' started by primitive_soul, Jun 7, 2013.

  1. primitive_soul

    primitive_soul New Member

    Oct 11, 2010
    Hi, does anyone have a solution to adding a Facebook Connect button to a page? I'm setting up a rewards program and would like to add one where people can post to earn points. Any help would be greatly appreciated. I tried copying code from the login page but it's broken. My code minus the stuff I copied from login:
    /// that is layout for member.phtml - based pages - with tab menu on top
    /// it is automatically inserted into your site layout:
    if (empty($title)) $title ___("Your Membership Information");
    prependFile(REL_ROOT_URL '/application/default/views/public/js/jquery/jquery.validate.js')
    <?php $this
    <!-- member content starts here -->
    require_once ('../members/application/default/plugins/misc/facebook/facebook.php');
    require_once (
    $name Am_Lite::getInstance()->getName();
          <div class="am-block">
          <table width="750" border="0">
          <tr><td style="text-align:center; padding:10px; width:400px;"><font style="color:darkred; font-size:30px;">Post to Facebook</font></td>
          <td style="text-align:center">First
          to Facebook!</td></tr>
          <td style="text-align:center; padding:10px;"><font style="font-size:20px;">
              <font style="color:darkred; font-size:45px">6</font></br>
              Ink Points!</font>
          <td><form action="../private/postfacebook.php" method="post">
              <textarea name="message" rows="4" cols="60" placeholder="Type your post here!" required></textarea><br>
              <input type="submit" name="submit" value="Post To Facebook" height="30px">
    <!-- member content ends here -->
    <?php $this->blocks('member/under-contents'?>

Share This Page