• Index
  • » Users
  • » skyfranky
  • » Posts

Posts

Posts

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); } }
   
    }

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.

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

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

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

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

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.

please check to my private message

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

HI

why my site is getting below error from chrome?

[DOM] Found 2 elements with non-unique id #sclogin-username: (More info: https://goo.gl/9p2vKq)
https://www.screencast.com/t/VimpvucvYRD

alzander wrote:


I just investigated further as to what's happening.

When JFBConnect tries to autopost content, we make a call to the front-end of the site to get the SEF version of the URL to be posted. However, that call is failing when being made from the admin area of your site.

When that call is made, it makes a request like:
index.php?option=com_jfbconnect&task=ajax.sef&url=aW5kZXgucGhwP29wdGlvbj1jb21fZWFzeWJsb2cmdmlldz1lbnRyeSZpZD05ODU=

If I go to that URL directly, it works. From the admin area making the call, it fails with the following error:

Forbidden

You don't have permission to access /dev/index.php on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

I'm not sure what's causing that as it seems like it may be a firewall or other server configuration issue not allowing the admin area to call the front-end of your site. Because that call is failing, the URL was just being the relative link.

I've made a change on your site which should generate a working URL including the domain. Please test and let me know if that works for you.

Thanks,
Alex

I can get the non-sef link working, but still don't know why SEF url not working. I tried to disable admintools to test, and SEF still not wroking. what else can I test to find out what causing SEF link not working?

I need to copy the files to my live site and test. what files should I copy?

I do not see any new ver download as you said you will release.

the non SEF link works in facebook post. I just installed latest ver of admintools, which may be blocking access to admin area. can you test the SEF link again? or even you can disable admin tool plugin for a while to test.

update please

upgraded to JFBConnect v7.2.2, same issue.

I private messaged you

after I de-selected the "All objects (Post) from EasyBlog", and post again.

the post link in FB page will be wrong like below.
http://index.php/?option=com_easyblog&a … mp;id=3210

permission issue fixed. please try again.

sent you FTP. when the next ver will be released?

the error fixed. please check again.

PM you the login

PM you the login

where is support please?

Sep-22-17 04:57:25
Category: JFBConnect

Hi

FB login so slow 10 seconds or more (first time and every time). how to speed it up?

  • Index
  • » Users
  • » skyfranky
  • » Posts

Board Info

Board Stats
 
Total Topics:
11405
Total Polls:
0
Total Posts:
48070
Posts today:
3
User Info
 
Total Users:
47234
Newest User:
jrucker
Members Online:
0
Guests Online:
1204

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