Facebook login

Phoca Gallery - image gallery extension
virusys
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 18 May 2015, 22:25

Facebook login

Post by virusys »

Cannot loginto Facebook for photo import - they have recently changed their tags.

The error I get is:

"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"

Will there be an update to address this soon?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Facebook login

Post by Jan »

Hi, thank you very much for the info, I will take a look at it as soon as possible.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Facebook login

Post by Jan »

I will change it in next version, for now you can do quick fix in (Phoca Gallery 4.1.2):

administrator\components\com_phocagallery\libraries\phocagallery\facebook\fb.php

line cca 108

FROM:

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()));
TO:

Code: Select all

$loginUrl = $facebook->getLoginUrl(array('req_perms' => 'user_photos,user_groups,manage_pages', 'scope' => 'user_photos,user_groups,manage_pages', 'cancel_url' => $uri->toString(), 'next' => $uri->toString()));
Jan
If you find Phoca extensions useful, please support the project
awar
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 22 Jul 2015, 13:02

Re: Facebook login

Post by awar »

This sistem not work. user_groups have problem to connect with facebook API. :x
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Facebook login

Post by Jan »

Hi, did you test it with Phoca Gallery 4.2.0? I am testing now without any problem :idea:

Jan
If you find Phoca extensions useful, please support the project
awar
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 22 Jul 2015, 13:02

Re: Facebook login

Post by awar »

I'm not undestand. Why i have problem whit user_group. I can't connect with facebook whit this problem.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Facebook login

Post by Jan »

Hmm, unfortunately I cannot say why as I am not Facebook developer. Didn't you find any information about this problem on FB pages. I have contacted two users who had problems with the old parameters and now it is working for them OK, so for now I really cannot say what can be wrong there :idea:
If you find Phoca extensions useful, please support the project
Post Reply