jQuery facebook autocomplete live demo
Following are the code snippet example for Autocomplete (similar the facebook autocomplete).
Code Example:
JQuery Autocomplete similar to facebook
We are Web Technology Experts Team who provide you Important information on Web Development, Interview Questions and Answers, live project problem and their solution and online free tutorials.
JQuery Autocomplete similar to facebook
Output
//connect.facebook.net/en_US/all.js
http://connect.facebook.net/en_US/all.js OR https://connect.facebook.net/en_US/all.jsIf Yes, remove the "http:" OR "https://"
Please wait...
window.fbAsyncInit = function() { FB.init({ appId : FB_APP_ID, cookie : true, xfbml : true, version : 'v2.3' }); }; (function(d){ var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; d.getElementsByTagName('head')[0].appendChild(js); }(document));Please don't forget to replace the "FB_APP_ID" with facebook API Id.
function fbLogin(){ FB.getLoginStatus(function(response) { if (response.status === 'connected') { console.log('You are login in FB.'); } else { FB.login(); } }); } function fbLoginDetails(){ FB.api('/v2.2/me?fields=name,email,location,gender,birthday', function(response) { console.log(response.toSource()); }); } function fbShareURL(){ FB.ui( { method: 'share', href: 'http://www.web-technology-experts-notes.in/2013/09/Facebook-Registration-Plugin-with-Custom-Fields.html' }, function(response){ }); } function fbPostURL(){ FB.ui({ method: 'share_open_graph', action_type: 'og.likes', action_properties: JSON.stringify({ object:'http://www.web-technology-experts-notes.in/2013/09/Facebook-Registration-Plugin-with-Custom-Fields.html', }) }, function(){}) }
Facebook Login Check Facebook Get Login Details Facebook Share URL Facebook POST URL
Array ( [id] => 1421305244855173 [first_name] => Arun [gender] => male [last_name] => Kumar [link] => https://www.facebook.com/app_scoped_user_id/1421305244855173/ [locale] => en_US [name] => Arun Kumar [timezone] => 5.5 [updated_time] => 2015-04-23T09:57:26+0000 [verified] => false )
FB.api('/me?fields=token_for_business', function(response) { console.log(response); });
http://graph.facebook.com/?id=http://www.web-technology-experts-notes.in
{ "id": "http://www.web-technology-experts-notes.in", "shares": 33 }
https://share.yandex.ru/gpp.xml?url=http://www.web-technology-experts-notes.in
"20"
https://www.linkedin.com/countserv/count/share?format=json&url=http://www.web-technology-experts-notes.inResponse:
{"count":6,"fCnt":"6","fCntPlusOne":"7","url":"http:\/\/www.web-technology-experts-notes.in"}
http://api.pinterest.com/v1/urls/count.json?callback=x&url=http://www.web-technology-experts-notes.inResonse:
x({"url":"http://www.web-technology-experts-notes.in","count":0})
http://www.facebook.com/sharer.php?u=http://www.web-technology-experts-notes.in
http://www.twitter.com/share?url=http://www.web-technology-experts-notes.in
http://pinterest.com/pin/create/button/?media=http://www.web-technology-experts-notes.in
http://www.linkedin.com/cws/share?url=http://www.web-technology-experts-notes.in
https://twitter.com/intent/tweet?text=this%20is%20custom%20text&url=web-technology-experts-notes.in
https://twitter.com/intent/tweet?text=this%20is%20text&via=this_is_via&url=http://www.domain.com