Retrieve Facebook users that like a URL / web page via Open Graph

前端 未结 2 1939
-上瘾入骨i
-上瘾入骨i 2020-12-16 00:21

Is there a way to retrieve the list of Facebook users that have clicked the like button on an external website?

  • E.g. there is a domain example.com whi
2条回答
  •  死守一世寂寞
    2020-12-16 01:06

    FQL Should do the trick.

    $facebook->api_client->fql_query('SELECT user_id FROM like WHERE object_id="OBJECTID"');

    Here is the link.

    Some general info about FQL.

    FQL is initiated using the JavaScript SDK, in this way.

    If you can post some sample code-I can try and give some more specific help.

    A note should be made-once you've got the user ID's, you can just query the names and get them in a list.

    EDIT: To get the URL of an object you should query this table using fql.

提交回复
热议问题