简体   繁体   中英

Facebook PHP SDK -> getting user id by email no longer possible?

Previously it was possible to get the facebook user id associated to an email by polling the api:

$facebook->api('/search?q=' . $email . '&type=user');

or via url:

https://graph.facebook.com/search?q=mailbox@example.com&type=user

The last time it worked for me was october 28th. Now an empty result is returned. Searching by anything else still works.

Did anything in the API change or is facebook now blocking email searches? I'm using the latest (3.1.1) PHP SDK and OAuth 2.0;

Facebook has confirmed this as a bug: http://developers.facebook.com/bugs/292220680814266

1 month and still no fix ...

@Mod: the same question was asked later here: Facebook Graph API "search" by email suddenly stopped working

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM