/doc/modules/mod_facebook/m_facebook.html

http://github.com/zotonic/zotonic · HTML · 60 lines · 50 code · 10 blank · 0 comment · 0 complexity · 4aea1039563edaa14b7e0b74793de000 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Module m_facebook</title>
  5. <link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
  6. </head>
  7. <body bgcolor="white">
  8. <div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
  9. <hr>
  10. <h1>Module m_facebook</h1>
  11. <ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>Model for accessing facebook data via the graph api.
  12. <p>Copyright Š 2011 Maas-Maarten Zeeman
  13. </p>
  14. <p><b>Behaviours:</b> <a href="gen_model.html"><tt>gen_model</tt></a>.</p>
  15. <p><b>Authors:</b> Maas-Maarten Zeeman (<a href="mailto:mmzeeman@xs4all.nl"><tt>mmzeeman@xs4all.nl</tt></a>).</p>
  16. <h2><a name="description">Description</a></h2>Model for accessing facebook data via the graph api.
  17. <h2><a name="index">Function Index</a></h2>
  18. <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#do_graph_call-5">do_graph_call/5</a></td><td>Do a facebook graph call.</td></tr>
  19. <tr><td valign="top"><a href="#m_find_value-3">m_find_value/3</a></td><td>Fetch the value for the key from a model source.</td></tr>
  20. <tr><td valign="top"><a href="#m_to_list-2">m_to_list/2</a></td><td>Transform a m_config value to a list, used for template loops.</td></tr>
  21. <tr><td valign="top"><a href="#m_value-2">m_value/2</a></td><td>Transform a model value so that it can be formatted or piped through filters.</td></tr>
  22. <tr><td valign="top"><a href="#search-3">search/3</a></td><td>Return the search as used by z_search and the search model.</td></tr>
  23. </table>
  24. <h2><a name="functions">Function Details</a></h2>
  25. <h3 class="function"><a name="do_graph_call-5">do_graph_call/5</a></h3>
  26. <div class="spec">
  27. <p><tt>do_graph_call(Method, Id, Connection, Args, Context) -&gt; any()</tt></p>
  28. </div><p>Do a facebook graph call. See http://developers.facebook.com/docs/reference/api/ for more info
  29. </p>
  30. <h3 class="function"><a name="m_find_value-3">m_find_value/3</a></h3>
  31. <div class="spec">
  32. <p><tt>m_find_value(CT::Key, M::Source, Context) -&gt; term()</tt></p>
  33. </div><p>Fetch the value for the key from a model source</p>
  34. <h3 class="function"><a name="m_to_list-2">m_to_list/2</a></h3>
  35. <div class="spec">
  36. <p><tt>m_to_list(X1::Source, Context) -&gt; []</tt></p>
  37. </div><p>Transform a m_config value to a list, used for template loops</p>
  38. <h3 class="function"><a name="m_value-2">m_value/2</a></h3>
  39. <div class="spec">
  40. <p><tt>m_value(M::Source, Context) -&gt; term()</tt></p>
  41. </div><p>Transform a model value so that it can be formatted or piped through filters</p>
  42. <h3 class="function"><a name="search-3">search/3</a></h3>
  43. <div class="spec">
  44. <p><tt>search(X1, OfffsetLimit, Context) -&gt; any()</tt></p>
  45. </div><p>Return the search as used by z_search and the search model.</p>
  46. <hr>
  47. <div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
  48. <p><i>Generated by EDoc, Oct 13 2011, 14:45:57.</i></p>
  49. </body>
  50. </html>