Topic-icon Connecting to a FB Channel

Active Subscriptions:

None
4 years 10 months ago #65432 by chris72a
Hi All, awesome component!!!! I have the login working wonderfully however when adding a channel to display after setup log off and back on I get the error below

URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.

I was originally getting that on logon but fixed that if I delete the channel setup it all works again. I have googled extensively and by the looks of it on logon after setting up the channel I should get an FB popup asking for permission however I just get above error. Any ideas where to look next. site is www.ktmkulture.com.au/v1

Cheers
Chris.
The topic has been locked.
Support Specialist
4 years 10 months ago #65433 by alzander
Replied by alzander on topic Connecting to a FB Channel
The error your getting indicates the app isn't configured fully. Specifically, the redirection URLs that Facebook is allowed to return a user to (yourself) after they login on Facebook. That's a security measure to make sure someone doesn't login on site 'a' but send sensitive profile information to site 'b' without their knowledge.

Can you go to the Facebook Developer Area and click into your app. Then, on the left-hand side go to the Facebook Login -> Settings area. In there is a section for "Valid OAuth Redirection URLs". Double-check and add any variations of your domain that you could be visiting there. A good set of examples to check for would be:
http://www.ktmkulture.com.au/v1/index.php?option=com_jfbconnect&task=authenticate.callback&provider=facebook
https://www.ktmkulture.com.au/v1/index.php?option=com_jfbconnect&task=authenticate.callback&provider=facebook
http://ktmkulture.com.au/v1/index.php?option=com_jfbconnect&task=authenticate.callback&provider=facebook
https://ktmkulture.com.au/v1/index.php?option=com_jfbconnect&task=authenticate.callback&provider=facebook
If there's a chance you're authenticating on a portion of your site that does not have 'v1' in the URL, you'll want to add all the variations of those URLs as well.

I hope that helps get you going, but if you still have issues or questions, just let me know.

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

None
4 years 10 months ago #65434 by chris72a
Replied by chris72a on topic Connecting to a FB Channel
Thanks heaps Alex, have done that getting a step closer now getting error

Invalid Scopes: manage_pages, publish_pages. 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: developers.facebook.com/docs/facebook-login/permissions

I'm investigating but if you have a quick fix would be great, assuming it's a permission somewhere in fb

Cheers
Chris.
The topic has been locked.
Active Subscriptions:

None
4 years 10 months ago #65435 by chris72a
Replied by chris72a on topic Connecting to a FB Channel
OK looks like I gotta jump through some hoops with FB for the additional permissions. :-(
The topic has been locked.
Support Specialist
4 years 10 months ago #65440 by alzander
Replied by alzander on topic Connecting to a FB Channel
manage_pages and publish_pages are required permissions for you to be able to post to a Facebook Page. There is an App Review process that you need to go through *if* you want to get permissions from regular users to your site and setup Channels for those users. In most cases, you the Pages you want to post to are owned by your own company and, in that case, you should add the admin of the Facebook Page to your Facebook App. Once the user is a developer/admin of the app, those permissions can be granted without going through the app review process.

The proper process would be:
* Add the Facebook user to your Facebook App
* Setup the channel for that user
* Have the user authenticate on the front end of your site to grant those permissions
** You *may* need to temporarily put your Facebook app in "Development" mode by using the slider at the top of the Facebook Developer area to turn off 'Live'. That may bee needed to grant the permission, but can be switched back to Live when done and the permission will still be there.

If you plan to setup Channels for random users that you wouldn't want to have access to your Facebook App setup, then yes, you'd need to go through the review process.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
4 years 10 months ago #65443 by chris72a
Replied by chris72a on topic Connecting to a FB Channel
Thanks Alex, I changed from a page to a gropup, it now works in dev mode if I login obviously because I am admin of that group, once I turn the FB app back to live I get same error does that mean I will need to go through the approval process. All I want to do is show posts from the group page, hoping to avoid the whole approval process if possible. Also thanks for your help I'm sure you guys must get frustrated with all this FB crap.

Cheers
Chris.
The topic has been locked.
Support Specialist
4 years 10 months ago #65457 by alzander
Replied by alzander on topic Connecting to a FB Channel

once I turn the FB app back to live I get same error does that mean I will need to go through the approval process

Strange. We've heard this from a few users. It used to be that permissions granted in dev mode carried over to live mode. In dev mode, only admins will be requested permissions.. other 'normal' users won't be able to authenticate at all and would see an error that the app is not live. It seems as though Facebook is changing how permissions work so that they don't carry over when the app is made Live.

If that's the case, you will have to go through App Review. For the demo, I'd show the social toolbar at the bottom with the "Create Post" button and describe very clearly that the toolbar is only shown to admins of your site. If it's clear that normal users won't be asked the permission, it should go smoother. We've heard good feedback about that in the past, but there are a lot of reviewers at Facebook and their standards vary a bit.

I hope that helps explain, and please keep us posted how it goes.

Thanks,
Alex
The topic has been locked.
Support Specialist
4 years 10 months ago - 4 years 10 months ago #65458 by alzander
Replied by alzander on topic Connecting to a FB Channel
Just saw your latest post in your other thread .. It seems like things are working now, which is good to hear!
Last edit: 4 years 10 months ago by alzander.
The topic has been locked.
Active Subscriptions:

None
4 years 10 months ago #65483 by chris72a
Replied by chris72a on topic Connecting to a FB Channel
Hey Alex, unfortunately only working for admins, have been rejected twice now from FB seems a bit silly that I only want to show posts from the group and yet they make it so difficult, I'll try one more time if that get's rejected I'll pay someone to see if they can get approved.
The topic has been locked.