extensibleclient.html

来自「A Facebook API client implemented in Jav」· HTML 代码 · 共 1,085 行 · 第 1/5 页

HTML
1,085
字号
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the public information about the specified application, by API key.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html" title="type parameter in ExtensibleClient">T</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#application_getPublicInfoByCanvasName(java.lang.String)">application_getPublicInfoByCanvasName</A></B>(java.lang.String&nbsp;applicationCanvas)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the public information about the specified application, by canvas-page name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html" title="type parameter in ExtensibleClient">T</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#application_getPublicInfoById(java.lang.Long)">application_getPublicInfoById</A></B>(java.lang.Long&nbsp;applicationId)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the public information about the specified application, by application id.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#auth_createToken()">auth_createToken</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call this function and store the result, using it to generate the appropriate login url and then to retrieve the session information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#auth_expireSession()">auth_expireSession</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Expires the curently active session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#auth_getSession(java.lang.String)">auth_getSession</A></B>(java.lang.String&nbsp;authToken)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call this function to retrieve the session information after your user has logged in.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#auth_getUserId(java.lang.String)">auth_getUserId</A></B>(java.lang.String&nbsp;authToken)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>please call auth_getSession(authToken), then you can call users_getLoggedInUser(), or getCacheUserId()</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#auth_promoteSession()">auth_promoteSession</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generate a key for the current session that can be used to authenticate client-side components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#auth_revokeAuthorization()">auth_revokeAuthorization</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this method is called for the logged in user, then no further API calls can be made on that user's behalf until the user decides to authorize the application again.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html" title="type parameter in ExtensibleClient">T</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#batch_run(java.lang.String, boolean)">batch_run</A></B>(java.lang.String&nbsp;methods,          boolean&nbsp;serial)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Executes a batch of queries.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#beginBatch()">beginBatch</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts a batch of queries.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#beginPermissionsMode(java.lang.String)">beginPermissionsMode</A></B>(java.lang.String&nbsp;apiKey)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Begins permissions mode, and allows the current application to begin making requests on behalf of the application associated with the specified API key.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html" title="type parameter in ExtensibleClient">T</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#callMethod(com.google.code.facebookapi.IFacebookMethod, java.util.Collection)">callMethod</A></B>(<A HREF="../../../../com/google/code/facebookapi/IFacebookMethod.html" title="interface in com.google.code.facebookapi">IFacebookMethod</A>&nbsp;method,           java.util.Collection&lt;<A HREF="../../../../com/google/code/facebookapi/Pair.html" title="class in com.google.code.facebookapi">Pair</A>&lt;java.lang.String,java.lang.CharSequence&gt;&gt;&nbsp;paramPairs)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call the specified method, with the given parameters, and return a DOM tree with the results.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html" title="type parameter in ExtensibleClient">T</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#callMethod(com.google.code.facebookapi.IFacebookMethod, com.google.code.facebookapi.Pair...)">callMethod</A></B>(<A HREF="../../../../com/google/code/facebookapi/IFacebookMethod.html" title="interface in com.google.code.facebookapi">IFacebookMethod</A>&nbsp;method,           <A HREF="../../../../com/google/code/facebookapi/Pair.html" title="class in com.google.code.facebookapi">Pair</A>&lt;java.lang.String,java.lang.CharSequence&gt;...&nbsp;paramPairs)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call the specified method, with the given parameters, and return a DOM tree with the results.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html" title="type parameter in ExtensibleClient">T</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#data_getCookies()">data_getCookies</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get all cookies for the currently logged-in user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html" title="type parameter in ExtensibleClient">T</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#data_getCookies(java.lang.Long)">data_getCookies</A></B>(java.lang.Long&nbsp;userId)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get all cookies for the specified user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html" title="type parameter in ExtensibleClient">T</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#data_getCookies(java.lang.Long, java.lang.CharSequence)">data_getCookies</A></B>(java.lang.Long&nbsp;userId,                java.lang.CharSequence&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a specific cookie for the specified user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html" title="type parameter in ExtensibleClient">T</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#data_getCookies(java.lang.String)">data_getCookies</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a specific cookie for the currently logged-in user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#data_setCookie(java.lang.Long, java.lang.CharSequence, java.lang.CharSequence)">data_setCookie</A></B>(java.lang.Long&nbsp;userId,               java.lang.CharSequence&nbsp;name,               java.lang.CharSequence&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a cookie for the specified user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#data_setCookie(java.lang.Long, java.lang.CharSequence, java.lang.CharSequence, java.lang.CharSequence)">data_setCookie</A></B>(java.lang.Long&nbsp;userId,               java.lang.CharSequence&nbsp;name,               java.lang.CharSequence&nbsp;value,               java.lang.CharSequence&nbsp;path)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a cookie for the specified user, with the specified path.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#data_setCookie(java.lang.Long, java.lang.CharSequence, java.lang.CharSequence, java.lang.Long)">data_setCookie</A></B>(java.lang.Long&nbsp;userId,               java.lang.CharSequence&nbsp;name,               java.lang.CharSequence&nbsp;value,               java.lang.Long&nbsp;expires)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a cookie for the specified user, with the specified expiration date.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#data_setCookie(java.lang.Long, java.lang.CharSequence, java.lang.CharSequence, java.lang.Long, java.lang.CharSequence)">data_setCookie</A></B>(java.lang.Long&nbsp;userId,               java.lang.CharSequence&nbsp;name,               java.lang.CharSequence&nbsp;value,               java.lang.Long&nbsp;expires,               java.lang.CharSequence&nbsp;path)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a cookie for the specified user, with the specified expiration date and path.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#data_setCookie(java.lang.String, java.lang.String)">data_setCookie</A></B>(java.lang.String&nbsp;name,               java.lang.String&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a cookie for the current user.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#data_setCookie(java.lang.String, java.lang.String, java.lang.Long)">data_setCookie</A></B>(java.lang.String&nbsp;name,               java.lang.String&nbsp;value,               java.lang.Long&nbsp;expires)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a cookie for the current user, with the specified expiration date.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/google/code/facebookapi/ExtensibleClient.html#data_setCookie(java.lang.String, java.lang.String, java.lang.Long, java.lang.String)">data_setCookie</A></B>(java.lang.String&nbsp;name,               java.lang.String&nbsp;value,               java.lang.Long&nbsp;expires,               java.lang.String&nbsp;path)</CODE><BR>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?