Whew! Sorry, yeah, I definitely did miss this one. Thanks for bumping it up!
That error message of "Error: Action is not associated to the object type" is likely coming from JFBConnect. Our error message is actually "Action is not associated to the object type
of this page.". It's a language file though, and may have changed at some point.. so I'm assuming that's 'our' error and not something coming back from Facebook.
If that's true, it means that JFBConnect is rejecting triggerAction call before we even are trying to submit to Facebook. All the code for that is in /components/com_jfbconnect/models/opengraphaction.php. Specifically, $action->isAssociatedTo($object) is failing. That call, eventually, gets down to getAssociatedObjects in the same file. So, with all that said, here's what I would do to test:
* Definitely make sure that, in the action settings of JFBConnect, make sure you've checked the box to associate the action with the object
* Make sure that the URL you created is properly getting assigned the Object you created and assigned to the action. To do this:
*** Go to the URL, open the source and check the og:type tag. It should be what you set in the Object in JFBConnect. Try changing the type to something very unique and make sure it updates on the page.
* Try disabling any other objects except the one you want to use and try again.
If everything above is right or doesn't help, there's a few code things to check which can help debug things. In the file above, around line 104, you'll see:
$object = array_shift($objects);
if ($object && $action->isAssociatedTo($object))
Do a print_r of both $objects and $object. See if your object is in either. It should be in the first place, if not, that's what's wrong and we can help you diagnose it.
If it's in the first position of the objects array, then in the file/function mentioned above, around line 250, you'll see:
$this->db->setQuery('SELECT o.* FROM #__opengraph_action_object ao ' .
' INNER JOIN #__opengraph_object o ON ao.object_id = o.id ' .
' WHERE ao.action_id = ' . $this->id .
' AND o.published = 1');
$objects = $this->db->loadObjectList();
Do a print_r of $objects there. These are the objects that JFBConnect thinks are associated with the action. Make sure it's in there. If not, then there's a configuration error.
Sorry to spit out a ton of stuff, but figured I'd take things through a few steps since I'm behind on helping you here.. and I know you can tinker
If anything above is confusing, of course, let us know.
Alex