/admin/keys/facebook_keys_twextra.php

https://github.com/raj4126/twextra · PHP · 129 lines · 2 code · 6 blank · 121 comment · 0 complexity · 30d2a7293020420dd8fe2ec4d5956158 MD5 · raw file

  1. <?php
  2. /*
  3. http://developers.facebook.com/setup/done?id=144934438868111&locale=en_US
  4. Facebook DevelopersDocumentationForumShowcaseBlog
  5. Create an Application
  6. Settings
  7. Twextra is now registered with Facebook. You can edit your application settings at any time in your Developer Dashboard.
  8. App Name: Twextra
  9. App URL: http://twextra.com/
  10. App ID: 144934438868111
  11. App Secret: 7fbd7dd5e754d201e3e59ee06fca7887
  12. Sample Code
  13. <!DOCTYPE html>
  14. <html xmlns="http://www.w3.org/1999/xhtml"
  15. xmlns:fb="http://www.facebook.com/2008/fbml">
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  18. <title>Twextra</title>
  19. </head>
  20. <body>
  21. <h1>Twextra</h1>
  22. <p><fb:login-button autologoutlink="true"></fb:login-button></p>
  23. <p><fb:like></fb:like></p>
  24. <div id="fb-root"></div>
  25. <script>
  26. window.fbAsyncInit = function() {
  27. FB.init({appId: '144934438868111', status: true, cookie: true,
  28. xfbml: true});
  29. };
  30. (function() {
  31. var e = document.createElement('script');
  32. e.type = 'text/javascript';
  33. e.src = document.location.protocol +
  34. '//connect.facebook.net/en_US/all.js';
  35. e.async = true;
  36. document.getElementById('fb-root').appendChild(e);
  37. }());
  38. </script>
  39. </body>
  40. </html>
  41. Next Steps
  42. You can add more cut-and-paste social functionality to your site with social plugins like the Like button in the sample above.
  43. To incorporate the active user's profile and friends into your server-side code, you should use the Graph API. We support a number of SDKs to make that process easier:
  44. * PHP SDK
  45. * Python SDK
  46. * iPhone SDK
  47. Check out the getting started guide for more information.
  48. Facebook © 2010
  49. AboutPrinciples & PoliciesPrivacy Policy
  50. */
  51. ?>