× Joomla Facebook Connect support forum

Topic-icon Support for Facebook Graph Actions

Active Subscriptions:

None
11 years 5 months ago #28160 by Ivan
Hi Alex,

In libraries/facebook.php is the code to post $apiData = $fbClient->api($api, $method, $params);

Do I need to pass explicitly share in $params. I used the code about to create the actions. How/Where to add the explicitly_shared parameters?
The topic has been locked.
Support Specialist
11 years 5 months ago #28168 by alzander
Yes, to set the explicitly_shared parameter, you should just be able to pass that in in the $params variable. You should set that wherever you are making the ->api call from.

As for using the explicitly_shared parameter, please make sure you're following Facebook guidelines for using that setting. The user really needs to understand that the action is going to be posted to their timeline.

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

None
11 years 5 months ago #28247 by Ivan
Alex,

I checked the files for 1.5 in JFBConnect-4.2-Joomla15_20120906_unzip_first I dont see the file components/com_jfbconnect/models/opengraphaction.php

I have 4.2.3. I thought installing to the latest version for 1.5 would have this file
The topic has been locked.
Support Specialist
11 years 5 months ago #28248 by alzander
JFBConnect v4.3 is what has support for Open Graph Actions. Currently, it's only available for Joomla 2.5+. We're working on the Joomla 1.5 version, which should be out next week.

Hope that helps explain, and sorry for the delay,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 5 months ago #28249 by Ivan
Thanks.
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #28407 by Ivan

alzander wrote: Yes, to set the explicitly_shared parameter, you should just be able to pass that in in the $params variable. You should set that wherever you are making the ->api call from.

As for using the explicitly_shared parameter, please make sure you're following Facebook guidelines for using that setting. The user really needs to understand that the action is going to be posted to their timeline.

Hope that helps,
ALex



Is this the right way to do this

/** Facebook Graph Action - Add  **/ 
            $non_sef_uri = 'index.php?option=com_mycomponent&view=ids&gid='.$goal_id.'&fb:explicitly_shared=true'; 
            $args = array(); 
            $args['goal'] = 'http://'.$_SERVER['SERVER_NAME'].'/'.$non_sef_uri; 
            $fbClient->api('me/my_app:share', $args);
The topic has been locked.
Support Specialist
11 years 4 months ago #28584 by alzander
No, for the explicitly_shared parameter, you'd need to set that as an argument. I haven't tested with that setting much, but I believe the code should look like:
** Facebook Graph Action - Add  **/ 
            $non_sef_uri = 'index.php?option=com_mycomponent&view=ids&gid='.$goal_id; 
            $args = array(); 
            $args['goal'] = 'http://'.$_SERVER['SERVER_NAME'].'/'.$non_sef_uri; 
            $args['fb:explicitly_shared'] = true;
            $fbClient->api('me/my_app:share', $args);
Hope that helps, but we'd love to know how that works out. Also, please make sure you're following Facebook's guidelines on how you're allowed to use that parameter.

Alex
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #28751 by Ivan
This seems to work , but you would have to resubmit the action then click on the explicit option and submit before invoing the action. Mine is still pending or now.

On another note do you think it would be Explicit Sharing if whenever I submit an item I have a checkbox that says Post to Timeline or something to that extent.
The topic has been locked.
Support Specialist
11 years 4 months ago #28771 by alzander
Yes, you need to be re-approved when using the Explicity Shared option. There's no way around that, Facebook wants to make sure their options are being used correctly.

On another note do you think it would be Explicit Sharing if whenever I submit an item I have a checkbox that says Post to Timeline or something to that extent.

I believe so, but their documentation on what qualifies is definitely a little vague. In that case, they are explicitly agreeing to share the content, so I'm not sure why it wouldn't qualify, but their examples don't really show exactly what they do want.

If you submit with a checkbox, let us know how it goes!

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

None
11 years 4 months ago #28781 by Ivan
My Graph action got rejected. This is the message I recieved...

Explicitly shared content needs to be optional for users to post and have a sharing control that's visible in every instance of sharing (not separate in a settings area). The content should have a user-generated component or the user needs to be taken out of the natural flow of the app in order to make a conscious decision to publish the story back to Facebook. Your current action integration should not be labeled as explicitly shared. For further information, please see here: developers.facebook.com/docs/submission-...es/#explicitlyshared


On my app I have a little FB Icon that when you hover it has a tooltip that says post to facebook wall. Once you click on it, it would do the graph action. It seems like they are telling me this is not right and that i should use some type of popup maybe?
The topic has been locked.