|
113 | 113 | # 'upload' => 'upload', |
114 | 114 | ); |
115 | 115 |
|
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 | | - |
163 | 116 | /** |
164 | 117 | * Allow the use of social plugins in wiki text. To learn more about social |
165 | 118 | * plugins, please see: https://developers.facebook.com/docs/plugins/. |
|
0 commit comments