7 replies [Last post]
Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 weeks 1 day ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2037
Points: 2256

Has anyone used any of the Facebook social plugins on their sites? What is considered best practice when using them ("not using them" will be accepted as a valid answer).

My concerns are with accessibility and churning out valid code.

I consider this a Triumph.

Smee
Smee's picture
Offline
Elder
Adelaide, Oz
Last seen: 1 year 36 weeks ago
Adelaide, Oz
Timezone: GMT+10.5
Joined: 2007-06-10
Posts: 1596
Points: 340

.

*bump*

Mods and gurus – THANK YOU!
For your time, knowledge and experience so willingly and generously given.
Please come back tomorrow and sort us all out again Smile

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 1 year 1 week ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Dunno about Facebook

But when I was looking at Google+ buttons recently which use their own tags, I found they also supported real elements with data- attributes, so it's possible something similar exists for Facebook.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

vikramrandhawa
vikramrandhawa's picture
Offline
newbie
Chandigarh
Last seen: 2 years 47 weeks ago
Chandigarh
Timezone: GMT+5.5
Joined: 2011-09-28
Posts: 6
Points: 6

When you Want to add plugins

When you Want to add plugins of the Facebook...Then you can go to Developer link in the facebook..
After That there code available in you Facebook for various Button and Likes..
Just paste that code into your Web pages.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 weeks 1 day ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2037
Points: 2256

vikramrandhawa wrote: When

vikramrandhawa wrote:

When you Want to add plugins of the Facebook...Then you can go to Developer link in the facebook..
After That there code available in you Facebook for various Button and Likes..
Just paste that code into your Web pages.

The code is obviously not valid.

I consider this a Triumph.

mihirc
mihirc's picture
Offline
Leader
Pune, Maharashtra, India
Last seen: 3 weeks 6 days ago
Pune, Maharashtra, India
Timezone: GMT+5.5
Joined: 2007-05-09
Posts: 728
Points: 204

Verschwindende wrote: Has

Verschwindende wrote:

Has anyone used any of the Facebook social plugins on their sites? What is considered best practice when using them ("not using them" will be accepted as a valid answer).

My concerns are with accessibility and churning out valid code.

Hello,
I have integrated facebook on a couple of sites and i have managed to run the integration fine. But as a pointer, i try to includes all the facebook code into files that are separate from my website code. So that is one pointer that you have to use.

Regards,
Mihir.

Proprietor - Thoughtfulviewfinder Services
Web Development | Design | Merchandise | Photography
My personal blog: MihirChhatre.com

andyou111
andyou111's picture
Offline
newbie
Last seen: 2 years 36 weeks ago
Timezone: GMT+7
Joined: 2011-11-12
Posts: 2
Points: 2

I found they also supported

I found google+ also supported real elements with data attributes,i think you should used google+

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 hours 35 min ago
London
Timezone: GMT+1
Joined: 2004-06-06
Posts: 15650
Points: 2788

Social Media buttons & valid

Social Media buttons & valid accessible code == 'Oxymoron'

Implemented various social media buttons or added to the existing with a plugin project, google+ is causing all sorts of issues in looped displays despite following api instructions - Farcebook? appears to work and I leave that to the other devs to test and verify as I have no account no wish for one.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me