# How to install Social Invite for Sngine [![scriptstribe_f05eaf0bb9aa66e1fe04c17e4ca5a5b9.png](https://howto.scriptstribe.com/uploads/images/gallery/2025-02/scaled-1680-/2u7NcTO0c5n087me-scriptstribe-f05eaf0bb9aa66e1fe04c17e4ca5a5b9.png)](https://howto.scriptstribe.com/uploads/images/gallery/2025-02/2u7NcTO0c5n087me-scriptstribe-f05eaf0bb9aa66e1fe04c17e4ca5a5b9.png) This guide is fast and simple tutorial, should take you 5 minutes **If you are updating, please save your API Key and follow the new files structure and delete the old files, I changed it for better organization** ##### Step 1: Upload Files --- I am assuming you that by this point you already know how to create and or already have a facebook app Upload all files to your root directory ##### Step 2: Add Facebook API Open 1. /content/themes/default/templates/invite/**invite.tpl ** 2. /content/themes/default/templates/invite/**invitepage.tpl** 3. /content/themes/default/templates/invite/**invitegroup.tpl** 4. /content/themes/default/templates/invite/**invite\_event.tpl** and add your facebook app id replacing the text YOUR-APP-ID **(around line 27)** this is important for the facebook mobile sharing to work ``` ``` /content/themes/default/templates/**newsfeed.tpl** and add wherever you wish to show the block, I have it on my \_sidebar.tpl ``` {include file='invite/invite/invite.tpl'} ``` [![Social-Invite.png](https://howto.scriptstribe.com/uploads/images/gallery/2025-02/scaled-1680-/BZx0bStqLTRHEqQD-social-invite.png)](https://howto.scriptstribe.com/uploads/images/gallery/2025-02/BZx0bStqLTRHEqQD-social-invite.png) /content/themes/default/templates/**page.tpl** **and look for ** ``` {if $spage['i_like'] && $spage['invites']}
``` after that add ``` {include file='invite/invitepage.tpl'} ``` [![Social-InvitePages.png](https://howto.scriptstribe.com/uploads/images/gallery/2025-02/scaled-1680-/CN79of1W3lZgeX7K-social-invitepages.png)](https://howto.scriptstribe.com/uploads/images/gallery/2025-02/CN79of1W3lZgeX7K-social-invitepages.png) Open /content/themes/default/templates/**\_\_svg\_icons.tpl **and add ``` {elseif $icon == "whatsapp"} {include file='../images/svg/whatsapp.svg'} {elseif $icon == "facebookmessenger"} {include file='../images/svg/facebookmessenger.svg'} ``` Open /content/themes/default/templates/**group.tpl **and look for ```
    {foreach $group['invites'] as $_user} {include file='__feeds_user.tpl' _tpl="list" _connection=$_user["connection"] _small=true} {/foreach}
``` And after that add ``` {include file='invite/invitegroups.tpl'} ``` Open /content/themes/default/templates/**event.tpl **and look for Look for ``` {foreach $event['invites'] as $_user} {include file='__feeds_user.tpl' _tpl="list" _connection=$_user["connection"] _small=true} {/foreach} ``` and after that add ``` {include file='invite/invite_event.tpl'} ``` You are done, enjoy [![emot.png](https://howto.scriptstribe.com/uploads/images/gallery/2024-11/scaled-1680-/IYne7FovY9bt1UwY-emot.png)](https://howto.scriptstribe.com/uploads/images/gallery/2024-11/IYne7FovY9bt1UwY-emot.png)