Jump to content

how to include a custom facebook-activity-feed into wordpress?


Maze

Recommended Posts

hello dear php-experts,

i want to run and show facebook-actiity feeds (in other words "streams of two different facebook sites)

that said i cannot do this with one plugin - can i?

well some guys taled bout a solution of copying and cloing a wordpress plugin

I want to have multiple instances of the plugin running so i can have different related content on a single page.
that said i heard that some guys just do one thing; they coly the copy the plugin.


https://wordpress.org/support/topic/installing-2-copies-of-the-same-plugin?replies=8

but thie does not work - so i have to do one facebook-feed with a version like so

question - how to include the code:

https://developers.facebook.com/docs/plugins/activity

Initialize the JavaScript SDK using this app: booksocial123

  Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.
 
 

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=473241986032774&version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>




Place the code for your plugin wherever you want the plugin to appear on your page.
 

<div class="fb-activity" data-site="facebook.com/literaturen" data-action="likes, recommends" data-width="350px" data-height="350px" data-colorscheme="light" data-header="true"></div>


how to include that into a wordpress
 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.