Topic-icon Share JEvent event creation/edit to creator's FB acct via OpenGraph

Active Subscriptions:

None
Hi Guys

I just can't wrap my head around the FB OpenGraph… A GUI system is good, but I found myself staring at the field in FBConnect not knowing how to relate that to what I am trying to do… Some help is much appreciated!

I want users to publish the details of their events (created by JEvents) on their own FB pages via JFBConnect. Questions…

1. So far it seems to be set as an OG object on the timeline, is it possible to share it as a FB event?
1a. If possible, I suppose the App need to be approved by FB? What specific steps do I need to take to enable this?

2. Since a JEvent object is not available by default (see attached), I created a new custom type, but what should I set for the URL Query Parameter and Open Graph Tags? For example, I can view the event at this URL:

xxx.com/find-events/this-week/eventdetail/1027/-/test
xxx.com/component/jevents/eventdetail/1028/-/test?Itemid=101
xxx.com/find-events/this-week/eventsbyday/2015/6/19/-
xxx.com/my-events/event/89/-

All these are the possible ways a user can reach this event. What is the best practice in configuring URL Query Parameter and Open Graph Tags?

Thank you for your help. I am sure if I spend more time on the FB API, I can get a better understand of what is going on, but for now. It assumes you know how things flow and you just point and click… And that's not the case for me and many users… So thank you for your help.

regards,
SH
The topic has been locked.
Support Specialist
You can't share a page and have it create an event within Facebook, if that's what you're looking for. When you share a page, it will always show up in the Activity Log (and possibly Timeline) of the user. What shows up in the feed post depends on the tags that are set. For the 'type' of feed post that is shown, JFBConnect will default to 'article'. There are various other built-in Facebook Objects you can use from the page below:
developers.facebook.com/docs/reference/opengraph/

As for your questions:

1. So far it seems to be set as an OG object on the timeline, is it possible to share it as a FB event?
1a. If possible, I suppose the App need to be approved by FB? What specific steps do I need to take to enable this?

Once you create a custom object, you'll need to submit it for review to Facebook. You don't need to submit custom Objects for review. You only need to submit 'actions' that are performed on those objects. So, if you create an 'event' object and then create some actions like "attend", "loved", and "recommend" that your users can perform on those event pages, you'd need to submit those for review. We support Open Graph Actions by letting you create the Action in JFBConnect that you setup within your Facebook App and then you can add buttons, like "I attended this" to the event page for users to click.

2. Since a JEvent object is not available by default (see attached), I created a new custom type, but what should I set for the URL Query Parameter and Open Graph Tags? For example, I can view the event at this URL:

There was no attachment. After you upload the file, please make sure you click the green arrow to insert it.

All these are the possible ways a user can reach this event. What is the best practice in configuring URL Query Parameter and Open Graph Tags?

You should disable SEF URLs and then look at each of those links. They'll likely look something like:
index.php?option=com_jevents&cat_id=123&id=456
If so, you can add the query parameters as specific as you like:
option=com_jevents <-- This by itself would make the object apply to all JEvents pages
cat_id=123 <-- This with the above will make the object apply to all JEvents pages in the 123 category
id=456 <-- This with the option param will apply to only item 456 within JEvents

I hope that helps explain some more, but if you need anything else, just let us know.

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

None
Hi Alex

Thank you for your reply and inputs! Much appreciated. Let me add a bit more details to my situation so hopefully it makes a useful read for other people in the future. For now, there is a lot of disconnect on FB's documentation page since it does not really seem to be written fro user of JFBConnect since a lot of the nitty gritty details have been covered by JFBConnect, but what exactly do I have to do to achieve my goal is not clear.

On my site, users can create events via JEvents. I would like these users to "share" or "push" these events back to their FB accounts. Along that, I would like these event objects to support the following actions:

1. Share
2. Like
3. Comment
4. Attend

Based on what I have seen so far, none of the built-in OG objects seems to be a perfect fit, so I think a custom OG object is the way to go. So if I go to JFBC: Open Graph and start a new object, then it looks like Attachment 1, and the questions are:

1. what should the Object Type be?
2. For URL Query parameters, I'll just put option=com_jevents as you suggested… It should be good enough for now.
3. Open Graph tags? I guess I can leave these blank for the time being.

Then what? I guess I need to specify appropriate actions for this object? It's really confusing to create objects and actions without knowing exactly what object types it belongs to and what set of actions are available to it…

1. I guess I can go "JFBConnect: Open Graph - Edit Action" to specify something… But what does that something exactly allow me to do? It's not clear to me.
2. And how do I bind this new action to actually effect "Share/Like/Comment/Attend" or "so and so published an event and here is the detail"?
3. I then have to submit this to FB for approval?…

It looks like JFBConnect is great if I stay within the provided scope. I am sure a lot more can be accomplished but then I found the pertinent collaterals and information to be difficult to come by. This is not specifically JFBC's problem, but more on integrating w/ FB, but since I am using this bridge, I really need your help. If there is something you can point me to or a useful example/doc, I'd be more than glad to study them.

Thank you for your help, Alex. Much appreciated.

SH
The topic has been locked.
Support Specialist

On my site, users can create events via JEvents. I would like these users to "share" or "push" these events back to their FB accounts. Along that, I would like these event objects to support the following actions:

1. Share
2. Like
3. Comment
4. Attend

It sounds like you should create a custom object for "event". Then, set that event as the type for each JEvents page it should apply.

Share, Like and Comment *can* be a separate Open Graph Action, but there are already widgets to perform each of those actions. I'd recommend using the Facebook Like or Share button and Comment box, if you aren't already. If JEvents has it's own Like, Share and/or Comment area, you *can* create a custom action that is triggered when those features within JEvents are used.. however, JFBConnect doesn't have built-in integration for JEvents, and to 'hook' into their features like that will take some code.

The "Attend" option can be done in a few ways as well. If JEvents doesn't have an "Attend" button already, you can create an Action in the Open Graph area of both JFBConnect and the Facebook Developer area. Then, on your site, you can add {JFBCAction id=1 text=I'm Attending This!}. That will add a button that a user can click to push a status update to Facebook that they're attending the event.

If JEvents does have it's own "Attend" button that you want to hook into, again, this would take some integration code in an Open Graph plugin to support that connection.

So if I go to JFBC: Open Graph and start a new object, then it looks like Attachment 1,

There was not attachment in the post. After you upload, please use the green arrow to insert into the post.

1. what should the Object Type be?
2. For URL Query parameters, I'll just put option=com_jevents as you suggested… It should be good enough for now.
3. Open Graph tags? I guess I can leave these blank for the time being.

1) The Object type can be whatever you want. It's always best to use a object that is already defined within Facebook as they'll have better ways to display it. If you don't, though, you can call the object whatever you want... event, party, gala, conference, etc. It will end up being namespaced using your Facebook App Namespace, like "myconferencewebsite:event" so that your definition for "event" will never be the same/collide with another site's "event" object type.
2) Sounds right
3) Sounds right. Unless you want to force the title, description or something else to always be the same for every event, you should leave this blank and let JFBConnect use the meta title/description for the page.

In general, you're on the right track. Unfortunately, Open Graph Actions can be extremely cumbersome to implement for a few reasons:
1) Facebook's system is wonky (and changing constantly)
2) JFBConnect is admittedly wonky
3) JFBConnect has built-in support for some actions in 3rd party extensions.. for example, you can create an action for when a comment is left on a K2 article, an image is uploaded in JomSocial or a review is left in JReviews. With that, whenever a user uses the features of those extensions, the action is automatically posted for them. Unfortunately, we can't create Open Graph plugins and all the integration necessary to tie into every other extension's feature on our own.. and we don't have support for JEvents, which means there's no way to tie into the features/buttons/options in JEvents right now. Instead, you can use the {JFBCAction ..} tag to add your own button, but that may be duplicative and confusing in general.

I hope that all helps explain, but of course, keep coming back with any questions.

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

None
Hi Alex

The FB OG is simply horrendous to work with.

I created an App to allow logging to my Joomla site with FB account (standard procedure) and this app did not require approval. In order for me to achieve what I described before (sharing events), can I add to this app or do I need to create a new one?

In the meantime, JEvents does have a plugin that hooks into FB, and I'm trying to find out more from them…

I'll relay what I found so hopefully other users can benefit from it too.

SH
The topic has been locked.
Support Specialist
Facebook's Open Graph Actions are very tricky to implement. For a website that's built from the ground up, it's simpler to add the action calls because you have full control of the code. With JFBConnect, we have to go through many hoops to try and hook into various extensions, which is why we don't support native actions in a lot of 3rd party extensions. Each action we add takes a ton of effort and support.

I created an App to allow logging to my Joomla site with FB account (standard procedure) and this app did not require approval. In order for me to achieve what I described before (sharing events), can I add to this app or do I need to create a new one?

You should only use one App on your site. Using multiple Applications will cause you issues in the long run. If you add more features that require additional permissions, your users will be prompted for the additional permissions when they authenticate the next time.

I hope that helps explain,
Alex
The topic has been locked.
Support Specialist
Oh, and any info or experiences you have with the JEvents Facebook integration would be great to hear about!

Alex
The topic has been locked.
Active Subscriptions:

None
Hi Alex

Good news. Pls see details below. I think we have solved the case.

"The JFBC system plugin is stripping out our call to:

<script id="facebook-jssdk" src="//connect.facebook.net/en_US/all.js"></script>

It would appear Facebook have yet again deprecated API's and all.js is classed as out of date. I have therefore updated the plugin to use the SDK.js Version 2.0 and this is now working along side your JFBC plugin."
The topic has been locked.
Support Specialist
Fantastic! I'm glad to hear you got things going. If you run into any other issues or have any suggestions on how to improve JFBConnect, definitely let us know.

Thanks,
Alex
The topic has been locked.