Topic-icon Opengraph not posting - error

Active Subscriptions:

None
12 years 5 months ago - 12 years 5 months ago #39511 by aaronpie
I am have installed the latest version of JFBconnect and have setup the opengraph per the posted documentation. I have an action to read Jreview and Easyblog posts using the Facebook action news.reads. When using Chrome Development tool I noticed an error after the 5 second wait time to post the action to Facebook. I have attached a picture of the error.

Configuration:
Joomla 3.1.6
Using Nginx
Latest version of installed components

File Attachment:
Last edit: 12 years 5 months ago by aaronpie.
The topic has been locked.
Support Specialist
12 years 5 months ago #39517 by alzander
Can you go directly to the URL that's throwing a 404 to see if it works when you directly go to it?

Additionally, I see "/public-listings/index.php?" in the URL. Is that the base of your Joomla site, or is your home page actually site.com (without /public_listings/). It's possible there's an issue with the relative location that we're trying to post to.

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

None
12 years 5 months ago #39528 by aaronpie
When I try to go to that url, I am getting a blank page with "No input file specified".

My base site url format is www.site.com. Public listing is the Jreviews category for my listings.

I am using the Jreviews SEF plugin and Joomla's SEF plugin for my site.
The topic has been locked.
Support Specialist
12 years 5 months ago #39553 by alzander
Not sure why you're encountering that issue. It's not something we've heard of before. There may be a very simple fix for it though, if you're up for a quick code change.

Please edit the /components/com_jfbconnect/includes/jfbconnect.js Around line 874, you'll see:
jfbcJQuery.ajax({url: 'index.php', data: url}).done(callback);
Update that to:
jfbcJQuery.ajax({url: jfbc.base + 'index.php', data: url}).done(callback);
That should make sure the AJAX request always goes to the root of your site, not the current base URL.

Let me know how that goes, and good luck!
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 5 months ago #39559 by aaronpie
I made the changes to the file and the error does not pop-up on Chrome's developer tool console, but the article is not posting to Facebook. I checked the Activity log and nothing is showing up. I tried Jreviews and Easyblog articles.
The topic has been locked.
Active Subscriptions:

None
12 years 5 months ago #39572 by aaronpie
So I was doing some more testing and I found out if I turn off "Use URL rewriting" in Global Configurations then the activity is posted. I am hoping this setting does not affect the rest of the site, but so far so good.
The topic has been locked.
Support Specialist
12 years 5 months ago #39587 by alzander
Glad you're narrowing things down! The "Use URL Rewriting" is a setting which mainly lets you go to URLs on your site without the index.php in the address. When you disable it, the links in your site will usually have the index.php in them, like site.com/index.php/blog

To use the URL Rewriting setting, you need to make sure you've created the .htaccess file on your server, which is explained when you hover over that setting.

Obviously, keep testing if you're ok with that setting off. If not, or you need more help, just let us know.

Thanks,
Alex
The topic has been locked.