Facebook has added a ton of new social tools you can embed on your site to enable 'Like' functionality on any page on your own site. But I'm having trouble getting it to pull the URL of the specific Ning Page within the script. Any thoughts?

<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.fullurlofningpage.com&layout=standard&show-faces=true&width=160&action=like&font=tahoma&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:160px; height:80px

Thanks
Dave







For example, to get it done in Wordpress, you do

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php_the_permalink();?>&layout=standard&show-faces=true&width=160&action=like&font=tahoma&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:160px; height:80px"></iframe>

Views: 191

Reply to This

Replies to This Discussion

Basically, I just need a snippet of code to call in the URL dynamically
I second this. Ning, can you help us out and show us how to put the Like buttons on our posts?
I've tried lots of things, including JavaScript document calls..but...that doesn't seem to work on all pages for some reason ... need whatever server-side code calls in the full URL of the page ...
Update I got the IFRAME Version working, but not the SDK version

Attached text file

Iframe_FB_likebasic.txt
Also just FYI, if you put the SDK Javascript code on your site, it breaks things like the WYSWYG editor on posts and such ..so..looks like only the IFRAME versions of these Facebook things work for now on Ning
Thanks Dave. I got the other working fine, with the specific URL.

I was just about to start tackling the SDK integration. I'm so glad I found your post first!

Thanks again,
Jen
I was able to get this working on my site... however...

the only way I could get it to work was to add it under coding that I have already done in text boxes. It really made no sense to use it anywhere.

I dont know what to say about this.
You got my attention. Can't wait to see this on my site... Thanks, Dave & Alice for kicking this off.
A small step in the right direction though, looking forward to this feature implemented by Ning!!!

n00b here.

 

Where do I insert this text on my site?

 

Thanks

RSS

Latest Activity

Allison Leahy replied to Rafael's discussion 'Multiple Chat rooms for Ning 3.0'
"Thanks for the suggestion, Jordon. I can certainly add Skype video chat integration as a specific…"
2 minutes ago
Allison Leahy replied to Rafael's discussion 'Multiple Chat rooms for Ning 3.0'
"Cool. I've never seen one of these in action. Could you share an example of a service the…"
9 minutes ago
Kos replied to Michael Goebel's discussion 'Where have the text boxes on the profile pages gone ?!?!'
"TJ @ jquery was working on a hack to add a text box on profile pages in 3.0 however I believe it…"
10 minutes ago
Kos replied to Mariana Paiva's discussion 'Analytics not working: How can I set up analytics correctly?'
"Mariana is *does* go in Custom Code (not custom CSS).  Did you also enter your Google code in…"
15 minutes ago
Cindy replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"My apologies I thought this was the discussion group for asking questions. I deleted all my posts…"
46 minutes ago
Melinda Orr replied to Michael Goebel's discussion 'Where have the text boxes on the profile pages gone ?!?!'
"Did anyone find out about this issue?? It's really a problem for my members as each one has a…"
1 hour ago
Paul Corona replied to soaringeagle's discussion 'killer penguins'
"maybe you can translate those two links into English for me?"
2 hours ago
Thiago Santos de Moraes replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"I loved your color scheme, but a big font size will increase the readability of your site and this…"
2 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service