Find Facebook user (url to profile page) by known email address

后端 未结 11 1716
陌清茗
陌清茗 2020-12-01 03:40

I have an email address and want to find out if there is a Facebook user linked to this address. If there is, then I want to retrieve the url to this users profile page and

11条回答
  •  醉梦人生
    2020-12-01 04:23

    I've captured the communication of Outlook plugin for Facebook and here is the POST request

    https://api.facebook.com/method/fql.multiquery
    access_token=TOKEN&queries={"USER0":"select '0', uid, name, birthday_date, profile_url, pic, website from user where uid in (select uid from email where email in ('EMAIL_HASH'))","PENDING_OUT":"select uid_to from friend_request where uid_from = MY_ID and (uid_to IN (select uid from #USER0))"}
    

    where
    TOKEN - valid access token
    EMAIL_HASH - combination of CRC32 and MD5 hash of searched email address in format crc32_md5
    MY_ID - ID of facebook profile of access token owner

    But when I run this query with different access token (generated for my own application) the server response is: "The table you requested does not exist" I also haven't found the table email in Facebook API documentation. Does Microsoft have some extra rights at Facebook?

提交回复
热议问题