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

    Joined:
    Oct 11, 2010
    Messages:
    14
    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:
    PHP:
    <?php
    /// 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");
    $this->setLayout('layout.phtml');
     
    $this->headScript()
        ->
    prependFile(REL_ROOT_URL '/application/default/views/public/js/jquery/jquery.validate.js')
    ?>
    <?php $this
    ->blocks('member/under-menu'?>
    <!-- member content starts here -->
    <?php
    require_once ('../members/application/default/plugins/misc/facebook/facebook.php');
    require_once (
    '/home/primate/public_html/members/library/Am/Lite.php');
    $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
         
        /// ADD FACEBOOK CONNECT BUTTON HERE
       
          to Facebook!</td></tr>
          <tr>
          <td style="text-align:center; padding:10px;"><font style="font-size:20px;">
              Earn</br>
              <font style="color:darkred; font-size:45px">6</font></br>
              Ink Points!</font>
              </td>
          <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">
              </form>
              </td>
          </tr>
          </table>
          </div>
       
     
    <!-- member content ends here -->
    <?php $this->blocks('member/under-contents'?>

Share This Page