Topic-icon open graph & og:type

Support Specialist
10 years 10 months ago #33965 by alzander
Replied by alzander on topic open graph & og:type
For the new user / returning user post, can you tell me the settings you've configured. In general, I'd suggest removing any image or URL link you've configured in the settings. If those don't work (the image doesn't exist or the URL isn't part of your application configuration), the post will be rejected. If you try with *just* a message, that will help narrow down what may be wrong.

The OG tags on the page you mention aren't the ones that should matter. It's on the destination album. Can you post links to the actual album home page that you are uploading the photos too? Then, we can check what the tags are there to better determine why the action isn't being set properly. It's possible there's a bug, but I can't understand where it would be happening yet.

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

None
10 years 10 months ago #34002 by albsan
Replied by albsan on topic open graph & og:type

alzander wrote: The OG tags on the page you mention aren't the ones that should matter. It's on the destination album. Can you post links to the actual album home page that you are uploading the photos too? Then, we can check what the tags are there to better determine why the action isn't being set properly. It's possible there's a bug, but I can't understand where it would be happening yet.


If I'm in the album page the og is right ... and there are no errors ... The og aren't correct in frontpage and in the joomsocial page where, as in the album page, we can upload photos.
So ... if a user upload from the album page it's ok either no ...
The topic has been locked.
Support Specialist
10 years 10 months ago #34036 by alzander
Replied by alzander on topic open graph & og:type
Alberto,
The og tag of the page you're uploading from doesn't matter. In our Open Graph plugin, we determine what the URL is for the album that's being uploaded into and use that. As long as the album og:type tag is correct, the Open Graph Action should post correctly. It doesn't matter where it's uploaded from.

On the page you're saying it's not working from, are the images being uploaded to an actual JomSocial album, or are they being uploaded to different parts of JomSocial, like a user's profile photo or something. If it's not going to an album, that would explain why the action isn't posting. I'm not sure why it wouldn't post if it's going to an album though.

Thanks,
Alex
The topic has been locked.
Support Specialist
10 years 10 months ago #34096 by alzander
Replied by alzander on topic open graph & og:type
If you're still having issues with the upload, can you try the following edit to our code. Open the /plugins/opengraph/jomsocial/jomsocial.php file. Around line 135, you'll see the following block of code:
foreach ($actions as $action)
        {
            $album =& JTable::getInstance('Album', 'CTable');
            $album->load($params->albumid);
            $url = CRoute::getExternalURL($album->getURI());
            $this->triggerAction($action, $url);
        }
Edit that and add the extra html_entity_decode line before the triggerAction call:
foreach ($actions as $action)
        {
            $album =& JTable::getInstance('Album', 'CTable');
            $album->load($params->albumid);
            $url = CRoute::getExternalURL($album->getURI());
            $url = html_entity_decode($url);
            $this->triggerAction($action, $url);
        }
Hopefully that will get you going, but if not, let us know. We're doing some tests for different ways to use the Upload Photo action and just caught that this can be an issue in very specific configurations.

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

None
10 years 10 months ago #34107 by albsan
Replied by albsan on topic open graph & og:type
seems that now works fine ... I'll send you a notification after the FB developer app approvation.

tx a lot
The topic has been locked.