Social Plugins for Facebook Photos and Albums - comments

Is it possible to use Social Plugins such as the Comments and Like plugins to display the comments and likes for a photo or album uploaded to Facebook?
I have tried various URLs for the HREF attribute (the photo source, the photo page, the graph URL, etc) and cannot get the plugin to display existing comments against the photo. Can someone suggest the correct URL (if any) that I should use?
I can get access to the list of comments using the graph API, however I would prefer to make use of the social plugins if possible.

Currently you can not use them in that manner. You can use the graph api to read and write comments, read and add albums and photos.
https://developers.facebook.com/docs/reference/api
This is somewhat involved and requires knowledge of coding.
I personally have been working on a Feed for the wall, and for albums and have to say it was no easy task. https://apps.facebook.com/AnotherFeed

Related

Google's Place Details, Place Photos API: How do I request only photos that the owner has uploaded?

In the Google Maps Web UI, for any given place, I have filtering options for displaying subsets of images: "By owner" or "Vibe", and so on. See the example image below.
How do I, programmatically, achieve the same using Google's Place Details and/or Place Photos APIs? E.g. how do I fetch only "By owner" images from a given place?
It's not possible using the current version of Google's Places API (Sept 1, 2021).
Many thanks to jpoehnelt for commenting and answering.

wordpress plugin making friendly URLs and accessing variables

I've been searching for a couple of days for a particular answer to my question. I have written a custom plugin for wordpress which we will be using on our site. It was easier to make this a custom plugin rather than trying to use or hack existing ones.
As an example, let's say we are selling cars. My plugin lets us create a new car, upload a photo and write reviews about that car. This is all done through my plugin.
I now need to integrate that to the existing site using friendly urls.
I'd like domain.com/cars/ford-focus/2234 as the url. that would look like index.php?pagename=cars&model=matched[1]&otherid=matched[2]
also domain.com/category/hatchback would be index.php?pagename=category&cat=matched[1]
Both those urls would call a function and I will display the records on the page.
I am really struggling as to whether I create a page called "cars" and have a [shortcode] or do I handle everything in my plugin and rewrite urls. I have tried all sorts and its just not working. I don't know if I fully understand the way it works!?
Also - I have tried the route of using custom post types etc, but for our needs it's not right.
Thanks for any help!!

Direct URL to "I'm Feeling Lucky" for images

I have a website for book reviews. I offer a link to the Amazon entry of the books. I discovered after a bit of research that the direct URL for Google's "I'm Feeling Lucky" is:
http://www.google.com/search?hl=en&q=TITLE+AUTHOR+amazon&btnI=745
Which works magic because then I don't have to manually include the Amazon link in my database and directly links to the Amazon page (works 99.99% of the times).
I was wondering if there was an equivalent for images (whether Google or some alternative) to retrieve an image URL based on keywords only (for the purpose of getting the book cover image).
There's no such thing for Google Images, but you might be able to use another web service to do what you want. I noticed that when you're searching for a book, the first image result isn't always the cover of it. Sometimes it's a photo of the author, sometimes it's some image from book's review, so you can hardly rely on that.
It should not be hard to parse the amazon page and get the image and link but google has an API to google books that return all informations about a book in JSON format, you can try it online on the API Explorer (the cover are on the results too). Click here to see an example (click "Execute" to run it).
Unfortunately public Google search engine doesn't support that. You should use Custom Search API to implement such feature in your application. Alternatively use XGoogle (unofficial Python wrapper to Google Search services, see google_dl tool for example).
Other suggestions is to use:
YQL by Yahoo (see yql-tables repo at GitHub for examples).
Use alternative search engines.
E.g. In Wolfram Alpha you can type: "show image of laptop" and it'll give you the first popular picture, however you need to use Wolfram|Alpha APIs or some script (see this ChatBot for example) to pick up the direct link.

How to get youtube embed code with CodeIgniter?

I need to give the possibility to embed youtube videos in a website I'm developing. The admin shoud be able to insert a youtube link in a form; the url will be stored in the database and then I have to embed it in a page.
I was trying to use this library: http://codeigniter.com/wiki/YouTube_API_for_CodeIgniter/revision/12072/
But using the getVideoEntry function I get this, and I don't really know what to do with it:
tag:youtube.com,2008:video:zol2MJf6XNE2009-01-14T17:21:57.000Z2011-09-01T11:36:39.000ZSyndication of this video was restricted by its owner.DominoRecordshttp://gdata.youtube.com/feeds/api/users/dominorecordsMusicDominoRecordsA video for 'My Girls' from Animal Collective's new album Merriweather Post Pavilion. Out now on Domino. Produced by: Knowmore Productions Animated by: Jon Vermilyea Edited/VFX by: Chad Von Nauanimal collective, my girls, domino, avey tare, panda bear, geologistDEAnimal Collective - My Girls (2009)widescreen2009-01-14T17:21:57.000Zzol2MJf6XNE
And anyway, to use it, I need the youtube video id. Is there an easy way to get it, which covers all possible variations of youtube urls?
CodeIgniter seems like overkill for merely embedding videos. The YouTube functionality on the page you linked is mostly a wrapper for the YouTube Data API (which allows for extracting information about YT users, channels, videos, etc. and facilitates procedural uploading of videos). Embedding videos is as easy as dropping some HTML on your page with the correct video ID.
Here's the best answer I've seen for getting the video ID from URLs.

RSS API to get TED videos

Developing an app on android platform to get the ted videos which will replicates ted .
I want to give user experience and use based on these...
category based, views based, talkers based,tag name based.
Unfortunately after long googling still am not able to find a better way to get or separate the talks based on above conditions using the feedburner list like the below ones,
http://feeds.feedburner.com/TedtalksHD
http://feeds2.feedburner.com/tedtalks_video/
Is there any api like thing or some other way to get it done better. I tried with google reader api but in that the feeds are not listed based on its category.
I really appreciate your help.
At first I was thinking that it would be a job for a yahoo pipe, but after looking at the feed it looks like every item is tagged with the same Higher Education category. No luck going that route.
I think you might want to look at the youtube data api's.
http://code.google.com/apis/youtube/2.0/developers_guide_protocol_understanding_video_feeds.html#Understanding_Video_Entries
It looks like in that data set you'll get alot more information including the number of views and favorites on youtube.
Oops, forgot to mention that the TED videos are always on youtube at, http://www.youtube.com/user/TEDtalksDirector

Resources