Page 1 of 1

Facebook login

Posted: 18 May 2015, 22:30
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?

Re: Facebook login

Posted: 21 May 2015, 09:08
by Jan
Hi, thank you very much for the info, I will take a look at it as soon as possible.

Jan

Re: Facebook login

Posted: 21 May 2015, 10:25
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

Re: Facebook login

Posted: 22 Jul 2015, 18:29
by awar
This sistem not work. user_groups have problem to connect with facebook API. :x

Re: Facebook login

Posted: 23 Jul 2015, 12:12
by Jan
Hi, did you test it with Phoca Gallery 4.2.0? I am testing now without any problem :idea:

Jan

Re: Facebook login

Posted: 25 Jul 2015, 11:55
by awar
I'm not undestand. Why i have problem whit user_group. I can't connect with facebook whit this problem.

Re: Facebook login

Posted: 26 Jul 2015, 19:42
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: