Topic-icon Open graph action login

Active Subscriptions:

None
12 years 8 months ago #37599 by andbal2
Hi, i need a very simple open graph action about user login; i mean publish a message when user login, for example "User is watching application name". i use community builder and jfbconnect plugin for cb. tx, best regards
The topic has been locked.
Support Specialist
12 years 8 months ago #37609 by alzander
Replied by alzander on topic Open graph action login
You can't have an action for that. It's against Facebook's Action policies and would never be approved by them. They don't allow actions to be created for registration or login events because those are too 'light' of social engagement with your app. They want actions that are real actions with social context to be shared, like uploading a photo, reading an article, joining a group, voting for something, etc. Things that another user can get a sense of what the site/content the user is engaging with is about, not just that they logged in.

I hope that helps explain,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 7 months ago #37847 by andbal2
Replied by andbal2 on topic Open graph action login
ok, i understand, so i need a joomshopping plugin to publish in timeline an advice user is watching a product. for automatic message user needs to visit content for 10 seconds right? if there isn't a joomshopping plugin i can use an action about menu item visit right? tx, best regards
The topic has been locked.
Support Specialist
12 years 7 months ago #37881 by alzander
Replied by alzander on topic Open graph action login

ok, i understand, so i need a joomshopping plugin to publish in timeline an advice user is watching a product.

I'm not sure if "Watching" is something built in to JoomShopping or not. With JFBConnect, you can create a 'custom' action, which would show a button to the user that they can click and manually post an action to their Timeline. That wouldn't need any special plugin for JoomShopping, you'd just need to add a tag like {JFBCAction id=3 title=I want this} to your template, which would show a "I want this" button wherever you place the tag. The user could then add their own custom message and there would be a link back to the product in their Timeline.

For more information on Actions, including Custom Actions, see our Open Graph Action Configuration Guide .

If you need the action to be posted to their Timeline whenever the user clicks a "Watch this" button that's a part of JoomShopping then, yes, you'd need a plugin for that to hook into that existing feature.

for automatic message user needs to visit content for 10 seconds right?

That's correct for 'consumption' type actions, like "reading an article", "watching a video", or "listening to a song". You likely couldn't use a 'consumption' action for simply looking at a product on your site as they're not really interacting with anything.

I hope that helps get you going,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 7 months ago #37898 by andbal2
Replied by andbal2 on topic Open graph action login
ok now is more clear, i understand i need a consumption type action when user read an article. i can't do this following your tutorial because in fb app developer panel, in story detail i have an alert "Unable to Generate Story." as attached
File Attachment:
The topic has been locked.
Support Specialist
12 years 7 months ago #37902 by alzander
Replied by alzander on topic Open graph action login
You don't need to configure anything in Facebook to use the Read an Article action. Both the news.reads action and article object are 'Built-In' Facebook features, so you can't create them first. You only need to create them in JFBConnect as:
Action:
* Type - news.reads
* Check the "Built-in Action" box

Object:
* Type - article
* Check the "Built-in Object" box

That should allow posting read actions to a users Activity Log. Please note that "reading an article" is very low social interaction as well, so it will generally not show in a user's Timeline. It may show in that user's friend "Ticker" and other social channels, but it's not going to be prominently displayed within Facebook compared to other types of actions that a user must intentionally (instead of just 'being' on your page).

I hope that helps get you going,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 7 months ago - 12 years 7 months ago #37908 by andbal2
Replied by andbal2 on topic Open graph action login
nothing happens, not in timeline and not in ticker. i adde information in jfbconnet opengraph control panel, not in facebook developer, right? you have in attached actions and objects screenshots


File Attachment:
Last edit: 12 years 7 months ago by andbal2.
The topic has been locked.
Support Specialist
12 years 7 months ago #37921 by alzander
Replied by alzander on topic Open graph action login
You inserted the same image twice into the post. Can you upload and insert the Action configuration as well so we can see how things are setup? We're also looking into an issue that may be a problem with our auto-posting code, but it should be an easy fix.

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

None
12 years 7 months ago - 12 years 7 months ago #37943 by andbal2
Replied by andbal2 on topic Open graph action login
sorry, you have action configuration here


File Attachment:
Last edit: 12 years 7 months ago by andbal2.
The topic has been locked.
Support Specialist
12 years 7 months ago #37992 by alzander
Replied by alzander on topic Open graph action login
Andrea,
Your configuration above looks correct, though you should not have the friends, user message or explicitly shared capabilities enabled. It shouldn't be causing the problem you're having though.

Can you please edit the /libraries/sourcecoast/openGraphPlugin.php file. Around line 180, you'll see:
$doc->addScriptDeclaration("window.addEvent('domready', function() {" .
Change that to:
$jq = JFBCFactory::config()->getSetting('jquery_load') ? 'jfbcJQuery' : 'jQuery';
           $doc->addScriptDeclaration($jq . "(document).ready(function () {" .
That should properly post to your Activity Log.

Thanks,
Alex
The topic has been locked.