How to get SEO credit for Facebook Comments (the missing manual)
I've been using the Facebook Comments Box on this blog since I parted ways with Disqus. One issue with the Facebook system is that you won't get SEO credit for comments displayed in an iframe. They have an API to retrieve comments but the documentation is pretty light and so here are three critical tips to get it working.
The first thing to know is that comments can be nested. Once you've got a list of comments to enumerate through you need to check each comment to see if it has it's own list of comments and so on. This is pretty easy to handle.
The second thing is that the first page of JSON returned from the API is totally different from the other pages. This is crazy and can bite you if you don't test it thoroughly. For https://developers.facebook.com/docs/reference/plugins/comments/ the first page is https://graph.facebook.com/comments/?ids=https://developers.facebook.com/docs/reference/plugins/comments/. The second page is embedded at the bottom of the first page and is currently https://graph.facebook.com/10150360250580608/comments?limit=25&offset=25&__after_id=10150360250580608_28167854 (if that link is broken check the first page for a new one). The path to the comment list is "https://developers.facebook.com/docs/reference/plugins/comments/" -> "comments" -> "data" on the first page and just "data" on the second. So you need to handle both formats as well as the URL being included as the root object on the first page. Don't know why this would be the case, just need to handle it.
Last but not least you want to include the comments in a way that can be indexed by search engines but not visible to regular site visitors. I've found that including the SEO list in the tag does the trick, i.e.
I've included the source code for an ASP.NET user control below - this is the code I'm using on the blog. You can see an example of the output on any page with Facebook comments. The code uses Json.net.
FacebookComments.ascx:
FacebookComments.ascx.cs
Related Posts
- Commentary
- Top 5 reasons to hate the Facebook like button
- Blogger Classic Templates Bugs and XHTML
- The curious case of the missing slugs (in BlogEngine.net 2.8)
- Migrating from Blogger to BlogEngine.NET
(Published to the Fediverse as: How to get SEO credit for Facebook Comments (the missing manual) #etc #facebook #seo #comments Optimize Facebook comments for SEO by using the API to add comment text before loading the comment box via JavaScript (C# implementation but principle will work anywhere). )
Skype for Android 4 - Better but Useless
Skype just released a completely rewritten version of their Android client.
It's a nice streamlined UI and for the first time on Android it actually loads the 15,422 chats I'm required to participate in work and is usable and responsive. I've used it for a few days and really want to like it.
But.
Even though it's faster and prettier it still destroys battery life. Imo.im ad Plus.im manage to handle multiple networks all day without putting a noticeable dent int the battery. With Skype up and running my phone is dead by the early evening. It's useless.
They also haven't fixed syncing the read state of messages which is the worst deficiency of Skype on both mobile and the desktop. Imo.im did this wonderfully until Skype cut them off at the kneecaps.
Back to Plus.im for now...
Related Posts
Leafhopper Nymph
I spotted this odd looking bug in my porch a few weeks ago. It looks like a wingless fly with a hairy tail that wouldn't look out of place on a fly sized horse.
My Google-fu failed me so I turned to JustAnswer. Random insect identification isn't your typical veterinary question but Rebeccavet came through for me via a taxonomist in Kenya and told me it's a Leafhopper (Cicadellidae) nymph. Given this information Google Images confirmed that this seems like the most likely possibility.
(Full disclosure - I work at JustAnswer.)
Related Posts
- Unidentified Butterfly
- Pipevine Swallowtail Caterpillar
- Bernal Bug
- Butterfly at California Academy of Sciences
- Moth
(Published to the Fediverse as: Leafhopper Nymph #photo #leafhopper #cicadellidae Photo of a Leafhopper Nymph, looks like a wingless fly with a hairy tail. )
Catfood Earth for Android 1.20
I recently upgraded to the HTC One which has a transparent notification bar. This makes it hard to see notification icons when using Catfood Earth as your wallpaper, at least in the summer when it's always light at high latitudes and your white icons are displayed on top of polar ice and clouds.
Catfood Earth for Android 1.20 fixes this with an option to paint black under the notification bar. That's the only update other than the latest Xamarin runtime.
Related Posts
Pride
Updated 2013-06-30 19:51:
Updated 2013-06-30 20:37:
Updated 2013-07-01 00:31:
Updated 2013-07-01 08:37:
Related Posts
- San Francisco
- Pride 2023 Laser Rainbow (Time Lapse)
- Presidio Plaques
- San Francisco from San Bruno Mountain
- Pier 14
(Published to the Fediverse as: Pride #photo #sanfrancisco Various photos from 2013 Pride in San Francisco, California. )
Commute
View to Alcatraz from Steiner and Pacific - about to cycle down very fast.
Updated 2016-04-26 21:42:
View from the Ecology Trail in The Presidio of San Francisco.
(Previously: Commute failing to suck this morning...)
Related Posts
- Commute failing to suck this morning...
- San Francisco from Alameda
- Both sides of the Golden Gate, a Time Lapse
- Grand View of Fog
- Timelapse, Week of Jan 24 2022
(Published to the Fediverse as: Commute #photo #commute #sanfrancisco Photos from my commute in San Francisco. )
Free
Free Firewood... and Tibet
Sign seen in Bernal Heights, San Francisco.
In this photograph titled "Free," the viewer is immediately drawn to a makeshift, handwritten sign that reads "FREE FIREWOOD +TIBET!" The sign, crafted from a piece of paper, is affixed to the bark of a tree. Surrounding it, dappled sunlight filters through the leaves, casting gentle shadows that dance upon the surface of the paper. The background is a lush tapestry of greenery, composed of leaves and foliage, invoking a sense of nature’s quiet abundance. The overall scene feels organic and spontaneous, captured during a moment of serene outdoor stillness.
The composition of the photograph is striking in its simplicity. The centered placement of the sign serves as the focal point, guiding the viewer’s eye immediately to its message. This centralization reflects a straightforward style that contrasts with the natural chaos of the surrounding foliage. The play of light and shadow adds a dynamic element, enhancing the text’s legibility and imparting a natural texture to both the sign and the tree. What resonates well is the raw, unpolished nature of the sign against the natural backdrop, emphasizing a poignant rustic charm. However, the photograph might have benefitted from a slightly higher contrast or saturation to further differentiate between the sign and the foliage, making the message stand out even more vividly.
Related Posts
(Published to the Fediverse as: Free #photo #tibet Photo of Free Firewood... and Tibet sign in Bernal Heights, San Francisco, California. )
Summer Solstice 2013
Summer Solstice 2013 in Catfood Earth. (summer starts now in the Northern Hemisphere, Autumn if you are south of the Equator.)
Related Posts
Signs
Updated 2013-06-30 20:01:
Updated 2013-07-06 19:00:
Updated 2013-11-05 14:38:
Updated 2013-11-06 12:56:
[more]
Updated 2015-05-01 18:38:
Related Posts
(Published to the Fediverse as: Signs #photo #signs A small collection of photos on the theme of interesting signs. )