Topic-icon Opengraph not working

Active Subscriptions:

None
13 years 5 months ago #29319 by davlog
Opengraph not working was created by davlog
Hi,

I've been trying to get this working all weekend to no avail. I have followed your Step by Step instructions to get Opengraph configured but cannot even get the activity log to show an error or even a log. I've tried this with both com_content and K2 with no luck...Ive done a search on this forum and found a similar issue (see link below) however the fix here is already present in the K2 version I am using.

www.sourcecoast.com/forums/jfbconnect/jf...h-won-t-work-with-k2

I am using the latest Joomla (2.58), K2 2.62 and have updated all JFB plugins. Just as in the post above I am not even getting the Javascript notification box.

Site URL: www1.aerosolplanet.com/site2

K2 Category (Europe Artists) : www1.aerosolplanet.com/site2/index.php?o...ory&id=63&Itemid=442

I have used the default FB objects / Actions of Read / news.reads. I have associated both articles and k2 items to this however have now removed articles as I do not use on the site anyway. All of the settings are as laid out in the tutorial and in the post above.

I've enabled the debug mode in Jfbconnect and error reporting to maximum but dont see any errors pertaining to this..I've also ru through Facebook dev debug tool but not sure what I am looking for here:

developers.facebook.com/tools/debug/og/o...olplanet.com%2Fsite2

Current Settings:

Action Settings:
Action: news.reads
Built-In FB Action: Y
Object Associations: K2 item [k2 - item]
Unique Action: One time only
Multiple Action Frequency: One day
User Can Disable: Yes
Action Type: On Page Load
On Page Load Timer: 15

Object Settings
Extension: K2
Layout: Item
Name: K2 Item
Object Type: article
Built-In Facebook Object: Y
Select a category: Europe Artists

Facebook Code
curl -F 'access_token=AAACeqGLMPIIBAAv6R1CGJEZBB0PSsrFmcYYcv73Lgmc1QsxvAHoHJMq4P1LTdaQEgDQZBaDgi93S1lZASHUQghJiqRUHbTPZCIqZA876ZBqAZDZD' \
     -F 'article=http://samples.ogp.me/434264856596891' \
        'https://graph.facebook.com/me/news.reads'
meta property="fb:app_id" content="174446049246338" /
  meta property="og:type"   content="article" /
  meta property="og:url"    content="Put your own URL to the object here" /
  meta property="og:title"  content="Sample Article" /
  meta property="og:image"  content="https://s-static.ak.fbcdn.net/images/devsite/attachment_blank.png" /

Object : article
Action: news.reads


Any ideas.?

Dave
The topic has been locked.
Support Specialist
13 years 5 months ago #29320 by alzander
Replied by alzander on topic Opengraph not working

however have now removed articles as I do not use on the site anyway

Are there any articles you can link to that we can test with? It's difficult to solve the problem without being able to test at all.

If you can configure an action for K2 or Joomla articles that should work, and then post a link to that article, that would help a lot. Beyond that, I'm not sure how we could diagnose it form the information you provide because, from your description, everything is setup right.

Once the action is setup, please leave the "Show FB API Errors on Front-end" setting enabled so we can see what happens.

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

None
13 years 5 months ago #29321 by davlog
Replied by davlog on topic Opengraph not working

however have now removed articles as I do not use on the site anyway

Are there any articles you can link to that we can test with? It's difficult to solve the problem without being able to test at all.

I have only removed com_content articles - K2 items still remain.

If you can configure an action for K2 or Joomla articles that should work, and then post a link to that article, that would help a lot. Beyond that, I'm not sure how we could diagnose it form the information you provide because, from your description, everything is setup right.

I have already stated in my initial post that the Europe Artists Category (and its articles) are set up and have provided a link.

Once the action is setup, please leave the "Show FB API Errors on Front-end" setting enabled so we can see what happens.

As per my initial post I have already done this. I've tried having a look for Javascript errors etc using Firebug but dont really know what Im looking for. Im willing to provide backend details if you require so you can verify if Ive setup correctly

Regards,

Dave


Thanks,
The topic has been locked.
Support Specialist
13 years 5 months ago #29322 by alzander
Replied by alzander on topic Opengraph not working
Dave,
Thanks for more information. I just registered and created an account on the site. When I go to the " Slider " K2 Item, I'm properly seeing the Open Graph Action trigger being included in the HTML:
window.addEvent('domready', function() {setTimeout(function(){jfbc.opengraph.triggerAction('4','http://www1.aerosolplanet.com/site2/index.php?option=com_k2&view=item&id=1485:slider&Itemid=442');}, 15000);});

If I try to manually run that Javascript on the page by putting the following in the URL bar, I properly see the popup:
javascript:jfbc.opengraph.triggerAction('4','http://www1.aerosolplanet.com/site2/index.php?option=com_k2&view=item&id=1485:slider&Itemid=442');

So, that means the Javascript we're including isn't being executed. Looking at the Error Console on that page, there are multiple issues. The one below is likely the failing Javascript code that's preventing all future code from running:
Uncaught TypeError: Cannot call method 'setStyles' of null       gk.scripts.js:41
You'll need to debug why that gk.scripts file is throwing a Javascript error and fix it. That should properly allow other Javascript to continue executing and hopefully get you going.

As a further test and verification, you can see that the popup appears if you simply use a different template:
www1.aerosolplanet.com/site2/index.php?o...=442&template=atomic

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

None
13 years 5 months ago #29323 by davlog
Replied by davlog on topic Opengraph not working
Hi Alex,

Brilliant work !! - Many thanks....I think I know what the issue is.....This template was originally based on Gavick TWNII...I have seriously modified this a recently and about a month ago took out the Style Changer so the template is probably calling a script but its no longer in the code..... Now I just need to find it...

Many thanks.

Dave
The topic has been locked.
Active Subscriptions:

None
13 years 5 months ago #29324 by davlog
Replied by davlog on topic Opengraph not working
Hi,

Removed conflicting script and all working now so many many thanks for your prompt response.....Heard many good things about support here so took the plunge this weekend and so far very impressed with the component, documentation and the support...Will post review on JED once I've finished playing...

Dave
The topic has been locked.
Support Specialist
13 years 5 months ago #29325 by alzander
Replied by alzander on topic Opengraph not working
Dave,
Glad to hear we got you going and happy we lived up to our reputation :D Also, sorry for the bit of confusion I had there with my first response.. we *hate* when support basically regurgitates our question back to us, and that's what I did, unintentionally, after I quickly read your first post.

Anyways, hope it's all smooth sailing from here, but if not, you know where to find us. We'd love that JED review when you get a chance. It's (mainly) where we get our good reputation from, so letting others know your experience with the extension, or our support, helps us a lot.

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

None
13 years 5 months ago #29326 by davlog
Replied by davlog on topic Opengraph not working
Hi Alex,

No worries at all and once again , many thanks...I'm addicted to this component now....I have a few more questions but will keep to individual threads....

Dave
The topic has been locked.
Support Specialist
13 years 5 months ago #29330 by alzander
Replied by alzander on topic Opengraph not working
Glad to hear you're addicted. There's definitely a lot of features in JFBConnect, so we like to hear 'addicted' over 'confused and overwhelmed'. We'll look forward to your posts.

If you have any feedback on the component, or anything else, we'd love to hear it.

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

None
13 years 5 months ago #29442 by dmollo
Replied by dmollo on topic Opengraph not working
I have just purchased jfbconnect and after successful set up, I tried to follow the open graph video. Opengraph/objects/new/group.. and once I choose group, joomla just goes to a white screen.. nothing else happens.. I believe I successfully set up actions/ojects in my fb app..
any ideas... slightly stumped.. Sticky
The topic has been locked.