× Joomla Facebook Connect support forum

Topic-icon Graph Tags Issue

Active Subscriptions:

None
14 years 1 month ago #21937 by Ivan
Graph Tags Issue was created by Ivan
Hi,

In JFBConnect 4.1.2 i edited some code in _getJFBCGraphTags function particularly
 if (strpos($headerGraphString, 'og:type') === false)
            {
             //   $isHomePage = $this->isHomepage();
             //   if ($isHomePage)
             //       $type = "website";
             //   else
             //       $type = "article";
                $headerGraphString .= '' . $carriageReturn;
            }

And in _getJFBCGraphProperty() . I did both these changes to render the games.achievements tag on my site
However i notice that these 2 functions are not located in the system plugin for this new version.
Where can i make changes to the code to mimick what im doing in these codes on the new version of the system plugin?

if (strpos($graphName, ':') === false)
            {
              //  if ($graphName == 'admins' || $graphName == 'app_id')
             //       $graphName = 'fb:' . $graphName;
             //   else
            //        $graphName = 'og:' . $graphName;
                    
                    
                 /** Code Edit  **/    
                if ($graphName == 'admins' || $graphName == 'app_id'){

                $graphName = 'fb:' . $graphName;
                }
                elseif($graphName == 'points'){
                $graphName = 'game:' . $graphName;
                }
                else{
                $graphName = 'og:' . $graphName;
                }         
                                         
                    
            }
The topic has been locked.
Support Specialist
14 years 1 month ago #21972 by alzander
Replied by alzander on topic Graph Tags Issue
We've moved all the Open Graph functionality to a separate library file at /libraries/sourcecoast/openGraph.php. You should be able to find what you're looking for in there, but if you have any issues, let us know and we'll help you locate it.

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

None
14 years 1 month ago #21986 by Ivan
Replied by Ivan on topic Graph Tags Issue
Okay,

I managed to find the code where you specified. However I have one more issue.

Where can i find _getJFBCRequest(); I checked the system plugin and i cannot find that code in that file.
Was it moved somewhere else as the latter? Please let me know as i also modified a section of this code on my site.
The topic has been locked.
Support Specialist
14 years 1 month ago #22019 by alzander
Replied by alzander on topic Graph Tags Issue
That file moved to the /libraries/sourcecoast/easyTags.php file.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 1 month ago #22251 by Ivan
Replied by Ivan on topic Graph Tags Issue
Thanks. I found it.
The topic has been locked.
Support Specialist
14 years 1 month ago #22260 by alzander
Replied by alzander on topic Graph Tags Issue
Glad that got it for you!
The topic has been locked.