Skip to content
Browse files

Minor refactoring

  • Loading branch information...
1 parent 8c88f54 commit 347dd620ed10cf2aa70eaf4ed62f9284879ba4f8 Benoit Hediard committed
Showing with 3 additions and 3 deletions.
  1. +2 −2 documentation/facebook/sdk/FacebookGraphAPI.html
  2. +1 −1 sdk/FacebookGraphAPI.cfc
View
4 documentation/facebook/sdk/FacebookGraphAPI.html
@@ -305,7 +305,7 @@
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;String</CODE></FONT></TD>
-<TD><CODE><B><A HREF="FacebookGraphAPI.html#getPageAccessToken()">getPageAccessToken</A></B>(String pageId, String userAccessToken)</CODE>
+<TD><CODE><B><A HREF="FacebookGraphAPI.html#getPageAccessToken()">getPageAccessToken</A></B>(String pageId)</CODE>
<BR>
</TD>
@@ -1074,7 +1074,7 @@
<a name="getPageAccessToken()"><!-- --></a><h3>
getPageAccessToken</h3>
- <code>public String <B>getPageAccessToken</B>(String pageId, String userAccessToken)</code>
+ <code>public String <B>getPageAccessToken</B>(String pageId)</code>
<dl>
<dd>
View
2 sdk/FacebookGraphAPI.cfc
@@ -279,7 +279,7 @@ component extends="FacebookBase" {
* @description Get page access token from a user access token.
* @hint User must have authorized manage_pages permission for the app and user must be an admin of the page
*/
- public String function getPageAccessToken(required String pageId, required String userAccessToken) {
+ public String function getPageAccessToken(required String pageId) {
var accessToken = "";
var httpService = new Http(url="https://graph.facebook.com/#arguments.pageId#", timeout=variables.TIMEOUT);
httpService.addParam(type="url", name="access_token", value=variables.ACCESS_TOKEN);

0 comments on commit 347dd62

Please sign in to comment.
Something went wrong with that request. Please try again.