Topic-icon Unable to Trigger Open Graph Action

Active Subscriptions:

None
9 years 7 months ago #46914 by Ivan
Hi,

I am using jomsef but for jfbconnect i do not have it using it. However when i try to trigger an action i get an error:

please see:
mercadobelize.com/deals/55-iphone-3gs/entry

I have highlighter where the error is.

It seems to be that the right url is not request. Could i fix this by hardcoding my domain for now? Ive looked at jfbconnect.js for where I could hardcode but not sure exactly where the url is requested.

File Attachment:
The topic has been locked.
Support Specialist
9 years 7 months ago #46952 by alzander
Hmmm.. haven't heard of that one before. I'd recommend trying the following:
1) Edit the /components/com_jfbconnect/includes/jfbconnect.js file
2) Search for 'jqueryUiLoaded'. Directly above that, you'll see a block of code that looks like:
ajax: function (url, callback)
        {
            url = url + '&' + jfbc.token + '=1';
            return jfbcJQuery.ajax({url: 'index.php', data: url}).done(callback);
        },
        jqueryUiLoaded: false,
Update the return line to:
return jfbcJQuery.ajax({url: jfbc.base + 'index.php', data: url}).done(callback);
That should help make sure the right path is used.

Please test and let me know how that goes.

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

None
9 years 7 months ago - 9 years 7 months ago #47156 by Ivan
What was happening is that I had the code in my component. Due to jomsef it would write the url then the index part attached to it. Decided not to use jomsef. But this code edit you mentioned should maybe be applied for future versions.
Last edit: 9 years 7 months ago by Ivan.
The topic has been locked.
Support Specialist
9 years 7 months ago #47157 by alzander
We already have that on the to-do list for the 6.2.1 release. 6.2.0 is already fixed and no more changes are being made to it while it's in testing before release.

Of course, if you test the above change, let us know how it goes.

Thanks,
Alex
The topic has been locked.