Page 2 of 7
Re: Phoca gallery facebook connect
Posted: 20 May 2015, 00:23
by diegomesata
gorneman wrote:Code: Select all
$loginUrl = $facebook->getLoginUrl(array('req_perms' => 'user_photos,user_groups,offline_access,publish_stream,photo_upload,manage_pages', 'scope' => 'user_photos,user_groups,offline_access,publish_stream,photo_upload,manage_pages', 'cancel_url' => $uri->toString(), 'next' => $uri->toString()));
With new API 2.3 , offline_access,publish_stream and photo_upload are deprecated. They have to be changed with new ones (ex. publish_stream with publish_actions)
Based on this answer, I edited this file:
administrator\components\com_phocagallery\libraries\phocagallery\facebook\fb.php
Aproximately on line 108 (Phoca 4.1.2) I replaced the existing line with:
$loginUrl = $facebook->getLoginUrl(array('req_perms' => 'user_photos,user_groups,publish_actions,manage_pages', 'scope' => 'user_photos,user_groups,publish_actions,manage_pages', 'cancel_url' => $uri->toString(), 'next' => $uri->toString()));
Now the facebook's login and import works fine. I don't know what other things this could break, but import is what I need
Re: Phoca gallery facebook connect
Posted: 21 May 2015, 11:08
by Jan
Hi, thank you for the info:
I have tested import and export, so it seems, everything is OK.
viewtopic.php?f=1&t=34229&p=112120#p112177
Thank you, Jan
Re: Phoca gallery facebook connect
Posted: 23 May 2015, 17:14
by TinkerBell2015
I had the same error. The manual code edit fixed it. Thank you!

Unfortunately, I now must figure out why the "Albums" list is blank.
Re: Phoca gallery facebook connect
Posted: 25 May 2015, 14:55
by Fintan
TinkerBell2015 wrote:I had the same error. The manual code edit fixed it. Thank you!

Unfortunately, I now must figure out why the "Albums" list is blank.
This did not help me with my issues.
I still getting the wrong albums.
Re: Phoca gallery facebook connect
Posted: 27 May 2015, 00:02
by Boby71
Good evening,
same problem with my installation:
Invalid Scopes: offline_access, publish_stream, photo_upload. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at:
https://developers.facebook.com/docs/fa ... ermissions
>> It's currently not possible to connect to Facebook.
Is there a workaround or a plan when it will be solved?
Thanks for your support,
Boby
Re: Phoca gallery facebook connect
Posted: 27 May 2015, 22:29
by Boby71
Now, that's strange...yesterday only a few anwers were visible to me.
As I checked today, I also saw the other postings containing the solution.
So, sorry for asking twice - and thank's for the FB login hack; it works now
Thank's,
Boby
Re: Phoca gallery facebook connect
Posted: 27 May 2015, 23:23
by Benno
@Boby71
thanks for the feedback.
Kind regards,
Benno
Re: Phoca gallery facebook connect
Posted: 29 May 2015, 19:20
by Fintan
Well this still does not not work on my end. Can anyone give me a heads up?
Re: Phoca gallery facebook connect
Posted: 29 May 2015, 19:24
by Boby71
I just replaced the few lines as mentioned a few postings before...
Are all your other settings okay? No leading/trailing space somewhere (eg name, user,...).?
Re: Phoca gallery facebook connect
Posted: 01 Jun 2015, 14:12
by Fintan
Boby71 wrote:I just replaced the few lines as mentioned a few postings before...
Are all your other settings okay? No leading/trailing space somewhere (eg name, user,...).?
Yes. Can I PM you the admin test page?