How to auto post new jreviews listing to FB?

How to auto post new jreviews listing to FB?

HI

I want to auto post new jreviews listing to FB page like easyblog article, here are what I did.
1. created an object https://www.screencast.com/t/riG3Z9gUVl
https://www.screencast.com/t/Z3eGaxAcD61M

2. Create a channel, but there is no jreview listing object shown in Autopost Objects setting.
https://www.screencast.com/t/u6h0zZ5O

skyfranky
useravatar
Offline
61 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

JFBConnect doesn't support automatically posting new listings to Facebook. We currently only support autoposting new reviews.

Since JReviews uses Joomla's underlying content system and tables, you should be able to use the Content - Article object and have that automatically posted when a new listing is created. I haven't tried that recently, but it did work at one point.

Please test and let us know if that helps get you going.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23659 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

please check to my private message

skyfranky
useravatar
Offline
61 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

Melissa just responded to your private message. We're sorry for the delay, but hopefully that helped answer your question.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23659 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

Hi

I tested Jreivews listing auto posting to FB channel not working with object setup using default joomla article. When I created a new jreview listing and publish it. no FB post created in FB page. If I go to article manager, and manually unpublish and republish the article that was created by jreview. JFBconnect will post the article to FB page.

Please tell me how to get jreview listings auto post to FB channel.

skyfranky
useravatar
Offline
61 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

Have you updated to the latest 7.2.3 version of JFBConnect? One of the main bug fixes in this release was for this issue - new articles in Joomla 3.8 were not automatically posted when the article was created, but was when it was published/saved again.

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3502 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

upgraded to 7.2.3 version of JFBConnect, still not working. Please test it.

skyfranky
useravatar
Offline
61 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

Are you having the same behavior where if you unpublish and then publish again that the article is posted properly?

Can you tell us what version of Joomla and jReviews you're using?

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23659 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

unpublish and then publish jreviews listing again in frontend will NOT trigger any auto post to FB
unpublish and then publish article again in backend article manager will trigger  auto post to FB

Joomla 3.8.3
Jreviews v2.7.22.0
JFBconnect  7.2.3

skyfranky
useravatar
Offline
61 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

To clarify, it sounds like you're creating the new article on the front-end, not the backend. Is this correct?

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3502 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

yes, this is how jreview works. to create new listing from frontend. unpublish and publish from frontend too.

skyfranky
useravatar
Offline
61 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

Can you send new admin and FTP credentials for your site so we can investigate the cause further?

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23659 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

did you test on your site first? can you get it working?

skyfranky
useravatar
Offline
61 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

I sent you a PM with code to try in the Open Graph Content plugin. On my dev site, when creating a new listing on the front-end, this fixes the autoposting on the creation of the listing. It does not address the publish/unpublish on the front-end yet. I will need to investigate that more, but let me know how this change works for you.

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3502 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

yes, it works after adding the code when creating new listing. but there is one issue that image of a listing can only be uploaded after listing submission causing listing image can not show in FB post.

Now waiting for publish/unpublish on the front-end to work.

Edited by: skyfranky - Jan-06-18 00:13:49
skyfranky
useravatar
Offline
61 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

Please check your Private Messages. I've sent you some code. Once you verify that works, I'll clean it up a bit and check it in for the next bug fix release.

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3502 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

unpublish and republish on frontend did not tigger auto post to FB after adding below code

public function onContentChangeState($context, $pks, $value)
    {
        if($context == 'com_content.article')
        {
            JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_content/models');
            $contentModel = JModelLegacy::getInstance('Article', 'ContentModel');

            foreach($pks as $pk)
            {
                $article = $contentModel->getItem($pk);
                $this->tryAutoPublish($article, $value);
            }
        }
        else if($context=='com_jreviews.listing') { foreach($pks as $pk) { list($articleId, $alias)=array_pad(explode(':', $pk, 2), 2, ''); $this->db->setQuery("SELECT * FROM #__content WHERE id=" . $articleId); $article=$this->db->loadObject(); if($article) $this->tryAutoPublish($article, $value); } }
   
    }

skyfranky
useravatar
Offline
61 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to auto post new jreviews listing to FB?

Hmm. That code worked on my dev site.

1. If you're testing with an article that has already been autoposted, you will need to delete the entries in the JFBConnect backend > Channels > History tab. If we detect the post, we don't attempt the autopost action again. Once deleted, try the unpublish/publish action again.

2. If there were no prior autoposts for the URL, can you see if there are any error entries in that History tab? Sometimes the attempt is made to post but the actual posting fails and there are API errors in that list.

3. Can you verify that we're performing the same action on the front-end? The screenshot has the button that I'm toggling in the listing itself to unpublish and publish the JReviews listing. Are you doing it within the listing or from a category list of listings?

https://www.sourcecoast.com/images/agorapro/attachments/73/mini_jreviews-publish.png


-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3502 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11405
Total Polls:
0
Total Posts:
48071
Posts this week:
8
User Info
 
Total Users:
47248
Newest User:
kafeti
Members Online:
0
Guests Online:
1854

Online: 
There are no members online
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program