1.	Jak to się w ogóle tworzy?
    a.	Technologia/Język
    b.	Jakieś API?
    c.	Rozmiar aplikacji
    d.	Jak się tworzy layout? (HTML/CSS/JS/Grafika – skąd pobierane?)
    e.	Czy jest dobra dokumentacja/ jakieś przykładowe kawałki kodu/tutoriale
2.	Jakie są możliwości interakcji z profilem użytkownika – automatyczne wrzucanie na tablicę, wysyłanie powiadomień do znajomych?
3.	Gry na FB – co ciekawego moża zrobić?
4.	Ciekawe aplikacje zrobione na FB i co w skrócie potrafią?
5.	Czy w sieci można znaleźć know-how? Jakieś artykuły jak to się robi – no i je zebrać jakoś



http://www.chip.pl/news/bezpieczenstwo/technologie-bezpieczenstwa/2011/09/facebook-zaklada-klodke-na-aplikacje
http://blog.abusalah.info/2009/05/publish-on-facebook-wall-using-json-fb.html
http://blog.theunical.com/facebook-integration/5-steps-to-publish-on-a-facebook-wall-using-php/
http://blog.weeby.pl/logowanie-na-stronie-za-pomoca-facebook-connect/
http://channel9.msdn.com/coding4fun/blog/Facebook-Developer-Toolkit
http://developers.facebook.com/blog/post/465
http://developers.facebook.com/blog/post/478
http://developers.facebook.com/blog/post/481
http://developers.facebook.com/blog/post/498
http://developers.facebook.com/blog/post/500
http://developers.facebook.com/docs/
http://developers.facebook.com/docs/appsonfacebook/tutorial/
http://developers.facebook.com/docs/authentication/
http://developers.facebook.com/docs/beta/opengraph/tutorial/
http://developers.facebook.com/docs/beta/opengraph/tutorialdevel/
http://developers.facebook.com/docs/creditsapi/
http://developers.facebook.com/docs/guides/canvas/
http://developers.facebook.com/docs/guides/web/
http://developers.facebook.com/docs/internationalization/
http://developers.facebook.com/docs/opengraph/
http://developers.facebook.com/docs/plugins/
http://developers.facebook.com/docs/reference/api/
http://developers.facebook.com/docs/reference/api/permissions/
http://developers.facebook.com/docs/reference/fbml/
http://developers.facebook.com/docs/reference/fql/
http://developers.facebook.com/docs/reference/fql/friendlist/
http://developers.facebook.com/docs/reference/javascript/
http://developers.facebook.com/docs/reference/php/
http://developers.facebook.com/docs/reference/rest/
http://developers.facebook.com/docs/samples/
http://developers.facebook.com/docs/samples/canvas/
http://developers.facebook.com/policy/
http://developers.facebook.com/tools/
http://developers.facebook.com/tools/explorer/155790684515445/?method=GET&path=1275537575%2Ffriends
http://developers.facebook.com/videos/
http://di.com.pl/porady/40058,0,Jak_tworzyc_skuteczne_aplikacje_na_Facebooku.html
http://facebook.com/developers
http://facebook.com/pages/FBML-Essentials/1759502703
http://fb-sandbox.filipgorczynski.pl/?state=3c078cc2cb7d4fca97b22046cafb9e3f&code=AQAovJK1Djv6CKAj2HV25gsq9QpGSoNwCYJqRBqWdXwcUgL5BHzMs2KlAlkgS4pKFRmiiHjke4gSlf1zqOoJRZ7fBuHpIKcLOwb6DneRT0LV0VwMmazC1qYn3cdqLZKAB8qysqkjjYhjaez41HGbOx3iB5MP61fLsvU-psSVzDlH_nWByqduMl3XfRledkP3WuA#_=_
http://forum.developers.facebook.com
http://forum.developers.facebook.net/
http://gadzinowski.pl/platforma-facebook-aplikacje/
http://gathadams.com/2007/06/18/how-to-write-a-facebook-application-in-10-minutes/
http://labs.byhook.com/2010/11/08/facebook-canvas-app-oauth-authentication/
http://lifehacking.pl/2011/03/28/jak-zmienic-wyglad-facebooka/
http://marketing.nf.pl/Artykul/12395/Jak-tworzyc-skuteczne-aplikacje-na-Facebooku/Facebook-marketing-w-sieci-promocja-i-PR-tworzenie-aplikacji/
http://padrenel.blogs.experienceproject.com/3459.html
http://phpfour.com/blog/2010/05/quick-start-on-new-facebook-php-sdk-iframe-based/
http://thinkdiff.net/facebook/graph-api-javascript-base-facebook-connect-tutorial/
http://thinkdiff.net/facebook/new-javascript-sdk-oauth-2-0-based-fbconnect-tutorial/
http://thinkdiff.net/facebook/php-sdk-graph-api-base-facebook-connect-tutorial/
http://webhelp.pl/artykuly/facebook-tworzenie-aplikacji-pierwsza-aplikacja/
http://webhelp.pl/artykuly/facebook-tworzenie-aplikacji-realtime-updates/
http://webhelp.pl/artykuly/facebook-tworzenie-aplikacji-zaproszenia/
http://webhelp.pl/artykuly/facebook-tworzenie-aplikacji-zezwolenia-i-korzystanie-z-api/
http://webhosting.pl/Wiem.jak.napisac.aplikacje.na.Facebooka.w.3.krokach
http://wiki.developers.facebook.com
http://www.allfacebook.com/2008/09/intro-to-facebook-connect-development/
http://www.artwave.pl/blog/artykul/hello-world-na-facebooku
http://www.blogmanager.pl/jak-stworzyc-wlasna-strone-powitalna-na-facebook
http://www.emanueleferonato.com/2009/09/20/developing-a-facebook-application-for-absolute-beginners/
http://www.emanueleferonato.com/2009/09/30/developing-a-facebook-application-for-absolute-beginners-%E2%80%93-step-3/
http://www.facebook.com/blog.php?post=79988352130
http://www.facebook.com/note.php?note_id=350494470160
http://www.facebook.com/terms.php
http://www.fb-aplikacje.com/
http://www.fb-aplikacje.com/canvas++iframe++czy+fbml+,s6.html?i16s5
http://www.fb-aplikacje.com/konfiguracja+aplikacji,s5.html?i15s4
http://www.fb-aplikacje.com/nowa+wersja+zapraszania++fbjs+,s9.html?i19s8
http://www.fb-aplikacje.com/odpalamy+api,s7.html?i17s6
http://www.fb-aplikacje.com/zapraszanie+znajomych,s8.html?i18s7
http://www.insidefacebook.com/2010/08/19/facebook-moving-toward-iframes-over-fbml-for-canvas-apps-and-page-tabs/
http://www.joeyrivera.com/2010/facebook-graph-api-app-easy-w-php-sdk/
http://www.keebler.net/blog/2007/06/02/facebook-application-basics/
http://www.labnol.org/internet/tutorial-write-a-facebook-application/10116/
http://www.merchantos.com/2007/07/facebook-php-tutorial/
http://www.out.com.pl/2011/03/jak-sie-legalnie-promowac-na-facebooku/
http://www.python.rk.edu.pl/w/p/tworzenie-aplikacji-facebookowych/
http://www.seoish.com/facebook-app-canvas-pages-open-to-public/
http://www.simoncross.com/fb/graph/
http://www.slideshare.net/cbetta/facebook-app-development-presentation
http://www.socialmediaexaminer.com/top-10-facebook-apps-for-building-custom-pages-tabs/
http://www.socialscore.pl/component/k2/item/27-aplikacje-facebook.html
https://apps.facebook.com/155790684515445/
https://developers.facebook.com/apps
https://developers.facebook.com/apps/155790684515445
https://developers.facebook.com/apps/155790684515445/advanced?save=1
https://developers.facebook.com/apps/155790684515445/summary?save=1
https://developers.facebook.com/blog/post/493/
https://developers.facebook.com/blog/post/560
https://developers.facebook.com/docs/beta/opengraph/
wiki.developers.facebook.com/index.php/API
wiki.developers.facebook.com/index.php/FBJS
wiki.developers.facebook.com/index.php/FBML
wiki.developers.facebook.com/index.php/FQL
wiki.developers.facebook.com/index.php/Facebook_Connect
http://stackoverflow.com/questions/2966015/facebook-get-list-of-pages-that-a-user-is-admin-of
http://thinkdiff.net/facebook/graph-api-javascript-base-facebook-connect-tutorial/ **
http://developers.facebook.com/docs/opengraph/
http://www.hyperarts.com/blog/how-to-add-facebook-like-button-social-plugins-to-wordpress-posts/
http://thinkdiff.net/demo/newfbconnect1/newconnect.php
http://developers.facebook.com/docs/reference/api/user/
http://www.hyperarts.com/blog/how-to-add-facebook-like-button-social-plugins-to-wordpress-posts/
http://www.fb-developers.info/tech/fb_dev/faq/connect/index.php
http://thinkdiff.net/facebook/graph-api-javascript-base-facebook-connect-tutorial/
http://developers.facebook.com/docs/reference/fql/
http://developers.facebook.com/docs/reference/dialogs/
https://developers.facebook.com/blog/post/549
http://developers.facebook.com/blog/post/500
http://developers.facebook.com/docs/authentication/
http://www.fb-developers.info/tech/fb_dev/faq/
https://developers.facebook.com/docs/reference/javascript/
http://developers.facebook.com/docs/fbjs/
http://www.fb-aplikacje.com/nowa+wersja+zapraszania++fbjs+,s9.html **
http://kreska.ar5.pl/b-log/podpowiedzi/fbjs-i-animacje-czyli-slider-na-fb,1662.html
http://thinkclay.com/technology/getting-started-with-facebook-js-fbjs
http://fbmhell.com/2010/11/facebook-fbjs-examples/
http://facebook-api.pl/tag/fbjs/
http://prez.wordpress.com/2006/10/16/facebook-has-a-post-limit/
http://blog.programmableweb.com/2009/10/15/facebook-lets-you-easily-integrate-into-sites-and-widgets-with-new-create-application-api/
http://www.slideshare.net/onitz/fancy-facebook-fan-pages-a-step-by-step-guide
http://facebook-api.pl/tag/fbjs/ **
http://blog.webdistortion.com/2010/03/22/7-fbml-examples-to-rock-your-facebook-fan-page/ **
http://www.socialmediaexaminer.com/how-to-customize-your-facebook-page-using-static-fbml/
http://www.slideshare.net/josephscott/fbml-facebook-markup-language
http://www.web-tutorials.pl/index.php/tutoriale/jak-stworzyc-strone-fbml-na-facebooku/
http://blog.webdistortion.com/2011/10/02/60-educational-resources/
http://www.coderetard.com/wp-content/uploads/2008/03/fbml.pdf **
http://www.dvd-photo-slideshow.com/pdf-files-dvd-photo-slideshow/insert-and-embed-SWF-Flash-file-into-Facebook.pdf
http://www.princessdesign.net/wp/wp-content/files/facebook-fbml-cheat-sheet.pdf
http://users.iit.uni-miskolc.hu/~szabo62/other/ebooks/FBML%20Essentials.pdf
http://pathfindersoftware.com/2008/01/20-useful-faceb/
http://developers.facebook.com/docs/fbjs/
http://www.slideshare.net/onitz/fancy-facebook-fan-pages-a-step-by-step-guide


http://graph.facebook.com/filipgorczynski
Testowy facebook – "Bogdan Testowy":     c378901@bofthew.com / 11merix11


window.onload in FBJS
Instead of using window.onload to initialize your functions, use setTimeout.
setTimeout( function(){  }, 10 );


alert alternative for FBJS
Since you can’t use alert or document.write, use Facebook’s dialog box:
new Dialog().showMessage('Dialog', 'This is text');



Wszystkie uprawnienia:
user_about_me,friends_about_me,user_activities,friends_activities,user_birthday,friends_birthday,user_checkins,friends_checkins,user_education_history,friends_education_history,user_events,friends_events,user_groups,friends_groups,user_hometown,friends_hometown,user_interests,friends_interests,user_likes,friends_likes,user_location,friends_location,user_notes,friends_notes,user_online_presence,friends_online_presence,user_photo_video_tags,friends_photo_video_tags,user_photos,friends_photos,user_relationships,friends_relationships,user_relationship_details,friends_relationship_details,user_religion_politics,friends_religion_politics,user_status,friends_status,user_videos,friends_videos,user_website,friends_website,user_work_history,friends_work_history,email

Publish Wall Post | Share With Your Friends | Publish Stream Using Graph API | FQL Query Example


Aby pobrać kilka szczegółów nt administratora można wykorzystać: http://graph.facebook.com/filipgorczynski
Facebook domains:
https://api.facebook.com/
https://api-video.facebook.com/
https://api-read.facebook.com/
https://graph.facebook.com/
https://www.facebook.com/

All objects in Facebook can be accessed in the same way:
Users: https://graph.facebook.com/btaylor (Bret Taylor)
Pages: https://graph.facebook.com/cocacola (Coca-Cola page)
Events: https://graph.facebook.com/251906384206 (Facebook Developer Garage Austin)
Groups: https://graph.facebook.com/195466193802264 (Facebook Developers group)
Applications: https://graph.facebook.com/2439131959 (the Graffiti app)
Status messages: https://graph.facebook.com/367501354973 (A status message from Bret)
Photos: https://graph.facebook.com/98423808305 (A photo from the Coca-Cola page)
Photo albums: https://graph.facebook.com/99394368305 (Coca-Cola's wall photos)
Profile pictures: http://graph.facebook.com/filipgorczynski/picture (your profile picture)
Videos: https://graph.facebook.com/817129783203 (A Facebook tech talk on Graph API)
Notes: https://graph.facebook.com/122788341354 (Note announcing Facebook for iPhone 3.0)
Checkins: https://graph.facebook.com/414866888308 (Check-in at a pizzeria)

You can render the current profile photo for any object by adding the suffix /picture to the object URL. For example, this will render your public profile photo:
<img src="https://graph.facebook.com/filipgorczynski/picture"/>
The same URL pattern works for all objects in the graph:
People: http://graph.facebook.com/filipgorczynski/picture
Events: http://graph.facebook.com/331218348435/picture
Groups: http://graph.facebook.com/69048030774/picture
Pages: http://graph.facebook.com/DoloresPark/picture
Applications: http://graph.facebook.com/2318966938/picture
Photo Albums: http://graph.facebook.com/platform/picture

When querying connections, there are several useful parameters that enable you to filter and page through connection data:
limit, offset: https://graph.facebook.com/me/likes?limit=3
until, since (a unix timestamp or any date accepted by strtotime): https://graph.facebook.com/search?until=yesterday&q=orange

You can search over all public objects in the social graph with https://graph.facebook.com/search. The format is:
https://graph.facebook.com/search?q=QUERY&type=OBJECT_TYPE
We support search for the following types of objects:
All public posts: https://graph.facebook.com/search?q=watermelon&type=post
People: https://graph.facebook.com/search?q=mark&type=user
Pages: https://graph.facebook.com/search?q=platform&type=page
Events: https://graph.facebook.com/search?q=conference&type=event
Groups: https://graph.facebook.com/search?q=programming&type=group
Places: https://graph.facebook.com/search?q=coffee&type=place&center=37.76,122.427&distance=1000
Checkins: https://graph.facebook.com/search?type=checkin
thinkdiff.net/facebook/php-sdk-3-0-graph-api-base-facebook-connect-tutorial/
http://www.fb-developers.info/tech/fb_dev/faq/
http://www.fb-developers.info/tech/fb_dev/tutorial/index.php
http://www.fb-developers.info/tech/fb_dev/faq/dataaccess/index.php
http://www.fb-developers.info/tech/fb_dev/faq/fbml/index.php
http://www.fb-developers.info/tech/fb_dev/faq/iframe_app/index.php
http://www.fb-developers.info/tech/fb_dev/faq/graphapi/index.php
http://www.fb-developers.info/tech/fb_dev/faq/fql/index.php




All of the objects in the Facebook social graph are connected to each other via relationships. Bret Taylor is a fan of the Coca-Cola page, and Bret Taylor and Arjun Banker are friends. We call those relationships connections in our API. You can examine the connections between objects using the URL structure https://graph.facebook.com/ID/CONNECTION_TYPE. The connections supported for people and pages include:
Friends: https://graph.facebook.com/me/friends?access_token=...
News feed: https://graph.facebook.com/me/home?access_token=...
Profile feed (Wall): https://graph.facebook.com/me/feed?access_token=...
Likes: https://graph.facebook.com/me/likes?access_token=...
Movies: https://graph.facebook.com/me/movies?access_token=...
Music: https://graph.facebook.com/me/music?access_token=...
Books: https://graph.facebook.com/me/books?access_token=...
Notes: https://graph.facebook.com/me/notes?access_token=...
Permissions: https://graph.facebook.com/me/permissions?access_token=...
Photo Tags: https://graph.facebook.com/me/photos?access_token=...
Photo Albums: https://graph.facebook.com/me/albums?access_token=...
Video Tags: https://graph.facebook.com/me/videos?access_token=...
Video Uploads: https://graph.facebook.com/me/videos/uploaded?access_token=...
Events: https://graph.facebook.com/me/events?access_token=...
Groups: https://graph.facebook.com/me/groups?access_token=...
Checkins: https://graph.facebook.com/me/checkins?access_token=...

To get additional information about a user, you must first get their permission. At a high level, you need to get an access token for the Facebook user. After you obtain the access token for the user, you can perform authorized requests on behalf of that user by including the access token in your Graph API requests:
https://graph.facebook.com/220439?access_token=...
For example https://graph.facebook.com/btaylor?access_token=... (Bret Taylor) returns additional information about Bret Taylor.





The Open Graph Protocol enables you to integrate your Web pages into the social graph. It is currently designed for Web pages representing profiles of real-world things — things like movies, sports teams, celebrities, and restaurants. Including Open Graph tags on your Web page, makes your page equivalent to a Facebook Page. This means when a user clicks a Like button on your page, a connection is made between your page and the user. Your page will appear in the "Likes and Interests" section of the user's profile, and you have the ability to publish updates to the user. Your page will show up in the same places that Facebook pages show up around the site (e.g. search), and you can target ads to people who like your content. The structured data you provide via the Open Graph Protocol defines how your page will be represented on Facebook.
To turn your web pages into graph objects, you'll need to add Open Graph protocol <meta> tags and the Like button to your webpages.
The tags allow you to specify structured information about your web pages. The more information you provide, the more opportunities your web pages can be surfaced within Facebook today and in the future. Here's an example for a movie page:
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og="http://ogp.me/ns#"
      xmlns:fb="http://www.facebook.com/2008/fbml">
  <head>
    <title>The Rock (1996)</title>
    <meta property="og:title" content="The Rock"/>
    <meta property="og:type" content="movie"/>
    <meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
    <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
    <meta property="og:site_name" content="IMDb"/>
    <meta property="fb:admins" content="USER_ID"/>
    <meta property="og:description"
          content="A group of U.S. Marines, under command of
                   a renegade general, take over Alcatraz and
                   threaten San Francisco Bay with biological
                   weapons."/>
    ...
  </head>
  ...
</html>
The Open Graph protocol defines four required properties:
    og:title - The title of your object as it should appear within the graph, e.g., "The Rock".
    og:type - The type of your object, e.g., "movie". See the complete list of supported types.
    og:image - An image URL which should represent your object within the graph. The image must be at least 50px by 50px and have a maximum aspect ratio of 3:1. We support PNG, JPEG and GIF formats. You may include multiple og:image tags to associate multiple images with your page.
    og:url - The canonical URL of your object that will be used as its permanent ID in the graph, e.g., http://www.imdb.com/title/tt0117500/.
In addition, we've extended the basic meta data to add a required field to connect your webpage with Facebook:
    fb:app_id - A Facebook Platform application ID that administers this page.
It's also recommended that you include the following properties as well as these multi-part properties.
    og:site_name - A human-readable name for your site, e.g., "IMDb".
    og:description - A one to two sentence description of your page.
If a user likes your URL using a Like button, a News Feed story similar to the one below will be published to Facebook. The og:title links to og:url and the og:site_name is rendered pointing to your site's domain automatically.
On a user's profile, og:type defines which category your link will appear within; og:image is the image thumbnail.
There are many tools to ensure you put the <meta> tags correctly on your page.

    The official Facebook URL Linter which uses the same code that we use for the Like button and other Open Graph Protocol consumption. Therefore, it gives you the closest possible match as to how we will treat your page when we crawl it in production.



We are in the process of deprecating the REST API. If you are building a new Facebook application, please use the Graph API. While there is still functionality that we have not ported over yet, the Graph API is the center of Facebook Platform moving forward and where all new features will be found.
Generate One Time Token to generate Session key
https://login.facebook.com/code_gen.php?api_key=155790684515445&v=1.0
Generate one time session key (permanent session key)
<?php
// FB_APIKEY is your facebook application api key
// FB_SECRET is your application secrete key
$FB_APIKEY="YOUR_API";
$FB_SECRET="YOUR_SECRET";
$fb = new FacebookRestClient($FB_APIKEY, $FB_SECRET);
$testtoken= "ONETIMETOKEN"; // Replace this value with your Token Value
$result = $fb->call_method('facebook.auth.getSession',
array('auth_token' => $testtoken, 'generate_session_secret' => true));
echo "<br /><pre>";
print_r($result);
echo $session_key = $result['session_key'];
?>
OR
http://www.facebook.com/login.php?api_key=YOURAPIKEY&connect_display=popup&v=1.0&next=http://www.facebook.com/connect/login_success.html&cancel_url=http://www.facebook.com/connect/login_failure.html&fbconnect=true&return_session=true&session_key_only=true&req_perms=read_stream,publish_stream,offline_access
http://www.facebook.com/login.php?api_key=APIKEYXxxxxxxxxxxxxxxxxx&connect_display=popup&v=1.0&next=http://www.facebook.com/connect/login_success.html&cancel_url=http://www.facebook.com/connect/login_failure.html&fbconnect=true&return_session=true&req_perms=read_stream,publish_stream,offline_access
Publishing:
<?php
define('FB_APIKEY', 'YOUR_APIKEY');
define('FB_SECRET', 'YOUR_SECRET');
define('FB_SESSION', 'YOUR_SESSION_key');
require_once('facebook-platform/php/facebook.php');
echo "post on wall";
try {
    $facebook = new Facebook(FB_APIKEY, FB_SECRET);
    $facebook->api_client->session_key = FB_SESSION;
    $fetch = array('friends' =>
    array('pattern' => '.*',
    'query' => "select uid2 from friend where uid1={$user}"));
    echo $facebook->api_client->admin_setAppProperties(array('preload_fql' => json_encode($fetch)));
    $message = 'From My App: publish steven on facebook';
    if( $facebook->api_client->stream_publish($message))
    echo "Added on FB Wall";
} catch(Exception $e) {
    echo $e . "<br />";
}
?>


Zakazane są przede wszystkim zabawy, które wymuszają na użytkowniku wykorzystywanie natywnych funkcji serwisu, a więc polubienia wpisu, publikowania zdjęć czy zamieszczania postów na tablicy. Podobne obostrzenia dotyczą prezentacji listy zwycięzców, która nie może pojawić się jako wpis na tablicy, czy prywatna wiadomość wysyłana do uczestników serwisu. Regulaminowe obostrzenia nie dotyczą jednak zewnętrznych aplikacji zintegrowanych z firmowym profilem.
Z prawnego punktu widzenia aplikacje pobierające dane użytkowników serwisu powinny spełniać podstawowe warunki bezpieczeństwa, takie jak rejestracja bazy danych osobowych w GIODO. Równie istotnym problemem jest zgodność przetwarzania, przechowywania i wykorzystywania zgromadzonych danych zgodnie z obowiązującą ustawą. Takie zasady powinny być szczegółowo sprecyzowane w regulaminie stanowiącym obowiązkowy element każdej aplikacji.
Do często pojawiających się pytań związanych z organizowaniem akcji promocyjnych należy zaliczyć problem związany z legalnością podjętych działań. Sposób przeprowadzania konkursów i akcji promocyjnych za pośrednictwem Facebooka jest jasno określony w regulaminie serwisu. Przy wykorzystywaniu funkcji Facebooka niezgodnie z regulaminem możemy się narazić na utratę naszego konta czy też strony.
Częstym błędem przy promocji firm jest tworzenie profili firmowych. Profile są przeznaczone dla osób fizycznych. To właśnie fikcyjne profile są najczęściej usuwane przez administratorów.
Aby nie narazić się administratorom Facebooka nie możemy wykorzystywać tzw. funkcji natywnych serwisu do celów promocyjnych. Jakiekolwiek proponowanie internautom nagród za polecanie strony, dodawanie zdjęć i lub znaczników „lubię to!” jest naruszeniem regulaminu. Żeby legalnie móc wykorzystywać tego typu funkcje trzeba mieć do tego przygotowaną aplikację.
Właściwie skonstruowane programy powinny zawierać intro, gdzie użytkownik wyrazi zgodę na pobieranie swoich danych, a tym samym otrzyma dostęp do aplikacji.
Tu również pojawia się regulamin precyzujący zasady zabawy w skróconej formie, stanowiący jednocześnie odnośnik do jego pełnej wersji.
Klienci biznesowi coraz chętniej wykorzystują natomiast aplikacje wzbogacone o funkcje geolokalizacji oraz formularz kontaktowy

Tworzenie aplikacji wymaga weryfikacji konta numerem telefonu oraz akceptacji instalacji
Canvas URL that contains the HTML, JavaScript and CSS that make up your app
When a user requests the Canvas Page, we load the Canvas URL within an iframe on that page
For example, suppose that you have a web app available at http://www.example.com/canvas. This is your Canvas URL. When you setup your app on Facebook, you must specify a Canvas Page name that is appended to http://apps.facebook.com/
When the user navigates to http://apps.facebook.com/your_app in their browser, they will see the contents of http://www.example.com/canvas loaded inside of Facebook.com.
Because your app is loaded in the context of Facebook, you must be aware of certain size constraints when designing your user interface. You can manage settings for the size of your iframe in the Dev App, in the Advanced Tab under Canvas settings.
You can change the height of the iframe by calling the FB.Canvas.setSize() method to fit your content. You can also call FB.Canvas.setAutoResize() to enable the ‘Auto-resize’ functionality where we will poll for the height of your content and adjust the height of the parent iframe to match accordingly. Note these method only work with Canvas Height set to Settable

Najważniejszy fragment to $facebook->require_login(), który daje znać aby tylko zalogowani użytkownicy mieli dostęp do tej aplikacji. Niezalogowany użytkownik zostanie przekierowany do strony logowania i z powrotem do naszej aplikacji.

Social Discovery
Social Discovery to funkcja Facebooka która wyświetla znajomym danego użytkownika informację o tym, że zaczął używać naszej aplikacji. Z uwagi na fakt, że jest to znaczące źródło ruchu w aplikacjach warto poświęcić trochę czasu na stworzenie ciekawego opisu (Description) i atrakcyjnego graficznie logo konkursu.


Additionally if you use PHP SDK 3.0 or this new way of javascript sdk to authenticate your site you can enable oAuth Migration in the application setting.

Przy próbie utworzenia aplikacji fb-sandbox otrzymujemy komunikat:
Our system has detected that App Name contains a disallowed use of the term "fb". Our policies prohibit use of Facebook trademarks as well as marks that may be dilutive or confusingly similar to Facebook's trademarks. If you believe your application name is being blocked in error, please contact us and explain the nature and scope of your application.
więc może nie dać rady stworzyć aplikacji z FB w nazwie.
Należy włączyć tryb piaskownicy w Ustawieniach zaawansowanych (zanim nie skończymy pisać aplikacji)


Facebook Platform uses the OAuth 2.0 protocol for authentication and authorization.
Facebook Platform supports two different OAuth 2.0 flows for user login: server-side (known as the authentication code flow in the specification) and client-side (known as the implicit flow)
The server-side flow is used whenever you need to call the Graph API from your web server. The client-side flow is used when you need to make calls to the Graph API from a client, such as JavaScript running in a Web browser or from a native mobile or desktop app
https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL
By default, the user is asked to authorize the app to access basic information that is available publicly or by default on Facebook. If your app needs more than this basic information to function, you must request specific permissions from the user. This is accomplished by adding a scope parameter to the OAuth Dialog request followed by comma separated list of the required permissions. The following example shows how to ask for access to user's email address and their news feed:
https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&scope=email,read_stream
(http://developers.facebook.com/docs/reference/api/permissions/)
http://YOUR_URL?code=A_CODE_GENERATED_BY_SERVER
https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&client_secret=YOUR_APP_SECRET&code=THE_CODE_FROM_ABOVE

administrator aplikacji - publikowanie wpisów na tablicy
publish_stream - pozwala na publikowanie wpisów
manage_pages - pozwala aplikacji na uzyskiwanie tokenów (access_token) dla stron administrowanych przez użytkownika; będzie nam to potrzebne do uzyskania dostępu do strony bez konieczności logowania się do konta użytkownika
offline_access - pozwala aplikacji na wykonywanie operacji w imieniu użytkownika bez konieczności jego logowania do Facebooka; w praktyce oznacza to, ze tokeny (access_token) otrzymane przez aplikację nigdy nie wygasają.

-----------
FB API
1] FBML/XFBML (<fb:name uid="12345" capitalize="true" />)
2] FQL (SELECT name, pic FROM user WHERE uid = 12345)
3] FBJS
Integration Points
  Canvas pages
    Canvas
      1) Browser makes request
      2) FB Server calls web server
      3) FB Calls FB API (optional)
      4) App returns FBML
      5) Facebook renders FBML to HTML

    Tab
    Attachment
  Asynchronous FBML
    Profile box
    Info tab box
    Boxes Tab

Create a new app and get API key, Secret...
Setup application canvas with API key

Facebook API communication
- traditional REST calls
- You send GET/POST communication via a URL, Facebook returns an XML/JSON response
- Certain calls require authentication
- app requires API Key, some time private key

Social Integration points:
- canvas page
- profile box
- wall
  - news feed
- publisher
- notifications
- requests
- tabs

API facebooka (Graph API, FBML, XFBML i FBJS)
1) dodawanie komentarza na stronie automatycznie dodanie na Facebook

TOP applications:
http://www.techdigest.tv/2007/07/the_101_best_fa.html
http://www.readwriteweb.com/archives/top_10_facebook_apps_work.php
http://mashable.com/2009/01/22/business-facebook-apps/
http://tech.blorge.com/Structure:%20/2008/10/12/top-40-most-useful-and-interesting-facebook-applications/

Canvas Width:	Stała (760px), Zmienna
Canvas Height:	Możliwość ustawienia (domyślnie: 800 piks.), Zmienna
Social Discovery:	WłączoneWyłączone

application name - nazwa aplikacja widziana w katalogu aplikacji, wykorzystywana także do wyszukiwania aplikacji
Canvas URL = adres, pod którym dostępna będzie aplikacja FB
Callback URL (Optional Fields) - lokalizacja aplikacji w PHP umieszczonej na naszym serwerze

Warning
Secure Canvas URL will be required on October 1, 2011.


In this document we will explain the following concepts:

    [X] Canvas Page: The Page in which your app is loaded.
    [X] Social Channels: The key channels that help you grow your user base and re-engage existing users.
    [X] Analytics: Accessing analytics for your application.


App ID: 	155790684515445
App Secret: 	e5d84b6bf9d58bb67928e5ba6e4830d5


Facebook Query Language, or FQL, enables you to use a SQL-style interface to query the data exposed by the Graph API. It provides for some advanced features not available in the Graph API, including batching multiple queries into a single call.
You can execute FQL queries by fetching https://api.facebook.com/method/fql.query?query=QUERY. You can specify a response format as either XML or JSON with the format query parameter.


FQL:
Tables
album - Query this table to return information about a photo album.
application - Query this table to return read-only properties about an application.
apprequest - An FQL table containing the requests sent via an app to a user.
checkin - Query this table to return information about a checkin. By default, this query returns the last 20 checkins and returns a maximum of 500 checkins.
comment - Query this table to obtain comments associated with one or more [fb:comments]
comments_info - The comments_info FQL table. Query this table to obtain XIDs for fb:comments objects associated with an application ID.
connection - Query this table to return a user's friends and the Facebook Pages to which the user is connected.
cookies - Query this table to return information about a cookie.
developer - Query this table to return the application IDs for which the specified user is listed as a developer in the Developer application.
domain - The domain table provides a read-only mapping between domain names and ids.
domain_admin - Query this table to return information about the admin of a domain.
event - Query this table to return information about an event.
event_member - Query this table to return information about a user's status for an event or see a list of events for a user.
family - Query this table to return detailed information about a user's family.
friend - Query this table to determine whether two users are linked together as friends.
friend_request - Query this table either to determine which users have sent friend requests to the logged-in user or to query whether a friend request has been sent from the logged-in user to a specific user.
friendlist - Query this table to return any friend lists owned by the specified user.
Friendlist_member - Query this table to determine which users are members of a friend list.
group - Query this table to return information about a group.
group_member - Query this table to return information about the members of a group, or retrieve a list of groups of which a user is a member
insights - The insights table contains statistics about applications, pages and domains
like - Query this table to return the user IDs of users who like a given Facebook object (video, note, link, photo, or album).
link - Query this table to return the links the current user has posted.
link_stat - The link_stat table contains counts that show how users on Facebook are interacting with a given link.
mailbox_folder - The mailbox_folder table contains information about a user's mailbox folders.
message - Query this table to return information about messages in a thread.
note - Query this table to return the notes the current user has written or to return details for a particular note.
notification - Query this table to get the notifications for the current session user, that is, any notification that appears on http://www.facebook.com/notifications.php.
object_url - Query this table to return information about a URL in the Open Graph
page - Query this table to return information about a Facebook Page.
page_admin - Query this table to return information about which Facebook Pages the user Admins.
page_blocked_user - An FQL table that can be used to return a list of a users that are blocked from a Facebook Page.
page_fan - Query this table to return information about the user who likes a Facebook Page.
permissions - Query this table to return the permissions the current user has granted to the app.
permissions_info - Query this table to return more descriptive information about extended permissions.
photo - Query this table to return information about a photo.
photo_tag - Query this table to return information about a photo tag.
place - Query this table to return information about a place.
privacy - Query this table to return a user's privacy setting for a given object_id.
profile - Query this table to return certain (typically publicly) viewable information for a profile.
review -
Query this table to obtain reviews associated with an application, a user or both.
standard_friend_info -
Query this table to determine whether two users are linked together as friends.
standard_user_info -
Query this table to return standard information about a user, for use when you need analytic information only.
status -
Query this table to return one or more of a user's statuses.
stream -
Query this table to return posts from a user's stream or the user's profile.
stream_filter -
Query this table to return a filter_key that can be used to query the stream FQL table, as seen through any content filters the user has available on Facebook.
stream_tag -
Query this table to return associations between users or Facebook Pages and the items they tag in status posts.
thread -
Query this table to return information about message threads in a user's Inbox.
translation -
Query this table to return the native strings (original, untranslated text in your application interface) and the translated strings for your application.
unified_message -
This table can be used to access information about messages in the new Facebook messaging system.
unified_thread -
This table can be used to access information about threads in the new Facebook messaging system.
unified_thread_action
This table should be used to access information about subscribe and unsubscribe actions performed on a thread in the new Facebook messaging system.
unified_thread_count
This table should be used to access information about the number of threads in a folder in the new Facebook messaging system.
url_like
An FQL table containing the Open Graph URLs that the current session user has Liked.
user
Query this table to return detailed information from a user's profile.
video
The video table contains information about videos.
video_tag
The video_tag table contains information about users tagged in videos.





What API methods can I call without a session?
We're keeping a running list of methods that no longer require a session key on the Developer Wiki. However, the list isn't complete as it doesn't include those API calls that we haven't changed yet. So here's the current list of API calls that won't require a session key as of July 15.
    Auth.createToken
    Auth.getSession
    Fbml.refreshImgSrc
    Fbml.refreshRefUrl
    Fbml.setRefHandle
    Marketplace.createListing
    Marketplace.getCategories
    Marketplace.getSubCategories
    Marketplace.removeListing
    Notifications.send
    Notifications.sendEmail
    Pages.getInfo
    Pages.isAppAdded
    Photos.addTag
    Photos.createAlbum
    Photos.upload
    Profile.getFBML
    Profile.setFBML
    Users.hasAppPermission
    Users.isAppUser
    Users.setStatus
