Wikia

Olympics Wiki

Help:Facebook Social Plugins

Create Talk0
For help connecting to Wikia using your Facebook account, see Help:Facebook Connect

Facebook and Twitter pages can be a great way to attract new editors to the wikia and to interact with your users. Whether you want to discuss a new episode, talk about a recent game update or just want to socialize, having a Facebook or Twitter account for your wikia is a great idea. Though creating the page isn't the hard part, it is often far more difficult to share your pages with the world. But what better way than to advertise it on the main page with a Facebook or Twitter box?

If the subject of your wikia has its own Facebook or Twitter pages, you can also feature those on your main page.

Adding a Twitter Timeline

  • Adding a Twitter Timeline is somewhat complex, but it should be a piece of cake if you follow these steps. Keep in mind that these steps require admin privileges on the wikia.
    1. Sign in to twitter.com and visit the widgets section of your settings page.
    2. Click the "Create new" button.
    3. Configure your settings on the left. Your username should be added automatically.
    4. Click the blue "Create widget" button. Twitter should create the code for you in the bottom right. It should look similar to this:
      <a class="twitter-timeline" href="https://twitter.com/TwitterName" data-widget-id="TwitterID">Tweets by @TwitterName</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
    5. Create a page in the MediaWiki namespace named "TwitterWidget". To do this, visit Special:CreatePage on your wikia, and use "MediaWiki:TwitterWidget" as the pagename.
    6. Copy and paste the code Twitter created for you into this page and publish the change.
    7. Next, visit the page in which you want to display the Twitter feed (typically the Main Page of your wikia) and add following code:
      <verbatim>TwitterWidget</verbatim>
    8. And voilà, the Twitter widget should now appear once the page is saved.

Tips

  • The Twitter box can be customized, but the customization is limited. Within Twitter's widget setup, you can change the height, theme colors, and link colors. The rest would have to be changed via local CSS on the wikia.
  • Twitter's widget creator doesn't honor the width value on the left when creating the code. If you wish to add a width or height value, you can do so by adding it to the link manually like:
    <a class="twitter-timeline" height="500px" width="250px" href="https://twitter.com/TwitterName" data-widget-id="TwitterID">Tweets by @TwitterName</a>

Adding Facebook widgets

This is a list of wikitext tags you can use to include Facebook widgets anywhere on your site.

Like Button

Adds a Like button that allows users to like the current page. You can also optionally add a Share button next to the Like button.

<fb:like share="true"></fb:like>

Parameters


Share Button

The Share button lets users share a link on their timeline, in groups, or to their friends via a Facebook Message. Additional text can be added to the post or message.

<fb:share-button layout="button_count"></fb:share-button>

Parameters


Recommendations Feed

Adds a list of liked/recommended pages on your wikia.

<fb:recommendations></fb:recommendations>

Parameters


Facepile

The Facepile will display the Facebook profile photos of people who have connected with your wikia via likes, etc. You should use the href parameter to specify your community's URL.

<fb:facepile href="http://community.wikia.com"></fb:facepile>

If your wikia has its own Facebook page, you can also use the href parameter to display the Facepile for your Facebook page

<fb:facepile href="http://www.facebook.com/wikia"></fb:facepile>

Parameters

Like Box

The Like Box is a special version of the Like Button that allows users to like your wikia's Facebook page (if you have created one). Use the href parameter to link the widget to your wikia's Facebook page.

<fb:like-box href="https://www.facebook.com/wikia"/>

Parameters


Follow Button

The Follow button allows users to subscribe to the public updates of your wikia's Facebook page (if you have created one). Use the href parameter to link the widget to your wikia's Facebook page.

<fb:follow href="https://www.facebook.com/wikia"></fb:follow>

Parameters

Best practices

  • The Twilight Wiki has a box on the top right of their wikia, and with nearly 3000 likes it has been a big success! They share photos of their favorite characters, invite each other to events and have endless discussions about who's better, Edward or Jacob!
  • The Sims Wiki also has a very active Facebook community, with nearly 1000 likes. Like the Twilight Wiki, the box is on the top right of the page so the box will be the first thing new visitors see. The Sims wikia actively uses their Facebook page to share news articles, but also informs their users of important wikia discussions.

I still can't work it out!

If you are having problems setting up any of the Twitter or Facebook boxes, feel free to ask the community for help on our Forum, or contact Wikia staff.

See also

Further Help & Feedback

Around Wikia's network

Random Wiki