Welcome, Guest
Username: Password: Remember me

TOPIC: I can only get 50 albums from the facebook page???

I can only get 50 albums from the facebook page??? 9 years 3 months ago #1639

Hi

I can only get 50 albums but i have maybe 150 albums in facebook page?
Why?? What can i do..?

Anne :(
The administrator has disabled public write access.

I can only get 50 albums from the facebook page??? 9 years 3 months ago #1640

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Anne
Can you send me again joomla administrator via contact form? So we can help you
Best regards
Bach Pham
The administrator has disabled public write access.

I can only get 50 albums from the facebook page??? 9 years 3 months ago #1641

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Anne
We have fixed this problem for you and now it work fine. You can check it
in file administrator/components/com_jofacebookgallery/helpers/jofacebookhelper.php go to line 45->51 and changed functiton
public static function getAlbumInfo($access_token, $album_page_id){
if(!empty($access_token)){
$token_url = "graph.facebook.com/".$album_page_id."/al...it=1000&expires_in=0";
$token_content = json_decode(JoFacebookHelper::file_get_contents_curl($token_url),true);
}
return @$token_content;
}
To
function getAlbumInfo($access_token, $album_page_id){
if(!empty($access_token)){
$token_url = "graph.facebook.com/".$album_page_id."/albums?access_token=".$access_token."&limit=1000&expires_in=0";
$token_content = json_decode(JoFacebookHelper::file_get_contents_curl($token_url),true);
$albums = array();
$albums = array_merge($albums, $token_content["data"]);
while(array_key_exists("next", $token_content["paging"])) {
$token_content = json_decode(JoFacebookHelper::file_get_contents_curl($token_content["paging"]["next"]),true);
$albums = array_merge($albums, $token_content["data"]);
}
}
$albums_data = array();
$albums_data["data"] = $albums;
return @$albums_data;
}

Best regards
Bach Pham
Last Edit: 8 years 11 months ago by Super User.
The administrator has disabled public write access.

I can only get 50 albums from the facebook page??? 7 years 10 months ago #3689

Sorry,I also can only get 50 albums from the facebook page...

And I can't rewrite "jofacebookhelper.php"...

Please,help me...
The administrator has disabled public write access.

I can only get 50 albums from the facebook page??? 7 years 10 months ago #3690

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Mikiya Nishimura
Please help me download and replace file jofacebookhelper.php in file send to your email and check it
Best regards
Bach Pham
The administrator has disabled public write access.
Time to create page: 0.047 seconds