The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Facebook Plugin

View previous topic View next topic Go down

Solved Facebook Plugin

Post by turigee on January 30th 2013, 2:38 pm

Hi

I added facebook plugin to my site as a widget but did not work normally. It seams I need to add the codes to the javascripts. How do I add facebook scripts to my javascripts.

Thank you

turigee
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Facebook Plugin

Post by Sanket on January 30th 2013, 2:40 pm

Modules>Javascript Codes Management
Create a new javascript.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Facebook Plugin

Post by turigee on January 30th 2013, 7:34 pm

It did not work with Javascript code management. However, when I tried HTML pages management, it worked but my forum content page was blank.

turigee
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Facebook Plugin

Post by SLGray on January 30th 2013, 7:40 pm

What exactly are you adding to your forum?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36663
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Facebook Plugin

Post by turigee on January 30th 2013, 7:42 pm

A facebook code that displays images and number of likes in my facebook page

turigee
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Facebook Plugin

Post by Sanket on January 31st 2013, 5:48 am

If its a automatically generated code, add it directly to your forum widget.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Facebook Plugin

Post by turigee on January 31st 2013, 9:34 am

The generated codes are two. I need to add one to the forum widget and the other one to the html Page. I did what I usually do with Blogger but it did not work here.

turigee
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Facebook Plugin

Post by Sanket on January 31st 2013, 9:36 am

Can you post a screenshot of the instructions & the two codes?

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Facebook Plugin

Post by turigee on January 31st 2013, 10:12 am

Your Like Box plugin code:


1. 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/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>



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


<div class="fb-like-box" data-href="http://www.facebook.com/motherlandjobs" data-width="292" data-show-faces="false" data-colorscheme="light" data-stream="false" data-header="false"></div>




turigee
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Facebook Plugin

Post by SLGray on January 31st 2013, 11:27 am

Could you post the link to the page where you are getting these codes? The reason why is that when I used one from Facebook, I only used one code in an announcement.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36663
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Facebook Plugin

Post by turigee on January 31st 2013, 11:44 am


turigee
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Facebook Plugin

Post by SLGray on January 31st 2013, 11:54 am

Thanks. They have changed it since I used the one on my forum. It used to only offer two codes to pick from.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36663
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Facebook Plugin

Post by turigee on February 1st 2013, 12:33 pm

Thanks for your time

turigee
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Facebook Plugin

Post by runawayhorses on February 1st 2013, 1:26 pm

You put both those codes in the widget. Facebook is just suggesting the ideal way of doing it for a webpage, but the widgets do not work exactly the same as a webpage.

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Facebook Plugin

Post by Sanket on February 1st 2013, 3:37 pm

When you create the code, after the creation there is a tab for iframe. You can use that code in your widget.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Facebook Plugin

Post by turigee on February 1st 2013, 6:17 pm

I put both code in the widget as runawayhorses suggested and it worked. You guys are great.

Thanks

turigee
Forumember

Posts : 26
Reputation : 1
Language : English

Back to top Go down

Solved Re: Facebook Plugin

Post by SLGray on February 1st 2013, 6:24 pm

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36663
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum