Bir kullanıcının e-posta adresim var ve bunları javascript API kullanarak Facebook'ta aramak istiyorum.javascript API ile facebook aramalarını gerçekleştirme
ben
FB.api('/search', {q: '[email protected]', type: 'user'}, function(response) {
//Handle response
});
Ama bu işe görünmüyor şey lazım biliyorum, ben bile bir yanıt alamadım.
Ayrıca, bir sebepten dolayı başarısız olan FB.login()
numaralı telefona bir çağrı yaptıktan sonra ve/veya aramayı denedim.
Herhangi bir öneriniz var mı? Bunun nasıl kullanılacağıyla ilgili belgeleri çok belirsiz.
DÜZENLEME:
İşteuygun tüm kodu geçerli:
<div id="fb-root"></div>
<script type="text/javascript" >
FB.init({
appId: 'apikey', //Actual API key removed for obvious reasons
status: true, // check login status
cookie: true, // enable cookies to allow the server to access the session
xfbml: true, // parse XFBML
oauth: true // enable OAuth 2.0
});
</script>
<script type="text/javascript" >
FB.login(function (response) {
if (response.authResponse) {
FB.api('/search', {q: '[email protected]', type: 'user'}, function(response) {
{
alert(response);
});
}
else {
alert(response.toString());
}
});
</script>
Bu işi aldınız mı? – aleXela
@alexela Asla işe yaramadı. –