Skip to content
Extraits de code Groupes Projets
Valider 64bf4a1f rédigé par Maxwell Salzberg's avatar Maxwell Salzberg
Parcourir les fichiers

adding the ability to customize your open graph namespace

parent 36ebefea
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -26,8 +26,12 @@ module OpenGraphHelper
end
def og_type
# the diaspora og namespace was already taken :(
meta_tag_with_property('og:type', 'joindiaspora:post')
meta_tag_with_property('og:type', og_namespace('frame'))
end
def og_namespace(object)
namespace = AppConfig[:open_graph_namespace].present? ? AppConfig[:open_graph_namespace] : 'joindiaspora'
"#{namespace}:frame"
end
def og_page_specific_tags(post)
......
......@@ -200,6 +200,9 @@ defaults: &defaults
facebook_app_id: ''
facebook_app_secret: ''
#this will be the namespace for your object, it should be configured in your FB app
open_graph_namespace: ''
## OAuth credentials for Twitter:
twitter_consumer_key: ''
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter