× Joomla Facebook Connect support forum

Topic-icon $jfbcLibrary->setFacebookMessage("$comment");

Active Subscriptions:

None
if ($jfbcLibrary->getUserId())
{
$jfbcLibrary->setFacebookMessage("$comment");
echo "got here: jfbcLibrary->getUserId jfbcLibrary->setFacebookMessage and comment";
}

Last year Alex showed me how to use the above code (minus the echo) to post text, a comment, to Facebook. It was working fine, then my client contacted me abut it now failing. Sure enough she is right. I retested the code on my test website, www.jtest.us, and it is working with the latest version of jfbconnect, but on her website, no dice. I copied my test script from my site to hers, made sure the component and plugin is installed and such, no dice. I added some comments into my script to ensure that we're getting past the base tests and we're good.

For whatever reason, $jfbcLibrary->setFacebookMessage("$comment"); seems to be failing.

If you wish to take a look, you will of course need to to first login with facebook then visit thetest page:
www.unbridledrider.com/index.php?option=...&view=article&id=312

Alex may still have a username - AlexAndreae. Do you have any error checking that I can add to the page, other ideas? Thx.
The topic has been locked.
Support Specialist
14 years 6 months ago #16306 by alzander
Check the following:
* In the JFBC Configuration area, in the Permissions tab, make sure the "Require Status Update Permission:" setting is enabled.
* In the "Status/Wall" tab, make sure the "Enable Status Updates:" is enabled.

Those are the only 2 settings that should be required. If that still doesn't work, enable the "Display Facebook API Errors on Front-end" setting in the Facebook API tab, and let us know if there are any errors appearing.

Hopefully, that will get you going. In the 4.1 release (this month), we're removing a lot of those settings to make it more automated to make sure the right settings are enabled depending on your configuration.

If none of the above helps though, let us know, and we'll test. If necessary, I may need admin access, if that's alright.

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #16307 by bobmeetin
In the "Status/Wall" tab, make sure the "Enable Status Updates:" is enabled. ==>> That did it. I'm sort of wondering out loud why that would have been turned off. One concern that we had in the past was with everyone's not site-related facebook status updates automatically getting posted to the jomsocial activity stream. Would I have disabled it to prevent that problem?

You deserve a pat on the back. But don't twist your own arm in the process. Ciao, Bob
The topic has been locked.
Support Specialist
14 years 6 months ago #16313 by alzander
Glad to hear that did it for you. Both of those settings are a little redundant.. and in the 4.1 release, they're both actually being removed (cleaning house!). Facebook's changing the login pop-up permissions box, and we're preparing in the next release for it. Not sure why it was disabled though.. it's possible you did so for the JomSocial thing, but that wouldn't have fixed the problem, and the newer JS profile plugins only pull real status updates.. so it shouldn't be a problem going forward either :)

Good luck,
Alex
The topic has been locked.