Topic-icon Problems creating facebook channels

Active Subscriptions:

None
9 years 1 week ago - 9 years 1 week ago #53021 by renstr
If I create a facebook channel, Iam getting this message: "Der ausgewählte Benutzer hat die Rechte für 'manage_pages' nicht eingeräumt. Bitte veranlasse das er sich im Frontend anmeldet und diese zusätzlichen Rechte akzeptiert."

I checked already these things:
Please check the following:

You're logging in using the Facebook button, not the Joomla login form.
The Facebook account you're logging in with is the same one linked to the Joomla user you selected in the Channels area
The Facebook user is either a) an admin of the Facebook application or b) you have submitted your app for approval to Facebook to use the "user_groups" or "manage_pages" permission.
In the JFBConnect > Configuration > Facebook area, in the "Additional requested permissions" box, add "user_groups" (or "manage_pages"). That will request the permission from any users logging in through Facebook. Try logging in again to see if it's requested. If so, grant it and then remove the permission from the box to not ask it of other users.
On Facebook.com, click the down-arrow in the top right and go to Settings. Then, click on Apps and click into the app you created for your site. Check if the user_groups (or manage_pages) permission is listed as something you've granted.
If the permission has been granted, but JFBConnect still can't detect it, the next step would be to try and delete the Channel and recreate it. It's possible something got messed up in the database and hopefully recreating it will fix it.

I have that problem on two different sites.
Can you please help me solving that problem?
Last edit: 9 years 1 week ago by renstr.
The topic has been locked.
Support Specialist
9 years 6 days ago #53026 by alzander
This was an issue introduced in the latest release that we're narrowing down. It affects a few sites. If you're interested in a quick code change that should fix it for you, please try the following:

* Edit the /components/com_jfbconnect/libraries/provider/facebook.php file
* Around line 202, you'll see:
$params['access_token'] = JFBCFactory::usermap()->getUserAccessToken($uid, 'facebook');
Change that to:
$jid = JFBCFactory::usermap()->getJoomlaUserId($uid, 'facebook');
$params['access_token'] = JFBCFactory::usermap()->getUserAccessToken($jid, 'facebook');
Please let us know how that goes for you. We've done some testing and it fixes the issue, but we'd love to hear your results as more confirmation is better.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 2 days ago - 9 years 2 days ago #53108 by renstr
This solves that problem.
Thanks!
Last edit: 9 years 2 days ago by renstr.
The topic has been locked.
Support Specialist
9 years 1 day ago #53115 by alzander
Awesome! Thanks for the feedback. Our testing shows it works as well, but always nice to have more confirmations 'in the field'.

Again, this change will be in our next release. It's due out around mid-month, but some things have been delaying that a little more than we'd like.

If you run into any other issues, have any questions or feedback, please let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 1 day ago #53133 by philip719
Hi

I have the same problem but instead of making a channel for a page. I try to make a channel for a group. I have replace line 202 with the code you shown. But it is not working for me. The user who is the owner of the channel keep getting redirect in a loop and unable to login. Please help
The topic has been locked.
Support Specialist
9 years 1 day ago #53139 by alzander
philip719,
Sorry to hear you're running into issues. A loop shouldn't happen at all, and may not be related to the code change above. The line at 202 should still be done, but it sounds like something else may be happening.

Can you let me know if you delete the channel if the redirect loop still happens? That will help us narrow down if it's a permissions issue during login to get the updated manage_groups permission, or something else. As for the loop itself, can you provide the relative URL (domain isn't required) that isn't loading and/or any error messages you're receiving?

We'll gladly help investigate however we can.

Thanks,
Alex
The topic has been locked.