Topic-icon Facebook Autopost Plugin based on Access Level

Active Subscriptions:

None
Is there currently a way to create an Autopost for Facebook based on the Access Level of the article? In other words, I only want to post publicly accessible articles to the Facebook page. I would imagine that there is already a way to do this, since I would think that most people wouldn't want to post their privately accessible articles to their public Facebook page.

Thank you!
The topic has been locked.
Support Specialist
4 years 6 months ago #65689 by alzander
We don't have a method to directly select which access levels for an article are published. However, there are some built-in checks and configuration options you may be able to make use of:
* Articles marked as special are never automatically published
* Articles marked as registered are published and the link and intro text will be included. If a user clicks those articles in a social feed, they will be brought to your site and asked to login. This is a good way to get users to your site with 'teaser' links and works well on many sites.
* Autoposting can be setup on a category basis. If you have a section of public content in one category and you post authenticated content in a separate category, you can easily set the authenticated category to not auto-publish.

I hope that gives you some ideas, but if you have questions on how best to do what you're looking for let us know. If the above doesn't give you the flexibility you need, help explain further and we can investigate changes for a future update.

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

None
Wow! That is really hard for me to comprehend. I don't understand why there is no way to auto-post based on access level. I have developed this site to be as simple as possible for the end-users, which are not technical people. Now I have to redesign the whole category system if I want them to be able to post private or public, instead of choosing the access level on the post, which is on the front end with a lot of stuff stripped out to make it easier. I am blown away that there is no current method of checkboxes in the settings for the auto-post to select access levels that will or will not auto-post. This was the one reason that I purchased JFBConnect, which is now void for me. I guess I just wasted our money.
The topic has been locked.
Active Subscriptions:

None
So, today I go into the Facebook Social Channels to start fooling with the settings, in a last ditch effort before giving up, and there is a new drop-down that is Autopost Access, which shows my access levels. I selected Public and saved the settings. I then went in and created a private access level post and it still posted to Facebook. I am assuming that I am misunderstanding what this Autopost Access combobox is?
The topic has been locked.
Support Specialist
4 years 6 months ago #65695 by alzander
I'm sorry to hear we don't have the feature you're looking for. We've had autoposting built-in to JFBConnect for more than 4 years now and, honestly, access-level auto-posting has never been requested. Generally speaking, as noted above, the posting of all content (registered or public, but not 'special') has worked for our users as it serves the purpose of letting viewers on social media know that new content is available and to come to the site. If they need to register to see it, that's a site-specific choice, but the posting can be beneficial in gaining new users.

I have developed this site to be as simple as possible for the end-users, which are not technical people.

I'm unsure how you are planning to post content. JFBConnect Channels are meant to post to your websites Facebook Page. The way you describe your setup, it sounds like users on your site will be creating content and that will be posted to your Facebook Page. If that's the case, that should still work, and I'm not sure how access levels are easier to understand than categories.

Again, if you can provide more details on how your site is setup, how content is generated and how you expect it to be posted to social media, that would help us understand the use case more. We have no problem adding new features to JFBConnect, or even providing you with some simple code that would only publish 'public' content instead of 'public' and 'registered'. We do like to make sure we understand the use case so that we aren't adding features and checkboxes that help only a limited set of users and confuse the rest though.

Today I go into the Facebook Social Channels to start fooling with the settings, in a last ditch effort before giving up, and there is a new drop-down that is Autopost Access, which shows my access levels.

I'm unsure where you're seeing this setting. Can you explain further?

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

None
The method that I am talking about creating post is such:
We have four departments that use our site: Boosters, Band, Choir & Drama. The categories that I had setup were as such. I created the ACL's so that booster authors can post in the boosters category, band for band, etc. The articles show publicly or only to a specific group (booster members) based on the access level of the post, which has a toggle on the front-end article creation. When one of the authors creates an article that post to the site, they can post public or to that group only. If the articles are posted publicly, I would want them to post to Facebook. If they are posted to the private group only, I wouldn't want them to post to Facebook because the article is meant to be for the private members. In our case, we use our website as a public website as well as news and notifications for our members. These members cannot just go through the registration on the website, they have to be put in by an administrator because it is band parents, choir parents, etc. These special members of our site are not just every day website users. I realize that JFBConnect was setup for a typical website usage and we are not using it like a typical site.

I have swapped stuff around and have it working now. I ended up creating new sub-categories of the existing categories like was suggested. Example, Band now has a sub-category called members. The menu item for the articles points to the top level Band category and includes all sub-categories. The sub-category articles have an access level of booster members so that they are not visible to the public. I then changed the front-end article creation so that there are now sub-menus for each item: Create Band Article menu item now has two sub menus of Public and Members Only. Like you, I am trying to make this site as user friendly as possible since the people using it are not technical people. This method will work, it was just a little frustrating to change the stuff that I already had in place. There were a bunch of other changes that had to be made, I left them out since they were more related to ACYMailing, since it also affected how that worked as well.

As far as the Autopost Access dropdown that I was referring to is in the configuration of the Channel for a Facebook Page. At the bottom of the Attributes section, there is a dropdown labeled Autopost Access that contains my access levels. They don't seem to do anything that I can see. I didn't dig into the code because I really don't have time to look through it. I don't expect anything to be done, I am supplying this information just to answer your question. I am attaching an image of the dropdown.
File Attachment:
The topic has been locked.
Support Specialist
4 years 6 months ago #65706 by alzander
I apologize greatly. I talked with Melissa who developed the Channels feature and was informed about the Access Level setting in the Channels setting. This feature was added over this Summer and I simply wasn't aware of it.

The Access Level feature should do what you're looking for. Basically, the Access Level you set in the Channel will be checked against the Article's access level. If the Articles access level is *lower* or equal to the setting for the Channel, it will be published.

We looked through the code today and the functionality should work. However, we noticed there's one possible complication if you've created additional access levels where some access are higher and lower than the default 'Registered' view. If that's the case, let us know and we can investigate further if there is indeed a publishing issue when the Access Level in the channel is set to a specific value.

Again, I apologize for making you go off on the tangent of creating new categories. The good news is that the method you want to use is in JFBConnect and, if there are issues with our implementation, we'll gladly help you get them fixed.

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

None
4 years 6 months ago - 4 years 6 months ago #65711 by webmaster.ochsfab
Thanks! I am going to be honest... I am running out of patience with this. I have thrown up a new Joomla install, created a new Facebook App, linked the two together and am still having issues. I noticed that within the AutoTune that I am failing the:

Test: Facebook Javascript library inclusion
Fail: Facebook Javascript library not found, but JFBCSystem plugin is detected. Please contact support if you experience issues.

I am pretty sure that this has something to do with the failure of this Autopost issue since the new site that I just created is having the exact same issues and it failed right off the bat. The confusing thing is that I have the exact same settings on both facebook apps and both JFBConnect setups. I have already read the threads regarding this issue and System - Page Cache is disabled and I have moved System - JFBCSystem to the very top. For some reason, I am not getting the JS from Facebook. I did have this working on a test site prior to moving to my production site, but of course, the production site is where I started having issues. So, I have three sites, two test and one production. One test site is working, one test site and the production site are not. The non working sites are both giving the fail on the test. It is confusing why the Facebook Javascript library would make the plugin not work properly, but that is the only thing that I can see that is similar with the sites that are not working. The site that works states that it passes the Facebook Javascript library inclusion. I have tested that the apps are good. I connected my non-working test site to the app that is connected to my working site, updated the app values to point to the non-working test site and ran the Error Check again and it still fails. I also reversed that process and pointed my working site to the app that was connected to the non-working site and that site still worked. This rules out that this is a Facebook App issue. There is something else going on. It's confusing though because the test site is a mirror copy of the production site right before adding JFBConnect. There should be nothing different between the two prior to adding the component. What kind of debugging can I turn on to see what it is doing? Is there any type of special debugging for the component? And for the autotune? I would like to see what is going wrong...

Thanks!
Last edit: 4 years 6 months ago by webmaster.ochsfab.
The topic has been locked.
Active Subscriptions:

None

alzander wrote: The Access Level feature should do what you're looking for. Basically, the Access Level you set in the Channel will be checked against the Article's access level. If the Articles access level is *lower* or equal to the setting for the Channel, it will be published.


I would think that the Access Level feature would publish any articles that are equal to the access level specified. Access Levels cannot have an hierarchy, if that is truly what this function does. The Access Level is a static value, instead of a hierarchical value. Just wanting to clarify...

Thanks!
The topic has been locked.
Active Subscriptions:

None
4 years 6 months ago - 4 years 6 months ago #65713 by webmaster.ochsfab
I was able to figure out the issue...

The issue is that if you enable the Messenger plugin, the script that is placed in the body of the page is overriding the script that is needed for the Autopost to work properly. By disabling the Messenger in Social -> Messenger, the site started working as expected. I went back to the old method of changing the access levels, like I initially wanted because it seemed that the method you described above, really doesn't work like I expect it to:

alzander wrote: Autoposting can be setup on a category basis. If you have a section of public content in one category and you post authenticated content in a separate category, you can easily set the authenticated category to not auto-publish.

Maybe the Autopost recurses through sub-categories? I didn't test that with a working site. I am happy leaving it as is because I don't want too many sub-categories. It would make the site look ugly if someone start browsing through categories.

So, the plan of action for the issue would be to get the Messenger code cleaned up so that it doesn't affect the Autopost code. You can see this in action if you turn on Messenger, provide a valid Facebook Page and within Autotune, run the Error Check. You will see that the Facebook javascript inclusion fails. Turn Messenger off and run the Error Check again and it works.
Last edit: 4 years 6 months ago by webmaster.ochsfab.
The topic has been locked.