Topic-icon Facebook open graph Invalid parameter error

Active Subscriptions:

None
9 years 5 months ago #48555 by natkol
I log into JomSocial using the Facebook option

On the front page if I do a new wall post and add a photo is when you get the links without the unique ID. I have tried that and the steps below.

I click on photos once logged in from the JomSocial toolbar

I then click create new album on the top right corner

I name it and give it a description and click save.

I then from within that album click upload photos.

I select a couple photos and upload

I then go in and check the activity log

And that's the error messages that I've been posting
The topic has been locked.
Support Specialist
9 years 5 months ago #48584 by alzander
We just tested from another system with an almost identical configuration and it ran into issues with the above code. We're still sorting things out, so want to reiterate that the above isn't a guaranteed solution. Feedback will be welcome on improvements.

Some things to note/check:
* Make sure the album is publicly visible so that Facebook can scan it
* Check the source HTML of the page and look for og:image tags. JomSocial sets a few incorrect ones that don't use the correct full URL path. There's a block of JFBConnect tags and, in there, should be an og:image tag that uses the full path with the code above.

However, on the other site we just tested with, the og:image tag was already a full URL, so the above code made the URL really funky with 2 domains and things still didn't work. Not sure what was different though... very strange

Alex
The topic has been locked.
Active Subscriptions:

None
9 years 5 months ago #48585 by natkol
I'm glad I was able to help find these bugs. Glad I wasn't having issues because of something I did. I will leave it be and let you guys finish your testing before I make any changes. Thanks for working with me on this and following through. Much appreciated.
The topic has been locked.
Active Subscriptions:

None
9 years 5 months ago #48606 by natkol
I did finally get a chance to test those changes. It is still not working yet. I have attached screenshots to show what errors are now. Also, is there an easy way to delete all activity in the open graph error logs? I don't see a select all or delete all option and I have over 14 pages of logs in there. I also attaching a copy of the jomsocial.php file to have you make sure I did the correct changes.

Thanks so much,
jomsocial.zip

File Attachment:
The topic has been locked.
Support Specialist
9 years 5 months ago #48619 by mel
I just wanted to comment really quickly that we're still looking into this. The code attachment you provided looked correct, but as Alex said we are still having problems getting that to reliably work.

Also, is there an easy way to delete all activity in the open graph error logs? I don't see a select all or delete all option and I have over 14 pages of logs in there.

I've put this into our issue tracker to add in a future release, but in the meantime if you update the following code, it should get you going on Joomla 3.x.

Edit /administrator/components/com_jfbconnect/views/opengraph/tmpl/activitylist.php, at line 55, replace:
<th>#</th>
<th></th>
with
<th>#</th>
<th><?php echo JHtml::_('grid.checkall'); ?></th>
The topic has been locked.
Active Subscriptions:

None
9 years 5 months ago #48622 by natkol
Perfect! Thanks!
The topic has been locked.
Support Specialist
9 years 5 months ago #48631 by mel
In /plugins/opengraph/jomsocial/jomsocial.php, could you replace the test code that Alex gave you
$image = $album->getCoverThumbPath(); 
$imageUrl = CRoute::getExternalURL($image); 
$this->addOpenGraphTag('image', $imageUrl, false);

with the following:
$image = $album->getCoverThumbPath();
$uri = JURI::getInstance();
$base = $uri->toString(array('scheme', 'host', 'port'));
if(strpos($image, $base) === false)
   $image = CRoute::getExternalURL($image);
$this->addOpenGraphTag('image', $image, false);

and let us know how this works for you?

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 5 months ago #48651 by natkol
Tested the new code and still getting invalid parameter message. I can give you guys joomla and cpanel access if you would like to test different codes.
The topic has been locked.
Support Specialist
9 years 5 months ago #48652 by mel
Yes, please PM me site credentials and FTP access credentials if possible and we'll look into it more.
The topic has been locked.