7 votes
Accepted

How to use drupal_add_html_head() to add the same metatag multiple times?

The tags are stored by key, so using a different key for each should do the trick: $delta = 0; foreach ($images as $image) { $element = array( '#tag' => 'meta', '#attributes' =&...
Clive's user avatar
  • 167k
3 votes

How to add the domain to the Link field?

I would do the following: Implement hook_field_widget_single_element_form_alter(), and add an #element_prefix key in front of the URL field with the domain. This will handle the display. Create a ...
Jaypan's user avatar
  • 17.6k
2 votes
Accepted

Is it possible to post video on Facebook user timeline using Facebook Autopost module?

No. Not without building upon it. While the version of the FB PHP SDK (3.2.3) that the module relies on supports uploading video, there is no support for it in the module. Looking at the current ...
Shawn Conn's user avatar
  • 26.9k
2 votes

How to install oAuth using PHP 7 and PECL OAuth library?

Well, while I have no final solution, since I humbled over the same issue 2 years later today, I can at least put some more light on it and help with some more tests, etc. First things first: There ...
nilsun's user avatar
  • 577
2 votes
Accepted

how to add to html.twig from a node twig file?

You're going about it the wrong way, you cannot affect other Twig template files, it needs to be done way before you get to Twig. Everything you want to can be done using the Metatag module: Supports ...
Colin Shipton's user avatar
1 vote

Facebook does not use article image

Having been through this before with OG tags and Facebook, if your site has been up and you verified the OG tags are in the source and work, then the likely culprit is that Facebooks crawler cached ...
Kevin's user avatar
  • 27.8k
1 vote
Accepted

Customize the appearance of sharing articles to social media

Welcome to StackExchange! Assuming you are using D8, here are some instructions (D7 would be similar but slightly different). The metatag module has some submodules to help with various metatag ...
CG Monroe's user avatar
  • 3,056
1 vote

Remove default tab from login page ( Simple Fb Connect)

Create a hook_menu_alter function like this in a module: function my_module_menu_alter(&$items) { unset($items['user/simple-fb-connect']); }
afsolano's user avatar
1 vote

Drupal 8 How to fix "URL is Incomplete" error at Facebook Instant Articles

As I understand it, the Pathologic module should fix this issue for you. Pathologic is an input filter which can correct paths in links and images in your Drupal content in situations which would ...
Jaypan's user avatar
  • 17.6k
1 vote
Accepted

Facebook comments box for site loading very slowly

Connect your phone's browser to the Developer Tools on your computer. Check the network tab and check what's slowing down the requests. It might be that you have too many requests, and the comment ...
rovr138's user avatar
  • 1,018
1 vote

how to override the timeline-twitter css

In order to be able to style it, you'll need to stop using the standard twitter embed code and use another solution. I suggest using the Twitter (https://www.drupal.org/project/twitter) and Oauth (...
Anne Bonham's user avatar
1 vote

How to use drupal_add_html_head() to add the same metatag multiple times?

For apple's favicons you can use something like this: function mytheme_page_attachments_alter(array &$page) { $apple_sizes = [57, 60, 72, 76, 114, 120, 144, 152, 180, 192]; ...
tmsss's user avatar
  • 211
1 vote

How to setup a Facebook page block for each user?

I'm presuming you want to do something like a Facebook Likebox embedded iframe (e.g. https://www.facebook.com/plugins/likebox.php?my_user_facebook_page_details...) with the user supplying his own URL ...
Shawn Conn's user avatar
  • 26.9k
1 vote

'TwitterException' with message 'Not Found'

This looks like it is failing in a portion of the code that has to do with authorization. Just starting with the simplest explanation, are you sure that your credentials/oauth settings are correct?
greendemiurge's user avatar
1 vote

Facebook scraper ignores default language

Without knowing exactly how the following tags are generated I cannot provide the exact solution to your issue, but only to point out what causes the Facebook to grab EN version. 1. <link href="...
oksana-c's user avatar
  • 2,821
1 vote

Twitter sign in module session token values lost in twitter/oauth path in HTTPS - Invalid Twitter OAuth request

The error could be related to: Using API on the wrong domain/subdomain (www prefix can be relevant). See: Why do I get a Oauth error? Temporary Twitter issue. See: Twitter module Oauth '...
kenorb's user avatar
  • 14.2k
1 vote

How to Create a wall of activities (like Facebook wall) in my site, for each user?

The Drupal Wall module is what you're looking for. This matches your requirement. Objective To enable the users to get the status posting functionality just like facebook status posts and ...
Krishna Mohan's user avatar
1 vote

Twitter Card Preview is failing with twitter:image

To fix this issue do the following: For twitter go to https://cards-dev.twitter.com/validator and insert the webpage URL and then hit Preview card, this will clear twitter cache. For facebook go to ...
Jameel Khan's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible