Search code examples
facebookfacebook-sdk-3.0

Facebook get if user share a url


I need to know if a user has shared a url.

In which table can I find the url shared by a user?

    $query = 'SELECT url FROM  Table  WHERE user_id = '.$userId.' AND url='."'".$url."'";
    $response = $facebook->api(array('method' => 'fql.query', 'query' => $query));

Solution

  • From the stream table, check whether the posts have the value 80 for the type field:

    type int32

    • 80 - Link posted