× Joomla Facebook Connect support forum

Topic-icon Open Graph Issue game:points

Active Subscriptions:

None
14 years 7 months ago #14557 by Ivan
Hi,

How can i write the game:points tag using the graph in JFBconnect.

It seems to write og:game:points if i do {JFBCGraph game:points=50}
The topic has been locked.
Support Specialist
14 years 7 months ago #14561 by alzander
Ivan,
Use {JFBCgraph points=50} for now. That will insert the tag og:points, which is correct. Facebook just announced (less than a week ago) that you should use game:points, but that og:points will continue working through February:
developers.facebook.com/blog/post/574/

We'll be updating JFBConnect in a future release to allow more custom tags, as that seems to be the way Facebook is going (not everything starts with og: or fb:)

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

None
14 years 7 months ago #14562 by Ivan
Replied by Ivan on topic Open Graph Issue game:points
the debugger is still giving me an error with that tag. is there any quick snippet of code that i can use to get this working.... I will send you the url u can verify that it doesnt work with the linter
The topic has been locked.
Support Specialist
14 years 7 months ago #14588 by alzander
Ivan,
Not sure why the Linter is throwing an error with that. Facebook says it should work, and the linter isn't always perfect, so it still may work.

However, if you want to make the change, in the /plugins/system/jfbcsystem.php file, if you search for "admins", you'll see a block of code around line 1140 where you can add an additional check for if the Open Graph tag is "points" or something similar, and instead prepend game.. like what we do for the fb and og tags.

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

None
14 years 7 months ago #14607 by Ivan
Replied by Ivan on topic Open Graph Issue game:points
I edited the code and finally got the points the way it needs to be in the headers. however at my achievements url i was still getting the wrong url so i had to comment out the first if statement in the code for og:url at _getJFBCGraphTags(),

if (strpos($headerGraphString, 'og:url') === false)

the api would pick up this as default and not the tag i set it to in the achivements page.
The topic has been locked.
Support Specialist
14 years 7 months ago #14613 by alzander
Ivan,
Glad you got it going. The URL tag is automatically set by JFBConnect if not specifically set. Commenting it out is fine, but you should specify it somewhere if possible.

Good luck,
Alex
The topic has been locked.