How do you get information on the Fb?



  • There's api-- https://vk.com/dev/likes.getList

    I mean, on the site page.ru/asd puts a lik down, then I make a request to the vq and see who put it.

    I need the same for the fb, but I can't find the api.

    I mean, there's a need for a phob that links to the page on which the lik was placed and returns the list of those who put it.


  • QA Engineer

    FB API is not VK.

    The facebook for all types of records is different id, so you need to know id records and the title of the required API function to access any function. You're interested in the method. /likes

    Example of receipt of the list of the liquor:

    GET https://graph.facebook.com/v2.5/{id того, кто запостил}_{здесь_указываем_id_записи}/likes
    

    Example of receipt of a list of those who licked and the number of liquors on my page (is a real example, only without access_token):

    https://graph.facebook.com/v2.5/963586523696776_963070623748366/likes?summary=true
    

    The answer is:

    {
      "data": [
        {
          "id": "963586523696776"
        }
      ],
      "paging": {
        "cursors": {
          "after": "OTYzNTg2NTIzNjk2Nzc2",
          "before": "OTYzNTg2NTIzNjk2Nzc2"
        }
      },
      "summary": {
        "total_count": 1,
        "can_like": true,
        "has_liked": true
      }
    }
    

    summary=true He's in charge of the count of liquors. If you don't point it out, fb'll just send a list of people who posted the tape.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2