0

I know there is a way to get the number of facebook likes using this approach:

https://api.facebook.com/method/fql.query?query=select%20like_count%20from%20link_stat%20where%20url=%27https://stackoverflow.com/%27&format=json

But I can't figure out how I can do the same using facebook JavaScript SDK api(). Does anybody know if that's possible?

Community
  • 1
  • 1
Max Koretskyi
  • 101,079
  • 60
  • 333
  • 488

1 Answers1

1

I've figured that out myself:

FB.api(
    "/" + siteUrl,
    function (response) {}
);
Max Koretskyi
  • 101,079
  • 60
  • 333
  • 488