Permalink
Browse files

Dialog Tutorial

  • Loading branch information...
1 parent 2fcea57 commit e38922b9b68b8709f7cb850eeae59fb7c1bcdc03 @mschakulat committed Dec 12, 2010
Showing with 47 additions and 0 deletions.
  1. +18 −0 dialogs/feed-js.php
  2. +11 −0 dialogs/feed.php
  3. +8 −0 dialogs/friend.php
  4. +9 −0 dialogs/oauth.php
  5. +1 −0 dialogs/redirect_uri.php
View
@@ -0,0 +1,18 @@
+<html>
+ <body>
+ <script src="http://connect.facebook.net/de_DE/all.js"></script>
+ <div id="fb-root"></div>
+ <script>
+ // assume we are already logged in
+ FB.init({appId: '125209680874919', xfbml: true, cookie: true});
+
+ FB.ui({
+ method: 'feed',
+ name: 'AboutTheWeb',
+ description: 'Facebook Anwendungen erstellen',
+ link: 'http://www.abouttheweb.de/',
+ picture: 'http://www.abouttheweb.de/wp-content/themes/abouttheweb/img/atw-meta-image.jpg'
+ });
+ </script>
+ </body>
+</html>
View
@@ -0,0 +1,11 @@
+<?php
+$feed = "http://www.facebook.com/dialog/feed/?"
+ . "app_id=125209680874919&"
+ . "name=AboutTheWeb&"
+ . "description=Facebook Anwendungen erstellen&"
+ . "link=http://www.abouttheweb.de/&"
+ . "picture=http://www.abouttheweb.de/wp-content/themes/abouttheweb/img/atw-meta-image.jpg&"
+ . "redirect_uri=http://apps.facebook.com/atw-dialogs/redirect_uri.php";
+
+print '<a href="' . $feed . '" target="_parent">Feed Dialog</a>';
+?>
View
@@ -0,0 +1,8 @@
+<?php
+$friend = "http://www.facebook.com/dialog/friends/?"
+ . "id=brent&"
+ . "app_id=125209680874919&"
+ . "redirect_uri=http://apps.facebook.com/atw-dialogs/redirect_uri.php";
+
+print '<a href="' . $friend . '" target="_parent">Friend Dialog</a>';
+?>
View
@@ -0,0 +1,9 @@
+<?php
+$oauth = "http://www.facebook.com/dialog/oauth/?"
+ . "scope=email,user_birthday&"
+ . "client_id=125209680874919&"
+ . "redirect_uri=http://apps.facebook.com/atw-dialogs/redirect_uri.php&"
+ . "response_type=token";
+
+print '<a href="' . $oauth . '" target="_parent">Oauth Dialog</a>';
+?>
View
@@ -0,0 +1 @@
+Ich bin die redirect_uri Datei.

0 comments on commit e38922b

Please sign in to comment.