Is it possible to use YQL for facebook? I know there are tables for twitter but I don't see a facebook one which makes me wonder if it is possible. I also did't see any tutorials for facebook.
Asked
Active
Viewed 113 times
1
-
I guess you could use YQL, but this yould only work for publically available info. Even then it's not transparent to me why you'd to an intermediate step instead of calling the FB API directly... – Tobi Jul 17 '14 at 06:14
1 Answers
1
Yes you can, why not? Here is an example.
var fbUrl = "http://www.facebook.com/feeds/page.php?id=20531316728&format=JSON";
$.ajax({
url: "http://query.yahooapis.com/v1/public/yql",
dataType: "jsonp",
data: {
q: 'select * from json where url="' + fbUrl + '"',
format: "json"
},
success: function (data) {
$.each(data.query.results.json.entries, function (i, v) {
$('#entries').append(data.query.results.json.entries[i].title + '<br />');
});
}
});
Note that it also helps getting JSON from Facebook using AJAX.

Community
- 1
- 1

Stéphane Bruckert
- 21,706
- 14
- 92
- 130