FB.getLoginStatus(function (response) {   if (!response.session) {      alert(‘not logon’);   } else {      alert(‘logined...
FB.api( ‘/me’, function(response) {   var user = response;   $(#user-info).html(     <img src=" + user.pic + "> +user.name...
FB.api( {     method: fql.query,     query: SELECT name, pic FROM profileWHERE id= + FB.getSession().uid }, function(respo...
{   "id": "220439",   "name": "Bret Taylor",   "first_name": "Bret",   "last_name": "Taylor",   "link": "http://www.facebo...
Facebook JavaScript SDK
Facebook JavaScript SDK
Facebook JavaScript SDK
Facebook JavaScript SDK
Facebook JavaScript SDK
Facebook JavaScript SDK
Facebook JavaScript SDK
Facebook JavaScript SDK
Upcoming SlideShare
Loading in …5
×

Facebook JavaScript SDK

6,270
-1

Published on

Facebook JavaScript SDK intro

1 Comment
0 Likes
Statistics
Notes
  • chci zpatky hry program slotomania prosim o pomoc omylem nevim je ztraceni ne ukazuje mi
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total Views
6,270
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
29
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Facebook JavaScript SDK

    1. 1. FB.getLoginStatus(function (response) { if (!response.session) { alert(‘not logon’); } else { alert(‘logined!’); }});
    2. 2. FB.api( ‘/me’, function(response) { var user = response; $(#user-info).html( <img src=" + user.pic + "> +user.name).show(fast); });
    3. 3. FB.api( { method: fql.query, query: SELECT name, pic FROM profileWHERE id= + FB.getSession().uid }, function(response) { var user = response; $(#user-info).html( <img src=" + user.pic + "> +user.name).show(fast); });
    4. 4. { "id": "220439", "name": "Bret Taylor", "first_name": "Bret", "last_name": "Taylor", "link": "http://www.facebook.com/btaylor", "username": "btaylor", "gender": "male", "locale": "en_US"}

    ×