Topic-icon Facebook posting based on article access level

Active Subscriptions:

None
5 years 8 months ago - 5 years 8 months ago #64358 by dlewintx
I am new customer/user getting familiar with your product. I was able to get it up and running and auto posting new Joomla content articles to my Facebook page.

I did not see any reference to content access levels in the documentation. In experimenting, I found it will auto post articles that are posted with either public or registered access, but will not post articles with special or super user access.

My questions are:

Is this a parameter that can be configured somewhere? If I wanted to change this to only post articles with Public access, where could this be done? If not a configurable parameter, is there a section of code you could direct me to, in order to make this change in functionality?

dlewintx
Last edit: 5 years 8 months ago by dlewintx.
The topic has been locked.
Support Specialist
5 years 8 months ago #64363 by mel
Yes, an option would be a good idea... but no, we don't have that setting. I've added it as an enhancement request to our issue tracker.

In the meantime, the code can be found in the Open Graph plugin for Joomla content - /plugins/opengraph/content/content.php at line 390. The existing code checks if the access variable is 3 for special or 6 for super user
if(!$this->isArticleSpecial($article->access)) //Do not auto-post special/Super User items

Since you want to only post for Public access, you can do the following instead.
if($article->access == '1')

-Melissa
The topic has been locked.
Active Subscriptions:

None
5 years 8 months ago #64375 by dlewintx
Melissa:

Great! This is exactly what I needed. Thank you for the detailed response.

In regards to an option, a use case is we have some websites where some content is restricted to access by registered users only. These registered users have no other author, publisher, manager, or admin privileges. Registration simply provides access to this additional restricted content. The way the current system is coded, any new content added and intended to be restricted to registered user will get published to the public Facebook page. (with auto publish enabled). As currently set, this deviates somewhat from the standard Joomla access levels.

However, your response provides the needed workaround. Thanks again.

dlewintx
The topic has been locked.
Support Specialist
5 years 8 months ago #64383 by alzander
Thanks for the explanation. Your use case is spot on and one we've thought of before. Many sites use auto-posting as a 'hook' to get people in, so the current method hasn't caused any complaints. With how it is now, an autopost happens and that may make people register on your site. The content wouldn't fully be in the post.

One thing possibly not mentioned is that you can select which categories an autopost can happen from. If you segregate your content by category and certain categories are for Registered users only, that could work. The setting is a better catch-all, but calling that out in case you weren't aware of the category-level ability.

We'll be looking into adding this as an option in the next release. We completely understand if you want to keep some stuff private though :)

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

None
5 years 8 months ago #64388 by dlewintx
Alex:

You mentioned "One thing possibly not mentioned is that you can select which categories an autopost can happen from."

I saw (understand) there are two paths to autopost. Use the plug-in which defaults to all article content, or create custom open-graph objects. In the case of the latter, the custom object only allows you to select one category. So to move forward with category level control as you reference, I would need to create a custom object for each catgory. (20 Categories = 20 objects). Is this correct, or is there another mechanism for selecting which categories from which autopost can happen?

dlewintx
The topic has been locked.
Support Specialist
5 years 8 months ago #64392 by alzander
Objects are hierarchical. So, if you have a category structure of:
* Registered Category
** Reg stuff
** Reg widgets
** Reg garbage
* Public Category
** Pub stuff
** Pub widgets

You could create an object for "Registered Category" and it would work all of the Reg* categories underneath. You should even be able to create an object for "Reg garbage" itself, in which case that object would only apply to that category (in case you don't want to post from just one sub-category)

So, you can get pretty fined tuned on things.. but that shouldn't be necessary for what you're trying, frankly. We like the idea of a Public | Public + Registered setting, so that's going in in an upcoming release either way. I just wanted to point out other flexibility you may be interested in.

Thanks,
Alex
The topic has been locked.