Permalink
Browse files

Merge branch 'develop' of affinitiz.beanstalkapp.com:/facebook-cf-sdk…

… into develop
  • Loading branch information...
2 parents 4045462 + 876ade5 commit ef0f782cbc79e2d98a60d14389662b92a450675c Benoit Hediard committed Mar 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 sdk/FacebookGraphAPI.cfc
@@ -864,13 +864,13 @@ component extends="FacebookBase" {
* @description Install an app in a page profile tab at the end of the current list of installed tabs
* @hint Requires a page accessToken
*/
- public Boolean function updatePageTab(required String appId, required String pageId, Numeric position = 0, String customName = "", String customImagePath = "", String customImageUrl) {
+ public Boolean function updatePageTab(required String appId, required String pageId, Numeric position = 0, String customName = "", String customImagePath = "", String customImageUrl = "") {
var httpService = new Http(url="https://graph.facebook.com/#arguments.pageId#/tabs/app_#arguments.appId#", method="POST", timeout=variables.TIMEOUT);
var result = {};
httpService.addParam(type="url", name="access_token", value=variables.ACCESS_TOKEN);
if (arguments.position > 0) httpService.addParam(type="formField", name="position", value=arguments.position);
if (arguments.customName != "") httpService.addParam(type="formField", name="custom_name", value=arguments.customName);
- if (arguments.customImagePath != "") httpService.addParam(type="file", name="source", file="#arguments.customImagePath#");
+ if (arguments.customImagePath != "") httpService.addParam(type="file", name="custom_image", file="#arguments.customImagePath#");
if (arguments.customImageUrl != "") httpService.addParam(type="formField", name="custom_image_url", value=arguments.customImageUrl);
result = callAPIService(httpService);
return result;

0 comments on commit ef0f782

Please sign in to comment.