Skip to content

Commit 4f27506

Browse files
committed
[Open Graph] Removed support for custom objects and actions.
These features are only removed from the settings file. The code for both features remains. This change is for the version bump to 4.0-final. Because Open Graph actions are not fully implemented (some JavaScript code still needs to be written), they will not make the cut for 4.0-final. Support for these features is being pushed back to a later release. Development for custom objects actions will take place in the "opengraph" branch on GitHub and will be merged with master "when it's done".
1 parent bc0ee4b commit 4f27506

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

Facebook/config.default.php

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -113,53 +113,6 @@
113113
# 'upload' => 'upload',
114114
);
115115

116-
/**
117-
* Here you can define custom objects and actions for your wiki.
118-
*
119-
* By setting $wgFbOpenGraphCustomObjects to true, you can enable custom
120-
* objects on your wiki. Custom objects allow your wiki to more deeply
121-
* integrate into the social graph. For example, let's say the Star Wars wiki
122-
* registered the "spaceship" object on Facebook and included the parser hook
123-
* <opengraph type="spaceship"/> on the Millennium Falcon page
124-
* (http://starwars.wikia.com/wiki/Millennium_Falcon). Now, in the Open Graph,
125-
* this url represents a spaceship instead of an article.
126-
*
127-
* Custom actions allow your users to interact with objects in creative and
128-
* meaningful ways. In the example above, let's say the Star Wars wiki defines
129-
* the "drive" action and connects it to the spaceship and landspeeder objects
130-
* in the Open Graph Dashboard, and then specifies the relationship here:
131-
* $wgFbOpenGraphCustomActions['drive'] => array('spaceship', 'landspeeder');
132-
*
133-
* When this action-object connection is made, the user's private activity log
134-
* (and maybe their friends' new feeds) will say "USER drove the [[Millennium
135-
* Falcon]]" with a link to the wiki page. Assuming you define some aggregations,
136-
* a Timeline View for your app will be visible at the top of the user's Timeline.
137-
* When sufficient connects are made, the user's Timeline will feature a Report
138-
* showcasing their interactions with your app.
139-
*
140-
* Actions can be placed in your wiki using the same <opengraph> tag:
141-
* <opengraph action="drive">Drive the {{PAGENAME}}!</opengraph>
142-
* For further documentation on the <opengraph> tag, refer to:
143-
* http://www.mediawiki.org/wiki/Extension:Facebook. The actions you registered
144-
* in $wgFbOpenGraphRegisteredActions can't be used with custom objects.
145-
*
146-
* If your wiki monetizes advertising, action specs can be used in ad targeting
147-
* to reach out to people based on their actions. For more information see:
148-
* https://developers.facebook.com/docs/reference/ads-api/action-specs-custom/
149-
*
150-
* Developer's cheat sheet:
151-
* $object = FacebookOpenGraph::newObjectFromTitle( $titleObject );
152-
* $actions = $object->getCustomActions();
153-
*
154-
* If you're not a developer, pester Facebook to design a <fb:action> social
155-
* plugin or extend <fb:like> to replace "like" with a custom action.
156-
*/
157-
$wgFbOpenGraphCustomObjects = false; # set to true to enable the <opengraph> tag
158-
$wgFbOpenGraphCustomActions = array(
159-
# 'drive' => array('spaceship', 'landspeeder'), # For example
160-
# 'want' => array('*'), # Matches all custom (non-article and non-file) objects
161-
);
162-
163116
/**
164117
* Allow the use of social plugins in wiki text. To learn more about social
165118
* plugins, please see: https://developers.facebook.com/docs/plugins/.

0 commit comments

Comments
 (0)