Phoca gallery facebook connect

Phoca Gallery - image gallery extension
diegomesata
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 20 May 2015, 00:18

Re: Phoca gallery facebook connect

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca gallery facebook connect

Post 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
If you find Phoca extensions useful, please support the project
TinkerBell2015
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 23 May 2015, 17:10

Re: Phoca gallery facebook connect

Post 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.
Fintan
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 18 May 2015, 11:29

Re: Phoca gallery facebook connect

Post 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.
Boby71
Phoca Member
Phoca Member
Posts: 13
Joined: 26 May 2015, 23:59

Re: Phoca gallery facebook connect

Post 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
Boby71
Phoca Member
Phoca Member
Posts: 13
Joined: 26 May 2015, 23:59

Re: Phoca gallery facebook connect

Post 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 :D

Thank's,
Boby
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9965
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca gallery facebook connect

Post by Benno »

@Boby71
thanks for the feedback.

Kind regards,
Benno
Fintan
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 18 May 2015, 11:29

Re: Phoca gallery facebook connect

Post by Fintan »

Well this still does not not work on my end. Can anyone give me a heads up?
Boby71
Phoca Member
Phoca Member
Posts: 13
Joined: 26 May 2015, 23:59

Re: Phoca gallery facebook connect

Post 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,...).?
Fintan
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 18 May 2015, 11:29

Re: Phoca gallery facebook connect

Post 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?
Post Reply